12345678910111213141516171819202122232425262728293031323334353637 |
- 'use strict';
- Component({
- properties: {
- show: {
- type: Boolean,
- value: false
- },
- overlay: {
- type: Boolean,
- value: true
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true
- },
- // 弹出方向
- type: {
- type: String,
- value: 'center'
- }
- },
- methods: {
- handleMaskClick: function() {
- this.triggerEvent('click-overlay', {});
- if (!this.data.closeOnClickOverlay) {
- return;
- }
- this.triggerEvent('close', {});
- }
- }
- });
|