You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
472 B
33 lines
472 B
2 years ago
|
Component({
|
||
|
properties: {
|
||
|
grey: {
|
||
|
type: Boolean,
|
||
|
value: false,
|
||
|
},
|
||
|
showed: {
|
||
|
type: Boolean,
|
||
|
value: false,
|
||
|
},
|
||
|
},
|
||
|
|
||
|
data: {
|
||
|
hidden: true,
|
||
|
},
|
||
|
|
||
|
observers: {
|
||
|
showed(val) {
|
||
|
this.setData({ hidden: !val });
|
||
|
},
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
show() {
|
||
|
console.log("show");
|
||
|
this.setData({ hidden: false });
|
||
|
},
|
||
|
hide() {
|
||
|
this.setData({ hidden: true });
|
||
|
},
|
||
|
},
|
||
|
});
|