Skip to content
On this page

ColmunsSettings

介绍

列设置抽屉组件,用于配置表格的列显示隐藏、固定列、排序等。

基本使用

需设置table组件的scroll{ y: '100%', x: '100%' }

必须展示

initColmuns 中设置 mustShow属性为true即必须展示这一列

不展示

initColmuns 中设置 hidden属性为true即可不展示该列

虚拟滚动不支持固定列操作

设置virtual-list-props属性给table后会开启虚拟滚动,不支持固定列操作,详见: https://arco.design/vue/component/table#virtual-list

组件 API

Attributes 属性

参数说明类型可选值默认值
visible (v-model)列配置是否可见booleantrue/falsefalse
initColmuns (v-model)表格初始化列配置ITableColumnData[]--
showColumns (v-model)当前表格展示的列配置ITableColumnData[]--
tableRef (v-model)当前表格的domRefTableInstance--
width抽屉宽度number--

ITableColumnData

参数说明类型可选值默认值
mustShow必须展示booleantrue/falsefalse
hidden是否隐藏这一列booleantrue/falsefalse