@pinegrow/vite-plugin 3.0.0-beta.31 → 3.0.0-beta.32
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/vue-plugin.js +3 -15
- package/package.json +1 -1
package/dist/vue-plugin.js
CHANGED
|
@@ -59,20 +59,6 @@ export function usePinegrow() {
|
|
|
59
59
|
|
|
60
60
|
winObj.pinegrow = {
|
|
61
61
|
elCache,
|
|
62
|
-
elCacheErrHandlerFn: (...args) => {
|
|
63
|
-
// {vnode, hook, rootEl, pgId, key, el, instance, message}
|
|
64
|
-
console.log(args.pop())
|
|
65
|
-
// connectionManager.fallback_tagTransform(args)
|
|
66
|
-
},
|
|
67
|
-
elUpdateHanderFn: el => {
|
|
68
|
-
if (this.elCache.has(el)) {
|
|
69
|
-
const { pgId } = this.elCache.get(el)
|
|
70
|
-
if (pgId && pgId === pinegrow.getSelectedElement()?.pgId) {
|
|
71
|
-
console.log(`Reselect ${pgId}`)
|
|
72
|
-
// pinegrow.reselectElement()
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
62
|
|
|
77
63
|
rootFragmentToPgIdComputed,
|
|
78
64
|
pgIdToElComputed,
|
|
@@ -162,7 +148,9 @@ export function usePinegrow() {
|
|
|
162
148
|
})
|
|
163
149
|
}
|
|
164
150
|
|
|
165
|
-
elUpdateHanderFn
|
|
151
|
+
if (pinegrow.elUpdateHanderFn) {
|
|
152
|
+
pinegrow.elUpdateHanderFn(el)
|
|
153
|
+
}
|
|
166
154
|
} catch (err) {
|
|
167
155
|
if (pinegrow.elCacheErrHandlerFn) {
|
|
168
156
|
pinegrow.elCacheErrHandlerFn(vnode, hook, rootEl, pgId, key, el, instance, err.message)
|