Appearance
GroupTable
依赖于 GroupTableDom
import { GroupTable,Dom } from 'seldom-ui'可以给列配置type
自动跨行span-key
分页 page
选择 select
操作列功能
index序号
自动滚动
slot插槽
src Props
| 参数名 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| data (*) | Array | [] | |
| id (*) | union | - | |
| span-key (*) | 需要合并行的字段数组 | Array | [] |
| show-header (*) | boolean | true | |
| edit (*) | boolean | false | |
| props (*) | ElTableProps | { | |
| header-cell-style (*) | Style | { | |
| mapper (*) | MapperType | { | |
| columns (*) | Array | [] | |
| index-fixed (*) | string | - | |
| border (*) | 边框 | boolean | true |
| auto-scroll (*) | 自动滚动 | boolean | false |
| index (*) | 序号 | union | false |
| calculator (*) | 序号处理函数 | Function | - |
| select (*) | 选择框 | boolean | false |
| selection (*) | Array | [] | |
| select-key (*) | string | '_rowKey' | |
| option (*) | 操作列配置 | TableOption | { |
| height (*) | string | - | |
| size (*) | 可选值 'large' | 'small' | 'mini' | 'medium' | union | 'small' |
| page-config (*) | 分页配置 | PageConfig | { |
src Events
| 事件名 | 描述 | 参数 |
|---|---|---|
| update:data | - | |
| change-row | - | |
| select-change | - | |
| sort-change | - | |
| row-click | - | |
| filter-change | - | |
| change-page-number | - | |
| change-page-size | - | |
| handle-selection-change | - | |
| update:selection | - |
src Slots
| 插槽名 | 描述 | 参数 |
|---|---|---|
| default | name row config |