diff --git a/packages/actionsheet/demo/index.vue b/packages/actionsheet/demo/index.vue index d77dd76d6..099d165d1 100644 --- a/packages/actionsheet/demo/index.vue +++ b/packages/actionsheet/demo/index.vue @@ -2,12 +2,18 @@ {{ $t('button1') }} - + {{ $t('button2') }} - + @@ -53,20 +59,22 @@ export default { computed: { actions() { return [ - { name: this.$t('option'), callback: this.onClick }, + { name: this.$t('option') }, { name: this.$t('option'), subname: this.$t('description') }, - { name: this.$t('option'), loading: true }, + { loading: true }, { name: this.$t('disabledOption'), disabled: true } ]; } }, methods: { - onClick(item) { + onSelect(item) { + this.show1 = false; + this.show2 = false; this.$toast(item.name); }, - handleCancel() { + onCancel() { this.$toast('cancel'); } } @@ -75,10 +83,6 @@ export default {