feat: add emits option

This commit is contained in:
chenjiahan
2020-07-06 15:22:33 +08:00
parent 6995bcc8a3
commit 0e4b5a0f2f
9 changed files with 24 additions and 5 deletions
+3 -4
View File
@@ -39,13 +39,12 @@ export const popupMixinProps = {
export function PopupMixin(options = {}) {
return {
mixins: [
TouchMixin,
CloseOnPopstateMixin,
],
mixins: [TouchMixin, CloseOnPopstateMixin],
props: popupMixinProps,
emits: ['open', 'close', 'update:show', 'click-overlay'],
data() {
return {
inited: this.show,