Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2586315

Browse files
doc: translation
1 parent df290b9 commit 2586315

File tree

5 files changed

+159
-159
lines changed

5 files changed

+159
-159
lines changed

‎site/en/api/vtree-drop.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44

55
Note: You can use all the props of `VTree` and `VTreeSearch` in `VTreeDrop`
66

7-
| Prop | Description | Type | Default Value |
8-
| :------------------------- | :------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------- | :------------- |
9-
| dropHeight | Height of the dropdown | `number` | 300 |
10-
| dropPlaceholder | Placeholder of display input | `string` | |
11-
| dropDisabled | Whether to disable tree drop | `boolean` | false |
12-
| clearable | Allow to clear | `boolean` | false |
13-
| placement | The position of the dropdown. Note!! Does not support auto adapting directions | `'bottom-start' \| 'bottom-end' \| 'bottom' \| 'top-start' \| 'top-end' \| 'top'` | 'bottom-start' |
14-
| transfer | To transfer DOM to body | `boolean` | false |
15-
| dropdownClassName | Extra class on dropdown container | `string \| string[]` | |
16-
| dropdownMinWidth `2.0.1` | Min width of the dropdown. The default width is the width of the display input. It's better to use when 'transfer' is false | `number` | |
17-
| dropdownWidthFixed `2.0.5` | Fix the width of the dropdown. When the content length exceeds the min with of the dropdown, a horizontal scrollbar appears | `boolean` | false |
7+
| Prop | Description | Type | Default Value |
8+
| :------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------- | :------------- |
9+
| dropHeight | Height of the dropdown | `number` | 300 |
10+
| dropPlaceholder | Placeholder of display input | `string` | None |
11+
| dropDisabled | Whether to disable tree drop | `boolean` | false |
12+
| clearable | Allow to clear | `boolean` | false |
13+
| placement | The position of the dropdown. Note!! Does not support auto adapting directions | `'bottom-start' \| 'bottom-end' \| 'bottom' \| 'top-start' \| 'top-end' \| 'top'` | 'bottom-start' |
14+
| transfer | To transfer DOM to body | `boolean` | false |
15+
| dropdownClassName | Extra class on dropdown container | `string \| string[]` | None |
16+
| dropdownMinWidth `2.0.1` | Min width of the dropdown. The default width is the width of the display input. It's better to use when 'transfer' is false | `number` | None |
17+
| dropdownWidthFixed `2.0.5` | Fix the width of the dropdown. When the content length exceeds the min with of the dropdown, a horizontal scrollbar appears | `boolean` | false |
1818

1919
## VTreeDrop Events
2020

2121
Note: You can listen to all the events of `VTree` and `VTreeSearch` on `VTreeDrop`
2222

23-
| Event | Description | Return Value |
24-
| :---------------------- | :--------------------- | :------------- |
25-
| dropdown-visible-change | Triggers when dropdown shows/hides | Visibility of the dropdown |
26-
| clear | Triggers when click on the clear button | None |
23+
| Event | Description | Return Value |
24+
| :---------------------- | :-------------------------------------- | :------------------------- |
25+
| dropdown-visible-change | Triggers when dropdown shows/hides | Visibility of the dropdown |
26+
| clear | Triggers when click on the clear button | None |
2727

2828
## VTreeDrop Methods
2929

@@ -33,11 +33,11 @@ Note: You can use all the methods of `VTree` and `VTreeSearch` in `VTreeDrop`
3333

3434
Note: You can pass all the slots of `VTree` and `VTreeSearch` to `VTreeDrop`
3535

36-
| Name | Description |
37-
| :------ | :--------------------------------------------------- |
38-
| default | The whole input |
36+
| Name | Description |
37+
| :------ | :------------------------------------------------------------------------ |
38+
| default | The whole input |
3939
| display | The text of display input. Not effective when the default slot is present |
40-
| clear | To replace the clear icon. Not effective when the default slot is present |
40+
| clear | To replace the clear icon. Not effective when the default slot is present |
4141

4242
Slot props of `default` and `display` slots `2.3.0`:
4343

‎site/en/api/vtree-search.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@
44

55
Note: You can use all the props of `VTree` in `VTreeSearch`
66

