You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
![]()
2 weeks ago
|
# BaseTable-表格
|
||
|
默认被包含在BaseTable中,可单独使用
|
||
|
```html
|
||
|
<!-- 封装了el-table + pagination -->
|
||
|
<BaseTable
|
||
|
@pageChange="pageChange"
|
||
|
:data="tableData"
|
||
|
:hidePagenation="props.tableOptions.hidePagenation"
|
||
|
:pageInfo="props.tableOptions.pageInfo"
|
||
|
>
|
||
|
<el-table-column align="center" prop="dictName" label="字典名称" />
|
||
|
<el-table-column align="center" prop="dictType" label="字典类型" />
|
||
|
</BaseTable>
|
||
|
```
|
||
|
|
||
|
## 属性
|
||
|
|
||
|
| 名称 | 描述 | 可选值 |
|
||
|
| -------------- | :---------------: | ---------------------------------------: |
|
||
|
| data | 列表值 | [列表值] |
|
||
|
| pageInfo | 分页信息对象 | { total: 0, base:{limit: 8,current: 1} } |
|
||
|
| hidePagenation | 是否隐藏分页 | true/false |
|
||
|
|
||
|
## 事件
|
||
|
|
||
|
| 名称 | 描述 | 可选值 |
|
||
|
| ---------- | :----------: | -----------------: |
|
||
|
| pageChange | 页码发生改变 | Function(pageInfo) |
|