vue-devui 1.6.20 → 1.6.21

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/global.d.ts CHANGED
@@ -21,7 +21,6 @@ DCheckbox: typeof import('./types/vue-devui')['Checkbox']
21
21
  DCheckboxGroup: typeof import('./types/vue-devui')['CheckboxGroup']
22
22
  DCheckboxButton: typeof import('./types/vue-devui')['CheckboxButton']
23
23
  DCodeEditor: typeof import('./types/vue-devui')['CodeEditor']
24
- DCodeReview: typeof import('./types/vue-devui')['CodeReview']
25
24
  DCollapse: typeof import('./types/vue-devui')['Collapse']
26
25
  DCollapseItem: typeof import('./types/vue-devui')['CollapseItem']
27
26
  DCountdown: typeof import('./types/vue-devui')['Countdown']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-devui",
3
- "version": "1.6.20",
3
+ "version": "1.6.21",
4
4
  "license": "MIT",
5
5
  "description": "DevUI components based on Vite and Vue3",
6
6
  "keywords": [
@@ -5536,11 +5536,15 @@ const formProps = {
5536
5536
  const FORM_TOKEN = "dForm";
5537
5537
  const STYLE_TOKEN = "dFormStyle";
5538
5538
  const inBrowser = typeof window !== "undefined";
5539
+ function judgeFireIsElement(element) {
5540
+ const str = Object.prototype.toString.call(element);
5541
+ return str.includes("object") && str.includes("HTML") && str.includes("Element");
5542
+ }
5539
5543
  function getElement(element) {
5540
- if (element instanceof Element) {
5544
+ if (element instanceof Element || judgeFireIsElement(element)) {
5541
5545
  return element;
5542
5546
  }
5543
- if (element && typeof element === "object" && element.$el instanceof Element) {
5547
+ if (element && typeof element === "object" && (element.$el instanceof Element || judgeFireIsElement(element.$el))) {
5544
5548
  return element.$el;
5545
5549
  }
5546
5550
  return null;