@netang/quasar 0.1.41 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,10 +10,7 @@
10
10
  v-bind="$attrs"
11
11
  @hide="onDialogHide"
12
12
  >
13
- <div class="absolute-full">
14
-
15
- <!-- 遮蔽 -->
16
- <div class="absolute-full" @click="onDialogCancel" v-if="! noBackdropDismiss"></div>
13
+ <div class="absolute-full" @click.self="onMask">
17
14
 
18
15
  <!-- 关闭 -->
19
16
  <q-btn
@@ -110,6 +107,7 @@
110
107
  :key="`${item.src}-${i}`"
111
108
  :href="item.origin"
112
109
  target="_blank"
110
+ class="non-selectable no-outline"
113
111
  >
114
112
  <img
115
113
  :ref="(el) => (imgRefs[i] = el)"
@@ -289,7 +287,7 @@ export default {
289
287
  })
290
288
  }
291
289
  })
292
-
290
+
293
291
  return lists
294
292
  })
295
293
 
@@ -510,6 +508,15 @@ export default {
510
508
  transform.value.enableTransition = enableTransition
511
509
  }
512
510
 
511
+ /**
512
+ * 点击遮蔽
513
+ */
514
+ function onMask() {
515
+ if (! props.noBackdropDismiss) {
516
+ onDialogCancel()
517
+ }
518
+ }
519
+
513
520
  // ==========【声明周期】=========================================================================================
514
521
 
515
522
  /**
@@ -572,6 +579,8 @@ export default {
572
579
  next,
573
580
  // 操作
574
581
  handleActions,
582
+ // 点击遮蔽
583
+ onMask,
575
584
  }
576
585
  }
577
586
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"