mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
29 lines
458 B
TypeScript
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() {},
|
|
},
|
|
});
|