dolphin-weex-ui 2.4.29 → 2.4.31
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/CHANGELOG.md +10 -0
- package/dist/index.native.js +18 -7
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +20 -9
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-popup/diablo.css +3 -1
- package/packages/dof-simple-flow/index.vue +18 -7
package/package.json
CHANGED
|
@@ -214,7 +214,8 @@ export default {
|
|
|
214
214
|
},
|
|
215
215
|
data() {
|
|
216
216
|
return {
|
|
217
|
-
rightContentWidth: null
|
|
217
|
+
rightContentWidth: null,
|
|
218
|
+
getRightContentWidthTimer: null
|
|
218
219
|
}
|
|
219
220
|
},
|
|
220
221
|
methods: {
|
|
@@ -302,13 +303,23 @@ export default {
|
|
|
302
303
|
}
|
|
303
304
|
},
|
|
304
305
|
mounted() {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
this.getRightContentWidthTimer = setInterval(() => {
|
|
307
|
+
if (this.$refs.rightContent && this.$refs.rightContent[0]) {
|
|
308
|
+
dom.getComponentRect(this.$refs.rightContent[0], rect => {
|
|
309
|
+
if (rect && rect.size) {
|
|
310
|
+
this.rightContentWidth = rect.size.width - 140
|
|
311
|
+
}
|
|
312
|
+
})
|
|
313
|
+
clearInterval(this.getRightContentWidthTimer)
|
|
314
|
+
this.getRightContentWidthTimer = null
|
|
315
|
+
}
|
|
311
316
|
}, 20)
|
|
317
|
+
setTimeout(() => {
|
|
318
|
+
if (this.getRightContentWidthTimer) {
|
|
319
|
+
clearInterval(this.getRightContentWidthTimer)
|
|
320
|
+
this.getRightContentWidthTimer = null
|
|
321
|
+
}
|
|
322
|
+
}, 1000)
|
|
312
323
|
}
|
|
313
324
|
}
|
|
314
325
|
</script>
|