P粉6814003072023-08-26 09:25:31
header.actions
is a slot used to override actions
column header rendering. If you don't pass it (when the condition is false
), Vuetify will render the default representation.
If you want to conditionally hide (not render) certain columns, define your table header as computed
computed: { headers() { const headers = [ // 其他表头定义 ] if(this.hasPermission('update center')) { headers.push({ // actions 表头定义 }) } return headers } }