Skip to content

Commit ab00e83

Browse files
author
jeannehuang
committed
feat(action-sheet) items更新interface
1 parent e37ef6f commit ab00e83

File tree

4 files changed

+29
-27
lines changed

4 files changed

+29
-27
lines changed

packages/products/tdesign-miniprogram/src/action-sheet/README.en-US.md

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

55
### ActionSheet Props
66

7-
| name | type | default | description | required |
8-
| --------------- | ------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
9-
| align | String | center | `0.29.0`。options: center/left | N |
10-
| cancel-text | String | - | \- | N |
11-
| count | Number | 8 | \- | N |
12-
| description | String | - | `0.29.0` | N |
13-
| items | Array | - | required。Typescript:`Array<string \| ActionSheetItem>` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean }`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/action-sheet/type.ts) | Y |
14-
| popup-props | Object | {} | \- | N |
15-
| show-cancel | Boolean | true | \- | N |
16-
| show-overlay | Boolean | true | \- | N |
17-
| theme | String | list | options: list/grid | N |
18-
| visible | Boolean | false | required | Y |
19-
| default-visible | Boolean | undefined | required。uncontrolled property | Y |
7+
| name | type | default | description | required |
8+
| --------------- | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
9+
| align | String | center | `0.29.0`。options: center/left | N |
10+
| cancel-text | String | - | \- | N |
11+
| count | Number | 8 | \- | N |
12+
| description | String | - | `0.29.0` | N |
13+
| items | Array | - | required。Typescript:`Array<string \| ActionSheetItem>` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean;icon?: string;suffixIcon?: string; }`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/action-sheet/type.ts) | Y |
14+
| popup-props | Object | {} | \- | N |
15+
| show-cancel | Boolean | true | \- | N |
16+
| show-overlay | Boolean | true | \- | N |
17+
| theme | String | list | options: list/grid | N |
18+
| visible | Boolean | false | required | Y |
19+
| default-visible | Boolean | undefined | required。uncontrolled property | Y |
2020

2121
### ActionSheet Events
2222

packages/products/tdesign-miniprogram/src/action-sheet/README.md

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

55
### ActionSheet Props
66

7-
| 名称 | 类型 | 默认值 | 说明 | 必传 |
8-
| --------------- | ------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---- |
9-
| align | String | center | `0.29.0`。水平对齐方式。可选项:center/left | N |
10-
| cancel-text | String | - | 设置取消按钮的文本 | N |
11-
| count | Number | 8 | 设置每页展示菜单的数量,仅当 type=grid 时有效 | N |
12-
| description | String | - | `0.29.0`。动作面板描述文字 | N |
13-
| items | Array | - | 必需。菜单项。TS 类型:`Array<string \| ActionSheetItem>` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/action-sheet/type.ts) | Y |
14-
| popup-props | Object | {} | popupProps 透传 | N |
15-
| show-cancel | Boolean | true | 是否显示取消按钮 | N |
16-
| show-overlay | Boolean | true | 是否显示遮罩层 | N |
17-
| theme | String | list | 展示类型,列表和表格形式展示。可选项:list/grid | N |
18-
| visible | Boolean | false | 必需。显示与隐藏 | Y |
19-
| default-visible | Boolean | undefined | 必需。显示与隐藏。非受控属性 | Y |
7+
| 名称 | 类型 | 默认值 | 说明 | 必传 |
8+
| --------------- | ------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- |
9+
| align | String | center | `0.29.0`。水平对齐方式。可选项:center/left | N |
10+
| cancel-text | String | - | 设置取消按钮的文本 | N |
11+
| count | Number | 8 | 设置每页展示菜单的数量,仅当 type=grid 时有效 | N |
12+
| description | String | - | `0.29.0`。动作面板描述文字 | N |
13+
| items | Array | - | 必需。菜单项。TS 类型:`Array<string \| ActionSheetItem>` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean;icon?: string;suffixIcon?: string; }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/action-sheet/type.ts) | Y |
14+
| popup-props | Object | {} | popupProps 透传 | N |
15+
| show-cancel | Boolean | true | 是否显示取消按钮 | N |
16+
| show-overlay | Boolean | true | 是否显示遮罩层 | N |
17+
| theme | String | list | 展示类型,列表和表格形式展示。可选项:list/grid | N |
18+
| visible | Boolean | false | 必需。显示与隐藏 | Y |
19+
| default-visible | Boolean | undefined | 必需。显示与隐藏。非受控属性 | Y |
2020

2121
### ActionSheet Events
2222

packages/products/tdesign-miniprogram/src/action-sheet/type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ export interface ActionSheetItem {
9898
label: string;
9999
color?: string;
100100
disabled?: boolean;
101+
icon?: string;
102+
suffixIcon?: string;
101103
}

packages/scripts/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@
21782178
"create_time": "2021-09-02 12:06:15",
21792179
"update_time": "2022-04-08 09:06:29",
21802180
"event_output": null,
2181-
"custom_field_type": "Array<string | ActionSheetItem>【interface ActionSheetItem {label: string; color?: string; disabled?: boolean }】",
2181+
"custom_field_type": "Array<string | ActionSheetItem>【interface ActionSheetItem {label: string; color?: string; disabled?: boolean;icon?: string;suffixIcon?: string; }】",
21822182
"syntactic_sugar": null,
21832183
"readonly": 1,
21842184
"html_attribute": 0,

0 commit comments

Comments
 (0)