openatc-components 0.0.106 → 0.0.107

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": "openatc-components",
3
- "version": "0.0.106",
3
+ "version": "0.0.107",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -471,6 +471,7 @@ export default {
471
471
  this.bodyDomWidth = this.bodyDomSize.width
472
472
  window.addEventListener('resize', () => {
473
473
  // 定义窗口大小变更通知事件
474
+ if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
474
475
  _this.bodyDomSize.width = _this.$el.parentElement.clientWidth
475
476
  this.bodyDomWidth = this.bodyDomSize.width
476
477
  console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)
@@ -274,6 +274,7 @@ export default {
274
274
  this.bodyDomWidth = this.bodyDomSize.width
275
275
  window.addEventListener('resize', () => {
276
276
  // 定义窗口大小变更通知事件
277
+ if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
277
278
  _this.bodyDomSize.width = _this.$el.parentElement.clientWidth
278
279
  this.bodyDomWidth = this.bodyDomSize.width
279
280
  console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)
@@ -134,6 +134,7 @@ export default {
134
134
  this.bodyDomWidth = this.bodyDomSize.width
135
135
  window.addEventListener('resize', () => {
136
136
  // 定义窗口大小变更通知事件
137
+ if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
137
138
  _this.bodyDomSize.width = _this.$el.parentElement.clientWidth
138
139
  this.bodyDomWidth = this.bodyDomSize.width
139
140
  console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)