|
|
|
@ -25,9 +25,9 @@ export const columns: BasicColumn[] = [
@@ -25,9 +25,9 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
{ |
|
|
|
|
title: '图标', |
|
|
|
|
dataIndex: 'icon', |
|
|
|
|
width: 80, |
|
|
|
|
width: 100, |
|
|
|
|
customRender: ({ record }) => { |
|
|
|
|
return h(Icon, { icon: record.icon }); |
|
|
|
|
return record.icon ? h(Icon, { icon: record.icon }) : h(Tag, { color: 'red' }, () => '暂无图标'); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|