Skip to content

Commit 4e48e02

Browse files
committed
翻译 en showQuickPick.md
1 parent 5503baa commit 4e48e02

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

en/ExtensionDocs/Api/windows/showQuickPick.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# showQuickPick
22

3-
在窗口中间弹出一个可搜索的建议选择列表
3+
In the middle of the window, Shows a selection list allowing multiple selections.
44

55
#### Parameter
66

77
|Name |Type |Description |
88
|-- |-- |-- |
9-
|items |Array<[QuickPickItem](#QuickPickItem)> |建议选择项列表 |
10-
|options |[QuickPickOptions](#QuickPickOptions) |设置 |
9+
|items |Array<[QuickPickItem](#QuickPickItem)> |An array of strings, or a promise that resolves to an array of strings. |
10+
|options |[QuickPickOptions](#QuickPickOptions) |Configures the behavior of the selection list. |
1111

1212
#### Returns
1313

1414
|Type |Description |
1515
|-- |-- |
16-
|Promise<[QuickPickItem](#QuickPickItem)> |返回用户选择得某个列表项|
16+
|Promise<[QuickPickItem](#QuickPickItem)> |A promise that resolves to the selected items or undefined.|
1717

1818
#### Example
1919

@@ -38,20 +38,20 @@
3838

3939
#### QuickPickOptions
4040

41-
> 快速选择框设置
41+
> Options to configure the behavior of the quick pick UI.
4242
4343
|Attribute name |Type |Description |
4444
|-- |-- |-- |
45-
|placeHolder|String |快速选择框上的搜索框为空时的占位文本 |
45+
|placeHolder|String |An optional string to show as placeholder in the input box to guide the user what to pick on. |
4646

4747

4848
#### QuickPickItem
4949

50-
> 快速选择候选项
50+
> Represents an item that can be selected from a list of items.
5151
5252
|Attribute name |Type |Description |
5353
|-- |-- |-- |
54-
|label |String |候选项名称 |
55-
|description|String |候选项描述 |
54+
|label |String |A human-readable string which is rendered prominent. |
55+
|description|String |A human-readable string which is rendered less prominent in the same line. |
5656

5757
> 如果要传递额外的数据,可以追加自定义的属性,当用户选择该项后,会通过回调返回选择了哪个候选项

0 commit comments

Comments
 (0)