123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- Component({
- options: {
- multipleSlots: true
- },
- properties: {
- show:{
- type: Boolean,
- observer: function (newVal){
- this.setData({
- show: newVal,
- showAnimation:newVal
- });
- }
- },
- height:{
- type: String,
- observer: function (newVal){
- if (newVal) {
- this.setData({ height: newVal });
- }
- }
- },
- FixHeight:{
- type: String,
- observer: function (newVal){
- if (newVal) {
- this.setData({ FixHeight: newVal });
- }
- }
- }
- },
- data: {
- show:false,
- showAnimation:false,
- height:'100%',
- minHeight:'0'
- },
- methods: {
- close(){
- this.setData({showAnimation:false})
- setTimeout(() => {
- this.setData({ show: false });
- this.triggerEvent("close", this.data.show);
- }, 300);
- }
- }
- })
|