123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- var app = getApp();
- Component({
- externalClasses: ["i-class", "i-class-mask"],
- properties: {
- visible: {
- type: Boolean,
- value: !1,
- observer: function(e) {
- var that = this;
- this.data.closeDelay ? setTimeout(function() {
- that.setData({
- isShow: e
- });
- }, this.data.closeDelay) : this.setData({
- isShow: e
- });
- }
- },
- maskClosable: {
- type: Boolean,
- value: true
- },
- scrollUp: {
- type: Boolean,
- value: true
- },
- closeDelay: {
- type: Number,
- value: 0
- }
- },
- data: {
- isIpx: false,
- isShow: false
- },
- attached: function() {
- this.setData({
- isIpx: app.globalData.isIpx
- });
- },
- methods: {
- stopMove: function() {},
- handleClickMask: function() {
- this.data.maskClosable && this.handleClickCancel();
- },
- handleClickCancel: function() {
- this.triggerEvent("cancel");
- }
- }
- });
|