iview the head of the column header format rendering render

iview the table has a table assembly renderHeader properties, it can display the contents of the custom column headers, the Render function using Vue. Two arguments, the first is a H, the second object, comprising  column and  index, respectively, the current column of data and the current column index.

Example:

renderheader: (H, the params) => { return H ( 'div', {}, the this . $ T ( 'name' ));} 
where H ( 'div', {}, the this . $ T ( 'name' )): 
the first parameter rendered element type, 
the second parameter indicates the element style rendering, 
the third parameter indicates the content of the element you want to show

 

Guess you like

Origin www.cnblogs.com/nizuimeiabc1/p/12173718.html