vant-weapp/packages/mixins/open-type.ts
2019-08-12 19:57:38 +08:00

34 lines
760 B
TypeScript

import { Weapp } from "definitions/weapp";
export const openType = Behavior({
properties: {
openType: String
},
methods: {
bindGetUserInfo(event: Partial<Weapp.Event>) {
this.$emit('getuserinfo', event.detail);
},
bindContact(event: Partial<Weapp.Event>) {
this.$emit('contact', event.detail);
},
bindGetPhoneNumber(event: Partial<Weapp.Event>) {
this.$emit('getphonenumber', event.detail);
},
bindError(event: Partial<Weapp.Event>) {
this.$emit('error', event.detail);
},
bindLaunchApp(event: Partial<Weapp.Event>) {
this.$emit('launchapp', event.detail);
},
bindOpenSetting(event: Partial<Weapp.Event>) {
this.$emit('opensetting', event.detail);
},
}
});