7-
| Prop | Description | Type | Default Value |
8-
| :------------------- | :--------------------------------------------------------------------------------- | :------------------------------------------- | :----------- |
9-
| searchPlaceholder | 搜索输入框的 placeholder | `string` | '搜索关键字' |
10-
| showCheckAll | 是否显示全选复选框 | `boolean` | true |
11-
| showCheckedButton | 是否显示已选按钮 | `boolean` | true |
12-
| checkedButtonText | 已选按钮文字 | `string` | '已选' |
13-
| showFooter | 是否显示底部信息 | `boolean` | true |
14-
| searchMethod `2.0.2` | 如果传入此 Prop ,触发 `search` 事件后将会执行此方法,否则会执行组件内置的搜索方法 | `(keyword: string) => void \| Promise<void>` | |
15-
| searchLength | 触发搜索的字符长度 | `number` | 1 |
16-
| searchDisabled | 禁用搜索功能 | `boolean` | false |
17-
| searchRemote | 是否远程搜索,传入 `searchMethod` 时无效 | `boolean` | false |
18-
| searchDebounceTime | 搜索防抖时间,单位为毫秒 | `number` | 300 |
7+
| Prop | Description | Type | Default Value |
8+
| :------------------- | :---------------------------------------------------------------------------------------------------------------------- | :------------------------------------------- | :------------ |
9+
| searchPlaceholder | Placeholder of search input | `string` | '搜索关键字' |
10+
| showCheckAll | Whether to show check all checkbox | `boolean` | true |
11+
| showCheckedButton | Whether to show 'Checked' button | `boolean` | true |
12+
| checkedButtonText | Checked button text | `string` | '已选' |
13+
| showFooter | Whether to show footer | `boolean` | true |
14+
| searchMethod `2.0.2` | This method will be invoked when `search` event triggers if present, or else the internal search method will be invoked | `(keyword: string) => void \| Promise<void>` | None |
15+
| searchLength | The length of search text that triggers a search | `number` | 1 |
16+
| searchDisabled | Disable search | `boolean` | false |
17+
| searchRemote | Enable remote search. Not effective when `searchMethod` is present | `boolean` | false |
18+
| searchDebounceTime | Search debounce time. Unit: ms | `number` | 300 |
1919

2020
## VTreeSearch Events
2121

2222
Note: You can listen to all the events of `VTree` on `VTreeSearch`
2323

24-
| Event | Description | Return Value |
25-
| :----- | :----------------- | :----------- |
26-
| search | 执行搜索操作时触发 | 搜索的关键字 |
24+
| Event | Description | Return Value |
25+
| :----- | :------------------- | :------------- |
26+
| search | Triggers when search | Search keyword |
2727

2828
## VTreeSearch Methods
2929

3030
Note: You can use all the methods of `VTree` in `VTreeSearch`
3131

32-
| Method | Description | Params | Return Value |
33-
| :----------- | :------------- | :------------------------------------------------------- | :-------------- |
34-
| clearKeyword | 清空关键字 | | `void` |
35-
| getKeyword | 获取搜索关键字 | | `string` |
36-
| search | 执行搜索 | `keyword: string`: 搜索的关键字,默认为内部 this.keyword | `Promise<void>` |
32+
| Method | Description | Params | Return Value |
33+
| :----------- | :------------- | :---------------------------------------------------------------------------- | :-------------- |
34+
| clearKeyword | Clear keyword | None | `void` |
35+
| getKeyword | Get keyword | None | `string` |
36+
| search | Execute search | `keyword: string`: Search keyword, the default value is internal this.keyword | `Promise<void>` |
3737

3838
## VTreeSearch Slots
3939

4040
Note: You can pass all the slots of `VTree` to `VTreeSearch`
4141

42-
| Name | Description |
43-
| :----------- | :------------------------------------------------- |
44-
| search-input | 搜索输入框,可通过此 slot 自行封装树搜索组件的行为 |
45-
| actions | 操作按钮,可在搜索输入框后加入更多操作按钮 |
46-
| footer | 底部信息 |
42+
| Name | Description |
43+
| :----------- | :------------------------------------------------------------ |
44+
| search-input | Search input |
45+
| actions | Action buttons. Append more action buttons after search input |
46+
| footer | Footer info |
4747

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /