iview自定义 table表头

iview自定义 table表头_第1张图片


const buildCableTitleUser = (h, params) => (
    
        {params.column.title + '量'}
        
            
        
    
);


export default {
	data() {
		return {
			columns: [{
				title: '播放',
				key: 'play_count',
				width: 120,
				sortable: true,
				renderHeader(h, params) {
					return buildCableTitleUser(h, params)
				}

			}, ]
		}
	}
}

你可能感兴趣的:(vue,js,javascript,前端)