File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
products/tdesign-mobile-react/src/action-sheet Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ popupProps | Object | {} | Typescript:`PopupProps`,[Popup API Documents](./p
1717showCancel | Boolean | true | \- | N
1818showOverlay | Boolean | true | \- | N
1919theme | String | list | options: list/grid | N
20- visible | Boolean | false | required | Y
21- defaultVisible | Boolean | false | required。 uncontrolled property | Y
20+ visible | Boolean | false | \- | N
21+ defaultVisible | Boolean | false | uncontrolled property | N
2222onCancel | Function | | Typescript:` (context: { e: MouseEvent }) => void ` <br /> | N
2323onClose | Function | | Typescript:` (trigger: ActionSheetTriggerSource) => void ` <br />[ see more ts definition] ( https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/action-sheet/type.ts ) 。<br />` type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' ` <br /> | N
2424onSelected | Function | | Typescript:` (selected: ActionSheetItem \| string, index: number) => void ` <br /> | N
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ popupProps | Object | {} | 透传 Popup 组件全部属性。TS 类型:`PopupP
1717showCancel | Boolean | true | 是否显示取消按钮 | N
1818showOverlay | Boolean | true | 是否显示遮罩层 | N
1919theme | String | list | 展示类型,列表和表格形式展示。可选项:list/grid | N
20- visible | Boolean | false | 必需。 显示与隐藏 | Y
21- defaultVisible | Boolean | false | 必需。 显示与隐藏。非受控属性 | Y
20+ visible | Boolean | false | 显示与隐藏 | N
21+ defaultVisible | Boolean | false | 显示与隐藏。非受控属性 | N
2222onCancel | Function | | TS 类型:` (context: { e: MouseEvent }) => void ` <br />点击取消按钮时触发 | N
2323onClose | Function | | TS 类型:` (trigger: ActionSheetTriggerSource) => void ` <br />关闭时触发。[ 详细类型定义] ( https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/action-sheet/type.ts ) 。<br />` type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' ` <br /> | N
2424onSelected | Function | | TS 类型:` (selected: ActionSheetItem \| string, index: number) => void ` <br />选择菜单项时触发 | N
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ export interface TdActionSheetProps {
5858 * 显示与隐藏
5959 * @default false
6060 */
61- visible : boolean ;
61+ visible ? : boolean ;
6262 /**
6363 * 显示与隐藏,非受控属性
6464 * @default false
6565 */
66- defaultVisible : boolean ;
66+ defaultVisible ? : boolean ;
6767 /**
6868 * 点击取消按钮时触发
6969 */
Original file line number Diff line number Diff line change 25012501 "field_enum": "",
25022502 "field_desc_zh": "显示与隐藏",
25032503 "field_desc_en": null,
2504- "field_required": 1 ,
2504+ "field_required": 0 ,
25052505 "event_input": "",
25062506 "create_time": "2021-09-02 12:01:55",
25072507 "update_time": "2022-04-08 09:10:44",
You can’t perform that action at this time.
0 commit comments