@cabloy/vue-runtime-core 3.5.15 → 3.5.17
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/runtime-core.cjs.js
CHANGED
|
@@ -6553,6 +6553,7 @@ function renderComponentRoot(instance) {
|
|
|
6553
6553
|
[root, setRoot] = getChildRoot(result);
|
|
6554
6554
|
}
|
|
6555
6555
|
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
6556
|
+
fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
|
|
6556
6557
|
const keys = Object.keys(fallthroughAttrs);
|
|
6557
6558
|
const { shapeFlag } = root;
|
|
6558
6559
|
if (keys.length) {
|
|
@@ -6678,6 +6679,15 @@ const filterModelListeners = (attrs, props) => {
|
|
|
6678
6679
|
}
|
|
6679
6680
|
return res;
|
|
6680
6681
|
};
|
|
6682
|
+
const filterZovaAttrs = (attrs) => {
|
|
6683
|
+
const res = {};
|
|
6684
|
+
for (const key in attrs) {
|
|
6685
|
+
if (!["slots", "controllerRef"].includes(key)) {
|
|
6686
|
+
res[key] = attrs[key];
|
|
6687
|
+
}
|
|
6688
|
+
}
|
|
6689
|
+
return res;
|
|
6690
|
+
};
|
|
6681
6691
|
const isElementRoot = (vnode) => {
|
|
6682
6692
|
return vnode.shapeFlag & (6 | 1) || vnode.type === Comment;
|
|
6683
6693
|
};
|
|
@@ -5167,6 +5167,7 @@ function renderComponentRoot(instance) {
|
|
|
5167
5167
|
}
|
|
5168
5168
|
let root = result;
|
|
5169
5169
|
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
5170
|
+
fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
|
|
5170
5171
|
const keys = Object.keys(fallthroughAttrs);
|
|
5171
5172
|
const { shapeFlag } = root;
|
|
5172
5173
|
if (keys.length) {
|
|
@@ -5230,6 +5231,15 @@ const filterModelListeners = (attrs, props) => {
|
|
|
5230
5231
|
}
|
|
5231
5232
|
return res;
|
|
5232
5233
|
};
|
|
5234
|
+
const filterZovaAttrs = (attrs) => {
|
|
5235
|
+
const res = {};
|
|
5236
|
+
for (const key in attrs) {
|
|
5237
|
+
if (!["slots", "controllerRef"].includes(key)) {
|
|
5238
|
+
res[key] = attrs[key];
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
5241
|
+
return res;
|
|
5242
|
+
};
|
|
5233
5243
|
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
5234
5244
|
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
5235
5245
|
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
@@ -6610,6 +6610,7 @@ function renderComponentRoot(instance) {
|
|
|
6610
6610
|
[root, setRoot] = getChildRoot(result);
|
|
6611
6611
|
}
|
|
6612
6612
|
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
6613
|
+
fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
|
|
6613
6614
|
const keys = Object.keys(fallthroughAttrs);
|
|
6614
6615
|
const { shapeFlag } = root;
|
|
6615
6616
|
if (keys.length) {
|
|
@@ -6735,6 +6736,15 @@ const filterModelListeners = (attrs, props) => {
|
|
|
6735
6736
|
}
|
|
6736
6737
|
return res;
|
|
6737
6738
|
};
|
|
6739
|
+
const filterZovaAttrs = (attrs) => {
|
|
6740
|
+
const res = {};
|
|
6741
|
+
for (const key in attrs) {
|
|
6742
|
+
if (!["slots", "controllerRef"].includes(key)) {
|
|
6743
|
+
res[key] = attrs[key];
|
|
6744
|
+
}
|
|
6745
|
+
}
|
|
6746
|
+
return res;
|
|
6747
|
+
};
|
|
6738
6748
|
const isElementRoot = (vnode) => {
|
|
6739
6749
|
return vnode.shapeFlag & (6 | 1) || vnode.type === Comment;
|
|
6740
6750
|
};
|