Skip to content

Commit 30c2146

Browse files
committed
feat: update veui and update docs
1 parent 45feeeb commit 30c2146

File tree

5 files changed

+76
-74
lines changed

5 files changed

+76
-74
lines changed

one/docs/components/lightbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
^^^
6565

6666
^^^before-close
67-
在将触发浮层关闭的操作发生后执行,类型为 `function(type: string): boolean=|Promise<boolean=>``type` 为触发关闭的类型,默认情况下可选值为 `'ok'|'cancel'`。返回值可以是一个 `boolean`,也可以是一个 resolve `boolean``Promise`,用来处理可能需要异步决定浮层关闭状态的情况。返回值或 resolve 值非 `false` 时才会关闭浮层。
67+
在将触发浮层关闭的操作发生后执行,类型为 `function(): boolean=|Promise<boolean=>`。返回值可以是一个 `boolean`,也可以是一个 resolve `boolean``Promise`,用来处理可能需要异步决定浮层关闭状态的情况。返回值或 resolve 值非 `false` 时才会关闭浮层。
6868

6969
+++调用示例
7070
```html
@@ -99,7 +99,7 @@
9999

100100
| 名称 | 描述 |
101101
| -- | -- |
102-
| ``cancel`` | 灯箱关闭后触发|
102+
| ``close`` | 进行触发关闭操作的动作时触发|
103103

104104
### 图标
105105

one/docs/components/select.md

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

one/docs/en-US/components/select.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ Use the [`multiple`](#props-multiple) prop to enable multiple selections.
4444
| ``placeholder`` | `string` | `select.placeholder` | Placeholder text when no option is selected. |
4545
| ``clearable`` | `boolean` | `false` | Whether the select is clearable. |
4646
| ``searchable`` | `boolean` | `false` | Whether the options are searchable. |
47-
| ``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. |
47+
| ``show-select-all`` | `boolean` | `false` | Whether to display the “Select All” option in multi-select mode. |
4848
| ``expanded`` | `boolean=` | `false` | [^expanded] |
4949
| ``disabled`` | `boolean=` | `false` | Whether the select is disabled. |
5050
| ``readonly`` | `boolean=` | `false` | Whether the select is read-only. |
5151
| ``overlay-class`` | `string | Array | Object=` | - | See the [`overlay-class`](./overlay#props-overlay-class) prop of the [`Overlay`](./overlay) component. |
5252
| ``overlay-style`` | `string | Array | Object=` | - | See the [`overlay-style`](./overlay#props-overlay-style) prop of the [`Overlay`](./overlay) component. |
53+
| ``match`` | `(item, keyword, { ancestors }) => boolean | [number, number] | Array<[number, number]>` | - | Custom highlighting logic, case insensitive by default. See [`Autocomplete`](./Autocomplete#customizing-search). |
54+
| ``filter`` | `(item, keyword, { ancestors, offsets }) => boolean` | - | Custom hit logic, case insensitive by default. See [`Autocomplete`](./Autocomplete#customizing-search). |
5355

5456
^^^ui
5557
Style variants.

package-lock.json

Lines changed: 65 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@stackblitz/sdk": "^1.5.2",
2626
"babel-eslint": "^10.1.0",
2727
"babel-plugin-lodash": "^3.3.4",
28-
"babel-plugin-veui": "^2.5.4",
28+
"babel-plugin-veui": "^2.5.5",
2929
"cheerio": "^1.0.0-rc.10",
3030
"dls-graphics": "^1.0.0-alpha.3",
3131
"dls-icons-vue": "^0.14.0",
@@ -83,10 +83,10 @@
8383
"stylus-loader": "^3.0.2",
8484
"unist-util-remove": "^1.0.1",
8585
"unist-util-visit": "^1.4.0",
86-
"veui": "^2.5.4",
87-
"veui-loader": "^2.5.4",
88-
"veui-theme-dls": "^2.5.4",
89-
"veui-theme-dls-icons": "^2.5.4",
86+
"veui": "^2.5.5",
87+
"veui-loader": "^2.5.5",
88+
"veui-theme-dls": "^2.5.5",
89+
"veui-theme-dls-icons": "^2.5.5",
9090
"vue-awesome": "^4.5.0",
9191
"vue-i18n": "^8.16.0",
9292
"vue-live": "^1.17.2",

0 commit comments

Comments
 (0)