2021-12-21 09:51:43 +08:00

29 lines
458 B
TypeScript

import { VantComponent } from '../../common/component';
VantComponent({
data: {
show: false,
showEmbedded: false,
},
methods: {
onClickShow() {
this.setData({ show: true });
},
onClickHide() {
this.setData({ show: false });
},
onClickShowEmbedded() {
this.setData({ showEmbedded: true });
},
onClickHideEmbedded() {
this.setData({ showEmbedded: false });
},
noop() {},
},
});