dolphin-weex-ui 2.3.13 → 2.3.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.3.13",
3
+ "version": "2.3.15",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _index["default"];
10
+ }
11
+ });
12
+
13
+ var _index = _interopRequireDefault(require("./index.vue"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -55,7 +55,7 @@ export default {
55
55
  },
56
56
  watch: {
57
57
  show: {
58
- handler(val) {
58
+ handler(val, oldVal) {
59
59
  if (val) {
60
60
  this.show_ = true
61
61
  this.hasAnimation &&
@@ -63,6 +63,7 @@ export default {
63
63
  this.appearOverlay(true)
64
64
  }, 20)
65
65
  } else {
66
+ if (oldVal !== true) return
66
67
  this.hasAnimation && this.appearOverlay(false, this.duration, () => {})
67
68
  setTimeout(() => {
68
69
  this.show_ = false
@@ -255,13 +255,14 @@ export default {
255
255
  }, 100)
256
256
  },
257
257
  show: {
258
- handler(val) {
258
+ handler(val, oldVal) {
259
259
  if (val) {
260
260
  this.overlayShow = true
261
261
  setTimeout(() => {
262
262
  this.show_ = true
263
263
  }, 0)
264
264
  } else {
265
+ if (oldVal !== true) return
265
266
  this.appearPopup(false, 300, () => {})
266
267
  setTimeout(() => {
267
268
  this.show_ = false
@@ -76,7 +76,7 @@
76
76
  left: 12px;
77
77
  transform-origin: center;
78
78
  transition-property: all;
79
- transition-duration: 5s;
79
+ /* transition-duration: 5s; */
80
80
  background-color: transparent;
81
81
  }
82
82
  .switch-white-dot {
@@ -86,7 +86,7 @@
86
86
  position: relative;
87
87
  left: 12px;
88
88
  transition-property: all;
89
- transition-duration: 5s;
89
+ /* transition-duration: 5s; */
90
90
  background-color: transparent;
91
91
  }
92
92
  </style>