show-overflow-tooltip全局使用、指定列使用或者指定列不使用

data(){
		return {
		 tableHeader: [
                {
                    label: 'AAA',
                    minWidth: 80,
                    prop: 'AAA'
                },
                {
                    label: 'BBB',
                    width: 75,
                    prop: 'BBB',
                    template: true
                },
                {
                    label: '操作',
                    width: 150,
                    prop: 'operate',
                    template: true,
                    fixed: 'right'
                }
            ],
		}
}

show-overflow-tooltip全局使用

<el-table-column v-for="(item, key) in tableHeader" :key="key" show-overflow-tooltip :item="item"/>

show-overflow-tooltip指定列使用或者指定列不使用

<el-table-column v-for="(item, key) in tableHeader" :key="key" :show-overflow-tooltip="item.prop != 'operate'" :item="item">

猜你喜欢

转载自blog.csdn.net/l_010/article/details/131940623