Skip to content
页面导航

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 {
"rowKey": "_rowKey"
}
header-cell-style (*)Style {
"background": "#F6F6F7",
"color": "#8689a3",
"fontSize": "14px"
}
mapper (*)MapperType {
"label": "label",
"value": "value",
"children": "children"
}
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 {
"btns": []
}
height (*)string -
size (*)可选值 'large' | 'small' | 'mini' | 'medium'union 'small'
page-config (*)分页配置PageConfig {
"page": 0,
"total": 0,
"pageSize": 10,
"size": "small",
"layout": "total,prev, pager, next",
"background": true
}

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

插槽名描述参数
defaultname
row
config