Skip to content

Commit e815f0f

Browse files
committed
docs: vbenVxeTable slots docs update
1 parent 5ea6b4a commit e815f0f

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

docs/src/components/common-ui/vben-vxe-table.md

+19-9
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,22 @@ useVbenVxeGrid 返回的第二个参数,是一个对象,包含了一些表
231231

232232
所有属性都可以传入 `useVbenVxeGrid` 的第一个参数中。
233233

234-
| 属性名 | 描述 | 类型 |
235-
| -------------- | ------------------ | ------------------- |
236-
| tableTitle | 表格标题 | `string` |
237-
| tableTitleHelp | 表格标题帮助信息 | `string` |
238-
| gridClass | grid组件的class | `string` |
239-
| gridOptions | grid组件的参数 | `VxeTableGridProps` |
240-
| gridEvents | grid组件的触发的⌚️ | `VxeGridListeners` |
241-
| formOptions | 表单参数 | `VbenFormProps` |
242-
| showSearchForm | 是否显示搜索表单 | `boolean` |
234+
| 属性名 | 描述 | 类型 |
235+
| -------------- | -------------------- | ------------------- |
236+
| tableTitle | 表格标题 | `string` |
237+
| tableTitleHelp | 表格标题帮助信息 | `string` |
238+
| gridClass | grid组件的class | `string` |
239+
| gridOptions | grid组件的参数 | `VxeTableGridProps` |
240+
| gridEvents | grid组件的触发的事件 | `VxeGridListeners` |
241+
| formOptions | 表单参数 | `VbenFormProps` |
242+
| showSearchForm | 是否显示搜索表单 | `boolean` |
243+
244+
## Slots
245+
246+
大部分插槽的说明请参考 [vxe-table 官方文档](https://vxetable.cn/v4/#/grid/api),但工具栏部分由于做了一些定制封装,需使用以下插槽定制表格的工具栏:
247+
248+
| 插槽名 | 描述 |
249+
| --------------- | -------------------------------------------- |
250+
| toolbar-actions | 工具栏左侧部分(表格标题附近) |
251+
| toolbar-tools | 工具栏右侧部分(vxeTable原生工具按钮的左侧) |
252+
| table-title | 表格标题插槽 |

0 commit comments

Comments
 (0)