diff --git a/components.d.ts b/components.d.ts index 49e7fb5..4c90676 100644 --- a/components.d.ts +++ b/components.d.ts @@ -10,6 +10,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { _index: typeof import('./src/core/components/_sample/_index.vue')['default'] + AAlert: typeof import('ant-design-vue/es')['Alert'] AAvatar: typeof import('ant-design-vue/es')['Avatar'] ABadge: typeof import('ant-design-vue/es')['Badge'] AButton: typeof import('ant-design-vue/es')['Button'] diff --git a/src/components/BasicActionSheet.vue b/src/components/BasicActionSheet.vue index fa86557..63fdf40 100644 --- a/src/components/BasicActionSheet.vue +++ b/src/components/BasicActionSheet.vue @@ -31,10 +31,13 @@ {{ okText }} @@ -79,10 +82,13 @@ {{ okText }} @@ -151,6 +157,10 @@ function handleCancel() { emit('close') visibleProxy.value = false } + +function handleOk() { + emit('ok') +}