@opentiny/vue-renderless 3.21.1 → 3.21.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.
@@ -53,6 +53,9 @@ const isFixed = (el) => {
53
53
  if (getStyleComputedProperty(el, "position") === "fixed") {
54
54
  return true;
55
55
  }
56
+ if (el.host) {
57
+ el = el.host;
58
+ }
56
59
  return el.parentNode ? isFixed(el.parentNode) : false;
57
60
  };
58
61
  const getBoundingClientRect = (el) => {
@@ -22,6 +22,9 @@ const getReferMaxZIndex = (reference) => {
22
22
  let z;
23
23
  do {
24
24
  reference = reference.parentNode;
25
+ if (reference && reference instanceof ShadowRoot && reference.host) {
26
+ reference = reference.host;
27
+ }
25
28
  if (reference) {
26
29
  z = getZIndex(reference);
27
30
  } else {
package/common/index.js CHANGED
@@ -237,7 +237,7 @@ const CASCADER = {
237
237
  PropsHover: "hoverThreshold",
238
238
  MenuConnector: "cascader-menu-"
239
239
  };
240
- const version = "3.21.1";
240
+ const version = "3.21.2";
241
241
  const log = (data, type = "log") => {
242
242
  uLog.logger[type](data);
243
243
  };
package/common/runtime.js CHANGED
@@ -22,7 +22,7 @@ import vuePopup from "./deps/vue-popup";
22
22
  import validate from "./validate";
23
23
  import memorize from "./deps/memorize";
24
24
  import * as common from ".";
25
- const version = "3.21.1";
25
+ const version = "3.21.2";
26
26
  const Renderless = {
27
27
  browser,
28
28
  array,
package/grid/utils/dom.js CHANGED
@@ -119,9 +119,12 @@ const colToVisible = ($table, column, move) => {
119
119
  });
120
120
  };
121
121
  const hasDataTag = (el, value) => {
122
- if (!el || !value || !el.getAttribute) {
122
+ if (!el || !value) {
123
123
  return false;
124
124
  }
125
+ if (el.host) {
126
+ el = el.host;
127
+ }
125
128
  return (" " + el.getAttribute("data-tag") + " ").includes(" " + value + " ");
126
129
  };
127
130
  const getEventTargetNode = (event, container, queryCls) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/vue-renderless",
3
- "version": "3.21.1",
3
+ "version": "3.21.2",
4
4
  "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
5
5
  "author": "OpenTiny Team",
6
6
  "license": "MIT",
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "color": "4.2.3",
29
- "@opentiny/utils": "^1.0.0"
28
+ "@opentiny/utils": "^1.0.0",
29
+ "color": "4.2.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "esno": "^4.7.0",