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/breadcrumb/index.es.js +6 -2
- package/breadcrumb/index.umd.js +2 -2
- package/category-search/index.es.js +6 -2
- package/category-search/index.umd.js +17 -17
- package/code-review/index.es.js +185 -9
- package/code-review/index.umd.js +27 -27
- package/code-review/style.css +1 -1
- package/data-grid/index.es.js +6 -2
- package/data-grid/index.umd.js +11 -11
- package/dropdown/index.es.js +6 -2
- package/dropdown/index.umd.js +2 -2
- package/editor-md/index.es.js +6 -2
- package/editor-md/index.umd.js +35 -35
- package/global.d.ts +0 -1
- package/package.json +1 -1
- package/pagination/index.es.js +6 -2
- package/pagination/index.umd.js +12 -12
- package/style.css +1 -1
- package/table/index.es.js +6 -2
- package/table/index.umd.js +11 -11
- package/tree/index.es.js +2 -2
- package/tree/index.umd.js +1 -1
- package/types/code-review/src/code-review-types.d.ts +4 -0
- package/types/code-review/src/composables/use-code-review-comment.d.ts +3 -0
- package/vue-devui.es.js +193 -13
- package/vue-devui.umd.js +82 -82
package/table/index.es.js
CHANGED
|
@@ -269,11 +269,15 @@ function useHorizontalScroll(table2) {
|
|
|
269
269
|
return { onTableScroll };
|
|
270
270
|
}
|
|
271
271
|
const inBrowser = typeof window !== "undefined";
|
|
272
|
+
function judgeFireIsElement(element) {
|
|
273
|
+
const str = Object.prototype.toString.call(element);
|
|
274
|
+
return str.includes("object") && str.includes("HTML") && str.includes("Element");
|
|
275
|
+
}
|
|
272
276
|
function getElement(element) {
|
|
273
|
-
if (element instanceof Element) {
|
|
277
|
+
if (element instanceof Element || judgeFireIsElement(element)) {
|
|
274
278
|
return element;
|
|
275
279
|
}
|
|
276
|
-
if (element && typeof element === "object" && element.$el instanceof Element) {
|
|
280
|
+
if (element && typeof element === "object" && (element.$el instanceof Element || judgeFireIsElement(element.$el))) {
|
|
277
281
|
return element.$el;
|
|
278
282
|
}
|
|
279
283
|
return null;
|