Table
Table 内置 api 请求, api 配置方式与 useServer 配置方式一致
基础使用
通过使用类似 antd 的配置来创建表单
- 1
自定义渲染
使用 render 自定义渲染
- 1
Column组件使用
通过type选取组件
- 1
model 可绑定数组
当 model 绑定数组,更多是作为组件传递值使用
- 1
Column控制
使用vIf控制 Column 的渲染
- 1
值的格式化
使用formatRowText控制 Column 内值的格式化(不含 component & render)
- 1
Table Option
| 属性 | 说明 | 类型 | 可选择 | 默认值 |
|---|---|---|---|---|
| api | api 配置 | 指定 key | - | - |
| column | 构建 table 配置 | Column[] | - | - |
| beforeSetData | useServer 配置 | - | - | - |
| customProps | ElTable Props 入口 | - | - | - |
| useServerProps | useServer Api 入口 | - | - | - |
| pagination | pagination | - | - | - |
| total | total | - | - | - |
| autoRun | 默认执行 | - | - | - |
| formatRowText | 格式化值 | - | - | - |