@cabloy/vue-runtime-core 3.5.18 → 3.5.20

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.
@@ -6553,7 +6553,7 @@ function renderComponentRoot(instance) {
6553
6553
  [root, setRoot] = getChildRoot(result);
6554
6554
  }
6555
6555
  if (fallthroughAttrs && inheritAttrs !== false) {
6556
- fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
6556
+ fallthroughAttrs = filterZovaAttrs(fallthroughAttrs, inheritAttrs);
6557
6557
  const keys = Object.keys(fallthroughAttrs);
6558
6558
  const { shapeFlag } = root;
6559
6559
  if (keys.length) {
@@ -6679,10 +6679,15 @@ const filterModelListeners = (attrs, props) => {
6679
6679
  }
6680
6680
  return res;
6681
6681
  };
6682
- const filterZovaAttrs = (attrs) => {
6682
+ const filterZovaAttrs = (attrs, inheritAttrs = true) => {
6683
6683
  const res = {};
6684
+ if (!inheritAttrs) return res;
6684
6685
  for (const key in attrs) {
6685
- if (!["slots", "controllerRef"].includes(key)) {
6686
+ if (inheritAttrs) {
6687
+ if (inheritAttrs === true || inheritAttrs.includes(key)) {
6688
+ res[key] = attrs[key];
6689
+ }
6690
+ } else if (!["slots", "controllerRef"].includes(key)) {
6686
6691
  res[key] = attrs[key];
6687
6692
  }
6688
6693
  }
@@ -5167,7 +5167,7 @@ function renderComponentRoot(instance) {
5167
5167
  }
5168
5168
  let root = result;
5169
5169
  if (fallthroughAttrs && inheritAttrs !== false) {
5170
- fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
5170
+ fallthroughAttrs = filterZovaAttrs(fallthroughAttrs, inheritAttrs);
5171
5171
  const keys = Object.keys(fallthroughAttrs);
5172
5172
  const { shapeFlag } = root;
5173
5173
  if (keys.length) {
@@ -5231,10 +5231,15 @@ const filterModelListeners = (attrs, props) => {
5231
5231
  }
5232
5232
  return res;
5233
5233
  };
5234
- const filterZovaAttrs = (attrs) => {
5234
+ const filterZovaAttrs = (attrs, inheritAttrs = true) => {
5235
5235
  const res = {};
5236
+ if (!inheritAttrs) return res;
5236
5237
  for (const key in attrs) {
5237
- if (!["slots", "controllerRef"].includes(key)) {
5238
+ if (inheritAttrs) {
5239
+ if (inheritAttrs === true || inheritAttrs.includes(key)) {
5240
+ res[key] = attrs[key];
5241
+ }
5242
+ } else if (!["slots", "controllerRef"].includes(key)) {
5238
5243
  res[key] = attrs[key];
5239
5244
  }
5240
5245
  }
@@ -6610,7 +6610,7 @@ function renderComponentRoot(instance) {
6610
6610
  [root, setRoot] = getChildRoot(result);
6611
6611
  }
6612
6612
  if (fallthroughAttrs && inheritAttrs !== false) {
6613
- fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
6613
+ fallthroughAttrs = filterZovaAttrs(fallthroughAttrs, inheritAttrs);
6614
6614
  const keys = Object.keys(fallthroughAttrs);
6615
6615
  const { shapeFlag } = root;
6616
6616
  if (keys.length) {
@@ -6736,10 +6736,15 @@ const filterModelListeners = (attrs, props) => {
6736
6736
  }
6737
6737
  return res;
6738
6738
  };
6739
- const filterZovaAttrs = (attrs) => {
6739
+ const filterZovaAttrs = (attrs, inheritAttrs = true) => {
6740
6740
  const res = {};
6741
+ if (!inheritAttrs) return res;
6741
6742
  for (const key in attrs) {
6742
- if (!["slots", "controllerRef"].includes(key)) {
6743
+ if (inheritAttrs) {
6744
+ if (inheritAttrs === true || inheritAttrs.includes(key)) {
6745
+ res[key] = attrs[key];
6746
+ }
6747
+ } else if (!["slots", "controllerRef"].includes(key)) {
6743
6748
  res[key] = attrs[key];
6744
6749
  }
6745
6750
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.5.18",
3
+ "version": "3.5.20",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",