diff --git a/src/action-sheet/action-sheet.en-US.md b/src/action-sheet/action-sheet.en-US.md index 46fa53e96..2120dcd18 100644 --- a/src/action-sheet/action-sheet.en-US.md +++ b/src/action-sheet/action-sheet.en-US.md @@ -16,7 +16,7 @@ theme | String | list | options:list/grid | N visible | Boolean | false | required。`v-model` and `v-model:visible` is supported | Y defaultVisible | Boolean | false | required。uncontrolled property | Y onCancel | Function | | Typescript:`(context: { e: MouseEvent }) => void`
| N -onClose | Function | | Typescript:`(trigger: TriggerSource) => void`
[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type TriggerSource = 'overlay' \| 'command' \| 'select' `
| N +onClose | Function | | Typescript:`(trigger: ActionSheetTriggerSource) => void`
[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `
| N onSelected | Function | | Typescript:`(selected: ActionSheetItem \| string, index: number) => void`
| N ### ActionSheet Events @@ -24,7 +24,7 @@ onSelected | Function | | Typescript:`(selected: ActionSheetItem \| string, i name | params | description -- | -- | -- cancel | `(context: { e: MouseEvent })` | \- -close | `(trigger: TriggerSource)` | [see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type TriggerSource = 'overlay' \| 'command' \| 'select' `
+close | `(trigger: ActionSheetTriggerSource)` | [see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `
selected | `(selected: ActionSheetItem \| string, index: number)` | \- diff --git a/src/action-sheet/action-sheet.md b/src/action-sheet/action-sheet.md index d2034dfc5..5886652e1 100644 --- a/src/action-sheet/action-sheet.md +++ b/src/action-sheet/action-sheet.md @@ -15,7 +15,7 @@ theme | String | list | 展示类型,列表和表格形式展示。可选项 visible | Boolean | false | 必需。显示与隐藏。支持语法糖 `v-model` 或 `v-model:visible` | Y defaultVisible | Boolean | false | 必需。显示与隐藏。非受控属性 | Y onCancel | Function | | TS 类型:`(context: { e: MouseEvent }) => void`
点击取消按钮时触发 | N -onClose | Function | | TS 类型:`(trigger: TriggerSource) => void`
关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type TriggerSource = 'overlay' \| 'command' \| 'select' `
| N +onClose | Function | | TS 类型:`(trigger: ActionSheetTriggerSource) => void`
关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `
| N onSelected | Function | | TS 类型:`(selected: ActionSheetItem \| string, index: number) => void`
选择菜单项时触发 | N ### ActionSheet Events @@ -23,7 +23,7 @@ onSelected | Function | | TS 类型:`(selected: ActionSheetItem \| string, in 名称 | 参数 | 描述 -- | -- | -- cancel | `(context: { e: MouseEvent })` | 点击取消按钮时触发 -close | `(trigger: TriggerSource)` | 关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type TriggerSource = 'overlay' \| 'command' \| 'select' `
+close | `(trigger: ActionSheetTriggerSource)` | 关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/action-sheet/type.ts)。
`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `
selected | `(selected: ActionSheetItem \| string, index: number)` | 选择菜单项时触发 diff --git a/src/action-sheet/demos/align.vue b/src/action-sheet/demos/align.vue index f5b213111..04b519fc9 100644 --- a/src/action-sheet/demos/align.vue +++ b/src/action-sheet/demos/align.vue @@ -24,7 +24,7 @@