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.
30 lines
592 B
30 lines
592 B
"use strict";
|
|
Component({
|
|
properties: {
|
|
grey: {
|
|
type: Boolean,
|
|
value: false,
|
|
},
|
|
showed: {
|
|
type: Boolean,
|
|
value: false,
|
|
},
|
|
},
|
|
data: {
|
|
hidden: true,
|
|
},
|
|
observers: {
|
|
showed: function (val) {
|
|
this.setData({ hidden: !val });
|
|
},
|
|
},
|
|
methods: {
|
|
show: function () {
|
|
console.log("show");
|
|
this.setData({ hidden: false });
|
|
},
|
|
hide: function () {
|
|
this.setData({ hidden: true });
|
|
},
|
|
},
|
|
});
|
|
|