| | |
| | | } |
| | | }, |
| | | { |
| | | prop: 'component', |
| | | label: '组件标识', |
| | | minWidth: 160, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => { |
| | | if (row.meta?.isAuthButton) return '' |
| | | return row.component || '' |
| | | } |
| | | }, |
| | | { |
| | | prop: 'authority', |
| | | label: '权限标识', |
| | | minWidth: 180, |
| | |
| | | prop: 'sort', |
| | | label: '排序', |
| | | width: 90 |
| | | }, |
| | | { |
| | | prop: 'id', |
| | | label: 'ID', |
| | | width: 96, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | prop: 'status', |
| | |
| | | prop: 'operation', |
| | | label: '操作', |
| | | width: 180, |
| | | align: 'right', |
| | | align: 'center', |
| | | formatter: (row) => { |
| | | const buttonStyle = { class: 'flex justify-end' } |
| | | const buttonStyle = { class: 'flex justify-center' } |
| | | if (row.meta?.isAuthButton) { |
| | | return h('div', buttonStyle, [ |
| | | h(ArtButtonTable, { |