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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.4.29",
3
+ "version": "2.4.31",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -5,5 +5,7 @@
5
5
  .midea-actionsheet-btn {
6
6
  background-color: transparent;
7
7
  }
8
-
8
+ .midea-actionsheet-btn:active {
9
+ background-color: transparent;
10
+ }
9
11
  }
@@ -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
- setTimeout(() => {
306
- dom.getComponentRect(this.$refs.rightContent[0], rect => {
307
- if (rect && rect.size) {
308
- this.rightContentWidth = rect.size.width - 140
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>