data() {
return {
columns2: [
{
title: '编号',
align: 'center',
slot: 'numIndex',
width: 40
},
{
title: '仓库(*)',
align: 'center',
slot: 'warehouse',
renderHeader: (h, params) => {
return h('div', [
h('span', '仓库('),
h('span', { style: { color: 'red' } }, '*'),
h('span', ')')
])
}
},
{
title: '材料(*)',
align: 'center',
slot: 'material',
renderHeader: (h, params) => {
return h('div', [
h('span', '材料('),
h('span', { style: { color: 'red' } }, '*'),
h('span', ')')
])
}
},
{
title: '规格型号',
align: 'center',
slot: 'specifications'
},
{
title: '单位',
align: 'center',
slot: 'unit'
},
{
title: '数量(*)',
align: 'center',
slot: 'amount',
renderHeader: (h, params) => {
return h('div', [
h('span', '数量('),
h('span', { style: { color: 'red' } }, '*'),
h('span', ')')
])
}
},
{
title: '领用目的',
align: 'center',
slot: 'remark'
},
{
title: '操作',
align: 'center',
slot: 'action'
}
]
}
}
iview + vue 表格给单个单元格特定样式 如必填的 红色(*)
最新推荐文章于 2024-07-05 16:35:53 发布