openatc-components 0.0.104 → 0.0.105

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.
@@ -70,6 +70,10 @@ export default {
70
70
  AgentId: {
71
71
  type: String,
72
72
  default: '0'
73
+ },
74
+ resizeMap: { // 重新获取容器大小,调整底图大小
75
+ type: Boolean,
76
+ default: false
73
77
  }
74
78
  },
75
79
  watch: {
@@ -116,6 +120,13 @@ export default {
116
120
  this.load('all')
117
121
  },
118
122
  deep: true
123
+ },
124
+ resizeMap: {
125
+ handler: function (newval, oldval) {
126
+ if (newval === true && oldval === false) {
127
+ this.getParentSize()
128
+ }
129
+ }
119
130
  }
120
131
  },
121
132
  data () {
@@ -958,7 +958,7 @@ export default {
958
958
  _this.dialogVisible = false
959
959
  _this.LoadedChannelizatonData = JSON.parse(this.result)
960
960
  _this.load()
961
- _this.$alert(_this.$t('openatccomponents.common.uploadsuccess'), { type: 'success' })
961
+ _this.$alert(_this.$t('openatccomponents.channelizationmap.importfilesuccess'), { type: 'success' })
962
962
  }, 50)
963
963
  }
964
964
  },
@@ -95,6 +95,10 @@ export default {
95
95
  controlName: {
96
96
  type: String,
97
97
  default: ''
98
+ },
99
+ resizeMap: { // 重新获取容器大小,调整底图大小
100
+ type: Boolean,
101
+ default: false
98
102
  }
99
103
  },
100
104
  watch: {
@@ -106,6 +110,13 @@ export default {
106
110
  },
107
111
  // 深度观察监听
108
112
  deep: true
113
+ },
114
+ resizeMap: {
115
+ handler: function (newval, oldval) {
116
+ if (newval === true && oldval === false) {
117
+ this.getParentSize()
118
+ }
119
+ }
109
120
  }
110
121
  },
111
122
  created () {