feat: update veui and update docs

This commit is contained in:
Justineo
2022-03-23 19:17:20 +08:00
parent 45feeeb05b
commit 30c2146769
5 changed files with 76 additions and 74 deletions

View File

@@ -64,7 +64,7 @@
^^^
^^^before-close
在将触发浮层关闭的操作发生后执行,类型为 `function(type: string): boolean=|Promise<boolean=>`。`type` 为触发关闭的类型,默认情况下可选值为 `'ok'|'cancel'`。返回值可以是一个 `boolean`,也可以是一个 resolve `boolean` 的 `Promise`,用来处理可能需要异步决定浮层关闭状态的情况。返回值或 resolve 值非 `false` 时才会关闭浮层。
在将触发浮层关闭的操作发生后执行,类型为 `function(): boolean=|Promise<boolean=>`。返回值可以是一个 `boolean`,也可以是一个 resolve `boolean` 的 `Promise`,用来处理可能需要异步决定浮层关闭状态的情况。返回值或 resolve 值非 `false` 时才会关闭浮层。
+++调用示例
```html
@@ -99,7 +99,7 @@
| 名称 | 描述 |
| -- | -- |
| ``cancel`` | 灯箱关闭后触发。 |
| ``close`` | 进行触发关闭操作的动作时触发。 |
### 图标

View File

@@ -53,7 +53,7 @@
| ``placeholder`` | `string` | `select.placeholder` | 未选择时的占位文本。 |
| ``clearable`` | `boolean` | `false` | 是否可以清除已选内容。 |
| ``searchable`` | `boolean` | `false` | 是否允许搜索选项。 |
| ``filter`` | `function` | - | 选项过滤函数,签名为 `function(option: Object): boolean`。`option` 类型与 [`options`](#props-options) 属性中的项相同。返回值表示是否将结果保留在下拉选项列表中。 |
| ``show-select-all`` | `boolean` | `false` | 多选模式下是否显示“全选”选项。 |
| ``expanded`` | `boolean=` | `false` | [^expanded] |
| ``disabled`` | `boolean=` | `false` | 是否为禁用状态。 |
| ``readonly`` | `boolean=` | `false` | 是否为只读状态。 |

View File

@@ -44,12 +44,14 @@ Use the [`multiple`](#props-multiple) prop to enable multiple selections.
| ``placeholder`` | `string` | `select.placeholder` | Placeholder text when no option is selected. |
| ``clearable`` | `boolean` | `false` | Whether the select is clearable. |
| ``searchable`` | `boolean` | `false` | Whether the options are searchable. |
| ``filter`` | `function` | - | Filter function for the options. The type is `function(option: Object): boolean`. The type of `option` is the same as the [`options`](#props-options) prop. The return value denotes whether the option is shown inside the options dropdown. |
| ``show-select-all`` | `boolean` | `false` | Whether to display the “Select All” option in multi-select mode. |
| ``expanded`` | `boolean=` | `false` | [^expanded] |
| ``disabled`` | `boolean=` | `false` | Whether the select is disabled. |
| ``readonly`` | `boolean=` | `false` | Whether the select is read-only. |
| ``overlay-class`` | `string | Array | Object=` | - | See the [`overlay-class`](./overlay#props-overlay-class) prop of the [`Overlay`](./overlay) component. |
| ``overlay-style`` | `string | Array | Object=` | - | See the [`overlay-style`](./overlay#props-overlay-style) prop of the [`Overlay`](./overlay) component. |
| ``match`` | `(item, keyword, { ancestors }) => boolean | [number, number] | Array<[number, number]>` | - | Custom highlighting logic, case insensitive by default. See [`Autocomplete`](./Autocomplete#customizing-search). |
| ``filter`` | `(item, keyword, { ancestors, offsets }) => boolean` | - | Custom hit logic, case insensitive by default. See [`Autocomplete`](./Autocomplete#customizing-search). |
^^^ui
Style variants.