docs: add loading prop for table, fix slot props and event payload for tabs
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
| `order` | `string|boolean` | `false` | 排序顺序。为 `false` 时表示无序,为字符串值 `'asc'`/`'desc'` 时分别为升序/降序。 |
|
||||
| `order-by` | `string` | - | 用于指定当前基于哪一列进行了排序,值必须来自内部某个 `Column` 组件的 `field` 属性。 |
|
||||
| `scroll` | `number` | - | 指定滚动区域的最大高度,当超出此高度时,表格将进入固定表头和底部只允许数据区域滚动的模式。 |
|
||||
| `loading` | `boolean` | `false` | 指定表格是否处于加载状态。 |
|
||||
|
||||
^^^ui
|
||||
预设样式。
|
||||
|
@@ -81,7 +81,7 @@
|
||||
| `panel` | 选项卡下方面板区域。 |
|
||||
| `extra` | 位于标签页右侧的扩展区域。 |
|
||||
| `tab-item` | [^tab-item] |
|
||||
| `tab-label` | 标签选项卡文本区域,默认内容为选项卡文本。作用域参数同 `tab-item` 插槽。 |
|
||||
| `tab-label` | 标签选项卡文本区域,默认内容为选项卡文本。作用域参数同 `tab-item` 插槽,`attrs`/`activate` 除外。 |
|
||||
|
||||
^^^tab-item
|
||||
标签选项卡区域,默认内容为选项卡对应的按钮/链接。作用域参数为标签属性描述对象。
|
||||
@@ -93,9 +93,13 @@
|
||||
| `name` | `string` | 选项卡名称。 |
|
||||
| `disabled` | `boolean=` | 选项卡是否禁用。 |
|
||||
| `to` | `string` | 选项卡路由信息。 |
|
||||
| `active` | `boolean` | 选项卡是否是激活项。 |
|
||||
| `index` | `number` | 选项卡位于列表中的索引值。 |
|
||||
| `native` | `boolean` | 路由模式是否强制使用原生的 `<a>` 元素。 |
|
||||
| `removable` | `boolean` | 是否可删除。 |
|
||||
| `status` | `string` | 选项卡状态。 |
|
||||
| `attrs` | `Object<string, string>` | 其它需要输出到选项卡元素上的 HTML 属性,例如 `role`/`aria-selected`/`aria-controls` 等。 |
|
||||
| `activate` | `function(): void` | 激活当前选项卡的方法。 |
|
||||
+++
|
||||
^^^
|
||||
|
||||
|
@@ -53,6 +53,7 @@ Rows can be expanded into sub-rows.
|
||||
| `order` | `string|boolean` | `false` | The order for sorting the specified column. `false` denotes no specific order, while string values of `'asc'`/`'desc'` denote ascending/descending order respectively. |
|
||||
| `order-by` | `string` | - | The column which is currently sorted by. The value should be defined as the `field` prop for one of the children `Column` components. |
|
||||
| `scroll` | `number` | - | The maximun height of the scrollable area inside the table body. When table content exceeds the specified height, internal scroll will be enabled and the head/foot will become fixed. |
|
||||
| `loading` | `boolean` | `false` | Whether table data is being loaded. |
|
||||
|
||||
^^^ui
|
||||
Style variants.
|
||||
|
Reference in New Issue
Block a user