goodteditor-ui 1.0.13 → 1.0.14
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": "goodteditor-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"homepage": "https://goodt-ui.netlify.app/",
|
|
6
6
|
"scripts": {
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"dev": "vue-styleguidist server",
|
|
11
11
|
"docs:build": "set NODE_ENV=development && vue-styleguidist build",
|
|
12
12
|
"docs:deploy": "npx netlify deploy --dir=docs --prod",
|
|
13
|
-
"notify": "node ./ci/teams-notify.js"
|
|
14
|
-
"publish": "npm run docs:build && npm run docs:deploy && npm run notify"
|
|
13
|
+
"notify": "node ./ci/teams-notify.js"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
@@ -119,6 +119,13 @@ export default {
|
|
|
119
119
|
cursorCoordinates: {
|
|
120
120
|
type: Array,
|
|
121
121
|
default: () => [0, 0]
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* Whether handle events to control visibility
|
|
125
|
+
*/
|
|
126
|
+
isManualControlMode: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false
|
|
122
129
|
}
|
|
123
130
|
},
|
|
124
131
|
data() {
|
|
@@ -160,13 +167,16 @@ export default {
|
|
|
160
167
|
show: {
|
|
161
168
|
handler(val) {
|
|
162
169
|
this.$nextTick(() => {
|
|
163
|
-
if (val ===
|
|
164
|
-
this.
|
|
165
|
-
this.createPopper();
|
|
170
|
+
if (val === false) {
|
|
171
|
+
this.handleReset();
|
|
166
172
|
return;
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
this.
|
|
175
|
+
if (this.isManualControlMode === false) {
|
|
176
|
+
this.addEventListeners();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
this.createPopper();
|
|
170
180
|
});
|
|
171
181
|
},
|
|
172
182
|
immediate: true,
|
|
@@ -235,7 +245,9 @@ export default {
|
|
|
235
245
|
},
|
|
236
246
|
handleReset() {
|
|
237
247
|
this.unwatchCursorCoordinates?.();
|
|
238
|
-
this.
|
|
248
|
+
if (this.isManualControlMode === false) {
|
|
249
|
+
this.removeEventListeners();
|
|
250
|
+
}
|
|
239
251
|
this.destroyPopper();
|
|
240
252
|
},
|
|
241
253
|
onWinBlur(e) {
|