@tagplus/components 1.2.1 → 1.2.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/dist/tp.common.js +1 -1
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.umd.js +1 -1
- package/dist/tp.umd.js.map +1 -1
- package/dist/tp.umd.min.js +1 -1
- package/dist/tp.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Dialog/Dialog.vue +17 -18
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"email": "bruno@tagplus.com.br"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
|
-
"version": "1.2.
|
|
11
|
+
"version": "1.2.2",
|
|
12
12
|
"main": "./dist/tp.common.js",
|
|
13
13
|
"directories": {
|
|
14
14
|
"lib": "src/lib"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"axios": "^0.27.0",
|
|
46
46
|
"core-js": "^3.21.1",
|
|
47
47
|
"element-theme-chalk": "^2.13",
|
|
48
|
-
"element-ui": "
|
|
48
|
+
"element-ui": "2.15.8",
|
|
49
49
|
"js-cookie": "^3.0.1",
|
|
50
50
|
"vue": "^2.6.14",
|
|
51
51
|
"vue-axios": "^2.1.5",
|
|
@@ -152,29 +152,28 @@ export default {
|
|
|
152
152
|
immediate: true,
|
|
153
153
|
handler (val, oldValue) {
|
|
154
154
|
// Fixing undefined reference of $el with next tick.
|
|
155
|
-
|
|
155
|
+
this.$nextTick(() => {
|
|
156
156
|
if (val) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
this.$nextTick(() => {
|
|
161
|
-
this.$refs.dialog.scrollTop = 0
|
|
162
|
-
})
|
|
163
|
-
if (this.appendToBody) {
|
|
164
|
-
document.body.appendChild(this.$el)
|
|
165
|
-
}
|
|
166
|
-
} else {
|
|
167
|
-
this.$el.removeEventListener('scroll', this.updatePopper)
|
|
168
|
-
if (!this.closed) this.$emit('close')
|
|
169
|
-
if (this.destroyOnClose) {
|
|
157
|
+
this.closed = false
|
|
158
|
+
this.$emit('open')
|
|
159
|
+
this.$el.addEventListener('scroll', this.updatePopper)
|
|
170
160
|
this.$nextTick(() => {
|
|
171
|
-
this.
|
|
161
|
+
this.$refs.dialog.scrollTop = 0
|
|
172
162
|
})
|
|
163
|
+
if (this.appendToBody) {
|
|
164
|
+
document.body.appendChild(this.$el)
|
|
165
|
+
}
|
|
166
|
+
} else {
|
|
167
|
+
this.$el.removeEventListener('scroll', this.updatePopper)
|
|
168
|
+
if (!this.closed) this.$emit('close')
|
|
169
|
+
if (this.destroyOnClose) {
|
|
170
|
+
this.$nextTick(() => {
|
|
171
|
+
this.key++
|
|
172
|
+
})
|
|
173
|
+
}
|
|
173
174
|
}
|
|
174
|
-
}
|
|
175
|
-
})
|
|
175
|
+
})
|
|
176
176
|
}
|
|
177
|
-
|
|
178
177
|
}
|
|
179
178
|
},
|
|
180
179
|
|