dolphin-weex-ui 2.1.0 → 2.1.2

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.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -2,9 +2,10 @@
2
2
  <div>
3
3
  <div @touchend="handleTouchEnd">
4
4
  <dof-overlay
5
- :show="show"
5
+ :show="overlayShow"
6
6
  ref="overlay"
7
7
  v-bind="overlayCfg"
8
+ :canAutoClose="isOverLayClickHide"
8
9
  @dofOverlayBodyClicked="dofOverlayBodyClicking"
9
10
  ></dof-overlay>
10
11
  </div>
@@ -153,13 +154,18 @@ export default {
153
154
  borderRadius: {
154
155
  type: String,
155
156
  default: '32px'
157
+ },
158
+ isOverLayClickHide: {
159
+ type: Boolean,
160
+ default: true
156
161
  }
157
162
  },
158
163
  data: () => ({
159
164
  haveOverlay: true,
160
165
  isOverShow: true,
161
166
  bottomArc: 0,
162
- show_: false
167
+ show_: false,
168
+ overlayShow: false
163
169
  }),
164
170
  computed: {
165
171
  isipx: function() {
@@ -248,6 +254,7 @@ export default {
248
254
  show: {
249
255
  handler(val) {
250
256
  if (val) {
257
+ this.overlayShow = true
251
258
  setTimeout(() => {
252
259
  this.show_ = true
253
260
  }, 0)
@@ -255,7 +262,8 @@ export default {
255
262
  this.appearPopup(false, 300, () => {})
256
263
  setTimeout(() => {
257
264
  this.show_ = false
258
- }, 0)
265
+ this.overlayShow = false
266
+ }, 400)
259
267
  }
260
268
  },
261
269
  immediate: true
@@ -282,7 +290,7 @@ export default {
282
290
  this.$refs.overlay.appearOverlay(false)
283
291
  },
284
292
  dofOverlayBodyClicking() {
285
- this.isShow && this.appearPopup(false)
293
+ this.isOverLayClickHide && this.isShow && this.appearPopup(false)
286
294
  setTimeout(() => {
287
295
  this.$emit('dofPopupOverlayClicked')
288
296
  }, 100)