@das-fed/upf-ui 6.4.0-dev.285 → 6.4.0-dev.286
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/front-end/i18n/front-end-page/dasui_en-US.js +6 -6
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +6 -6
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +6 -6
- package/package.json +3 -3
- package/packages/components/spin/index.js +50 -46
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +121 -117
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -732,25 +732,29 @@ export default {
|
|
|
732
732
|
"点击下载": "",
|
|
733
733
|
"仅支持上传": "",
|
|
734
734
|
"重复数据以最后一条为准": "",
|
|
735
|
-
"请重新支付": "",
|
|
736
735
|
"删除流程定义": "",
|
|
737
736
|
"对应的实例和任务会一起删除": "",
|
|
737
|
+
"请重新支付": "",
|
|
738
738
|
"添加组织": "",
|
|
739
739
|
"用户": "",
|
|
740
740
|
"预订上午": "",
|
|
741
741
|
"的会议室": "",
|
|
742
|
+
"数据趋势": "",
|
|
742
743
|
"数字": "",
|
|
743
744
|
"小写字母": "",
|
|
744
745
|
"大写字母": "",
|
|
745
746
|
"符号": "",
|
|
746
747
|
"修改密码成功": "",
|
|
747
|
-
"数据趋势": "",
|
|
748
748
|
"引用": "",
|
|
749
749
|
"篇资料作为参考": "",
|
|
750
750
|
"思考中": "",
|
|
751
751
|
"用时": "",
|
|
752
752
|
"秒": "",
|
|
753
753
|
"确定要删除吗": "",
|
|
754
|
+
"删除后": "",
|
|
755
|
+
"该会话将不可恢复": "",
|
|
756
|
+
"清空后": "",
|
|
757
|
+
"所有历史将无法找回": "",
|
|
754
758
|
"嗨": "",
|
|
755
759
|
"我是": "",
|
|
756
760
|
"我可以帮你分析": "",
|
|
@@ -758,10 +762,6 @@ export default {
|
|
|
758
762
|
"调节设备": "",
|
|
759
763
|
"预订会议室": "",
|
|
760
764
|
"请把你的任务交给我吧": "",
|
|
761
|
-
"删除后": "",
|
|
762
|
-
"该会话将不可恢复": "",
|
|
763
|
-
"清空后": "",
|
|
764
|
-
"所有历史将无法找回": "",
|
|
765
765
|
"回答中": "",
|
|
766
766
|
"近": "",
|
|
767
767
|
"最多支持选择": "",
|
|
@@ -719,25 +719,29 @@ export default {
|
|
|
719
719
|
"点击下载": "点击下载",
|
|
720
720
|
"仅支持上传": "仅支持上传",
|
|
721
721
|
"重复数据以最后一条为准": "重复数据以最后一条为准",
|
|
722
|
-
"请重新支付": "请重新支付",
|
|
723
722
|
"删除流程定义": "删除流程定义",
|
|
724
723
|
"对应的实例和任务会一起删除": "对应的实例和任务会一起删除",
|
|
724
|
+
"请重新支付": "请重新支付",
|
|
725
725
|
"添加组织": "添加组织",
|
|
726
726
|
"用户": "用户",
|
|
727
727
|
"预订上午": "预订上午",
|
|
728
728
|
"的会议室": "的会议室",
|
|
729
|
+
"数据趋势": "数据趋势",
|
|
729
730
|
"数字": "数字",
|
|
730
731
|
"小写字母": "小写字母",
|
|
731
732
|
"大写字母": "大写字母",
|
|
732
733
|
"符号": "符号",
|
|
733
734
|
"修改密码成功": "修改密码成功",
|
|
734
|
-
"数据趋势": "数据趋势",
|
|
735
735
|
"引用": "引用",
|
|
736
736
|
"篇资料作为参考": "篇资料作为参考",
|
|
737
737
|
"思考中": "思考中",
|
|
738
738
|
"用时": "用时",
|
|
739
739
|
"秒": "秒",
|
|
740
740
|
"确定要删除吗": "确定要删除吗",
|
|
741
|
+
"删除后": "删除后",
|
|
742
|
+
"该会话将不可恢复": "该会话将不可恢复",
|
|
743
|
+
"清空后": "清空后",
|
|
744
|
+
"所有历史将无法找回": "所有历史将无法找回",
|
|
741
745
|
"嗨": "嗨",
|
|
742
746
|
"我是": "我是",
|
|
743
747
|
"我可以帮你分析": "我可以帮你分析",
|
|
@@ -745,10 +749,6 @@ export default {
|
|
|
745
749
|
"调节设备": "调节设备",
|
|
746
750
|
"预订会议室": "预订会议室",
|
|
747
751
|
"请把你的任务交给我吧": "请把你的任务交给我吧",
|
|
748
|
-
"删除后": "删除后",
|
|
749
|
-
"该会话将不可恢复": "该会话将不可恢复",
|
|
750
|
-
"清空后": "清空后",
|
|
751
|
-
"所有历史将无法找回": "所有历史将无法找回",
|
|
752
752
|
"回答中": "回答中",
|
|
753
753
|
"近": "近",
|
|
754
754
|
"最多支持选择": "最多支持选择",
|
|
@@ -718,25 +718,29 @@ export default {
|
|
|
718
718
|
"点击下载": "",
|
|
719
719
|
"仅支持上传": "",
|
|
720
720
|
"重复数据以最后一条为准": "",
|
|
721
|
-
"请重新支付": "",
|
|
722
721
|
"删除流程定义": "",
|
|
723
722
|
"对应的实例和任务会一起删除": "",
|
|
723
|
+
"请重新支付": "",
|
|
724
724
|
"添加组织": "",
|
|
725
725
|
"用户": "",
|
|
726
726
|
"预订上午": "",
|
|
727
727
|
"的会议室": "",
|
|
728
|
+
"数据趋势": "",
|
|
728
729
|
"数字": "",
|
|
729
730
|
"小写字母": "",
|
|
730
731
|
"大写字母": "",
|
|
731
732
|
"符号": "",
|
|
732
733
|
"修改密码成功": "",
|
|
733
|
-
"数据趋势": "",
|
|
734
734
|
"引用": "",
|
|
735
735
|
"篇资料作为参考": "",
|
|
736
736
|
"思考中": "",
|
|
737
737
|
"用时": "",
|
|
738
738
|
"秒": "",
|
|
739
739
|
"确定要删除吗": "",
|
|
740
|
+
"删除后": "",
|
|
741
|
+
"该会话将不可恢复": "",
|
|
742
|
+
"清空后": "",
|
|
743
|
+
"所有历史将无法找回": "",
|
|
740
744
|
"嗨": "",
|
|
741
745
|
"我是": "",
|
|
742
746
|
"我可以帮你分析": "",
|
|
@@ -744,10 +748,6 @@ export default {
|
|
|
744
748
|
"调节设备": "",
|
|
745
749
|
"预订会议室": "",
|
|
746
750
|
"请把你的任务交给我吧": "",
|
|
747
|
-
"删除后": "",
|
|
748
|
-
"该会话将不可恢复": "",
|
|
749
|
-
"清空后": "",
|
|
750
|
-
"所有历史将无法找回": "",
|
|
751
751
|
"回答中": "",
|
|
752
752
|
"近": "",
|
|
753
753
|
"最多支持选择": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-ui",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.286",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"vue-tsc": "^2.0.29"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
59
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
58
|
+
"@das-fed/upf-cli": "6.4.0-dev.286",
|
|
59
|
+
"@das-fed/upf-utils": "6.4.0-dev.286",
|
|
60
60
|
"@types/markdown-it": "^14.1.2",
|
|
61
61
|
"@wangeditor-next/editor": "5.6.31",
|
|
62
62
|
"@wangeditor-next/editor-for-vue": "5.1.14",
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { openBlock as
|
|
4
|
-
import { Spin as
|
|
1
|
+
import { setI18nRule as u, t as v } from "@das-fed/upf-web/packages/i18n/index";
|
|
2
|
+
import { withInstall as _ } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { openBlock as n, createElementBlock as d, createStaticVNode as m, createElementVNode as l, defineComponent as $, ref as C, useAttrs as g, watch as f, h as o, normalizeClass as z, createVNode as S, unref as p, mergeProps as h, withCtx as x, renderSlot as y } from "vue";
|
|
4
|
+
import { Spin as I } from "ant-design-vue";
|
|
5
5
|
import "ant-design-vue/es/spin/style/css";
|
|
6
6
|
import { DasIconLoad as L } from "@das-fed/upf-ui/packages/icons/load/index";
|
|
7
7
|
import "@das-fed/upf-ui/packages/global/theme"
|
|
8
8
|
import '@das-fed/upf-ui/packages/components/spin/style.css';
|
|
9
9
|
;
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
for (const [
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
},
|
|
16
|
-
function
|
|
17
|
-
return
|
|
18
|
-
|
|
10
|
+
const r = (a, t) => {
|
|
11
|
+
const i = a.__vccOpts || a;
|
|
12
|
+
for (const [e, s] of t)
|
|
13
|
+
i[e] = s;
|
|
14
|
+
return i;
|
|
15
|
+
}, k = {}, N = { class: "das-spin-container das-spin-page" };
|
|
16
|
+
function B(a, t) {
|
|
17
|
+
return n(), d("div", N, [...t[0] || (t[0] = [
|
|
18
|
+
m('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
|
|
19
19
|
])]);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function E(
|
|
23
|
-
return
|
|
24
|
-
|
|
21
|
+
const V = /* @__PURE__ */ r(k, [["render", B], ["__scopeId", "data-v-323f37a9"]]), w = {}, D = { class: "das-spin-container das-spin-component" };
|
|
22
|
+
function E(a, t) {
|
|
23
|
+
return n(), d("div", D, [...t[0] || (t[0] = [
|
|
24
|
+
l(
|
|
25
25
|
"div",
|
|
26
26
|
{ class: "das-spin-dot-spin" },
|
|
27
27
|
[
|
|
28
|
-
|
|
28
|
+
l("i", { class: "das-spin-dot-item" })
|
|
29
29
|
],
|
|
30
30
|
-1
|
|
31
31
|
/* CACHED */
|
|
32
32
|
)
|
|
33
33
|
])]);
|
|
34
34
|
}
|
|
35
|
-
const O = /* @__PURE__ */
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
|
|
35
|
+
const O = /* @__PURE__ */ r(w, [["render", E], ["__scopeId", "data-v-f47a1ae6"]]), P = {}, b = { class: "das-spin-container das-spin-containerload" };
|
|
36
|
+
function A(a, t) {
|
|
37
|
+
return n(), d("div", b, [...t[0] || (t[0] = [
|
|
38
|
+
m('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
|
|
39
39
|
])]);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const M = /* @__PURE__ */ r(P, [["render", A], ["__scopeId", "data-v-f7548f22"]]), R = /* @__PURE__ */ $({
|
|
42
42
|
__name: "index",
|
|
43
43
|
props: {
|
|
44
44
|
type: { default: "page" },
|
|
@@ -47,31 +47,35 @@ const R = /* @__PURE__ */ p(P, [["render", M], ["__scopeId", "data-v-f7548f22"]]
|
|
|
47
47
|
iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
|
|
48
48
|
full: { type: Boolean, default: !0 }
|
|
49
49
|
},
|
|
50
|
-
setup(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return o(L, {
|
|
50
|
+
setup(a) {
|
|
51
|
+
let t = a, i = C("");
|
|
52
|
+
const e = g();
|
|
53
|
+
return f(
|
|
54
|
+
() => t.type,
|
|
55
|
+
(s, c) => {
|
|
56
|
+
s == "page" && (i.value = o(V)), s == "container" && (i.value = o(M)), s == "component" && (i.value = o(O)), s == "load" && (i.value = o(L, {
|
|
58
57
|
iconColor: t.iconColor,
|
|
59
58
|
customSize: t.customSize
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
}));
|
|
60
|
+
},
|
|
61
|
+
{ immediate: !0 }
|
|
62
|
+
), f(
|
|
63
|
+
() => e,
|
|
64
|
+
(s, c) => {
|
|
65
|
+
e.indicator && (i.value = e.indicator);
|
|
66
|
+
},
|
|
67
|
+
{ immediate: !0 }
|
|
68
|
+
), (s, c) => (n(), d(
|
|
63
69
|
"div",
|
|
64
70
|
{
|
|
65
|
-
class:
|
|
71
|
+
class: z({ "das-spin-container": !0, full: a.full })
|
|
66
72
|
},
|
|
67
73
|
[
|
|
68
|
-
|
|
69
|
-
class: `das-slef-spin ${
|
|
70
|
-
},
|
|
71
|
-
indicator: c()
|
|
72
|
-
}), {
|
|
74
|
+
S(p(I), h({
|
|
75
|
+
class: `das-slef-spin ${a.size} ${a.type} `
|
|
76
|
+
}, s.$attrs, { indicator: p(i) }), {
|
|
73
77
|
default: x(() => [
|
|
74
|
-
|
|
78
|
+
y(s.$slots, "default")
|
|
75
79
|
]),
|
|
76
80
|
_: 3
|
|
77
81
|
/* FORWARDED */
|
|
@@ -81,10 +85,10 @@ const R = /* @__PURE__ */ p(P, [["render", M], ["__scopeId", "data-v-f7548f22"]]
|
|
|
81
85
|
/* CLASS */
|
|
82
86
|
));
|
|
83
87
|
}
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
const
|
|
88
|
+
}), j = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
|
|
89
|
+
u(j);
|
|
90
|
+
const T = _(R), U = { name: `Spin ${v("加载中")}` };
|
|
87
91
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
T as DasSpin,
|
|
93
|
+
U as default
|
|
90
94
|
};
|
|
Binary file
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ElTreeV2 as
|
|
1
|
+
import { defineComponent as k, openBlock as d, createElementBlock as f, createElementVNode as v, renderSlot as x, createTextVNode as H, toDisplayString as B, createStaticVNode as A, ref as u, useAttrs as P, watch as h, h as y, normalizeClass as J, createVNode as K, unref as $, mergeProps as L, withCtx as g, createBlock as T, computed as m, onMounted as W, onBeforeUnmount as U, normalizeStyle as j, Fragment as E, createCommentVNode as D, createSlots as q, nextTick as G } from "vue";
|
|
2
|
+
import { withInstall as Q } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { ElTreeV2 as X } from "element-plus";
|
|
4
4
|
import "element-plus/es/components/tree-v2/style/css";
|
|
5
|
-
import { t as
|
|
6
|
-
import { Spin as
|
|
5
|
+
import { t as Y, setI18nRule as Z } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
|
+
import { Spin as ee } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/spin/style/css";
|
|
8
|
-
import { DasIconLoad as
|
|
8
|
+
import { DasIconLoad as te } from "@das-fed/upf-ui/packages/icons/load/index";
|
|
9
9
|
import "@das-fed/upf-ui/packages/components/icon/index";
|
|
10
|
-
import { DasIconCaretRight as
|
|
11
|
-
import { SizeWatcher as
|
|
12
|
-
import { flatTree as
|
|
10
|
+
import { DasIconCaretRight as ae } from "@das-fed/upf-ui/packages/icons/caret-right/index";
|
|
11
|
+
import { SizeWatcher as ne } from "@das-fed/upf-utils/size-watcher";
|
|
12
|
+
import { flatTree as z } from "@das-fed/upf-utils/common-tools"
|
|
13
13
|
import '@das-fed/upf-ui/packages/components/virtual-tree/style.css';
|
|
14
14
|
;
|
|
15
|
-
const
|
|
15
|
+
const se = { class: "tree-empty-block" }, ie = { class: "tree-empty-text" }, oe = /* @__PURE__ */ k({
|
|
16
16
|
__name: "empty",
|
|
17
17
|
props: {
|
|
18
18
|
emptyText: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
return (
|
|
22
|
-
v("div",
|
|
23
|
-
x(
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
setup(t) {
|
|
21
|
+
return (a, s) => (d(), f("div", se, [
|
|
22
|
+
v("div", ie, [
|
|
23
|
+
x(a.$slots, "default", {}, () => [
|
|
24
|
+
H(
|
|
25
|
+
B(t.emptyText),
|
|
26
26
|
1
|
|
27
27
|
/* TEXT */
|
|
28
28
|
)
|
|
@@ -30,20 +30,20 @@ const ie = { class: "tree-empty-block" }, re = { class: "tree-empty-text" }, de
|
|
|
30
30
|
])
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
const
|
|
35
|
-
for (const [
|
|
36
|
-
r
|
|
37
|
-
return
|
|
38
|
-
}, le = /* @__PURE__ */
|
|
39
|
-
function
|
|
40
|
-
return
|
|
41
|
-
|
|
33
|
+
}), _ = (t, a) => {
|
|
34
|
+
const s = t.__vccOpts || t;
|
|
35
|
+
for (const [r, o] of a)
|
|
36
|
+
s[r] = o;
|
|
37
|
+
return s;
|
|
38
|
+
}, le = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-507e2bf9"]]), de = {}, re = { class: "das-spin-container das-spin-page" };
|
|
39
|
+
function ce(t, a) {
|
|
40
|
+
return d(), f("div", re, [...a[0] || (a[0] = [
|
|
41
|
+
A('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
|
|
42
42
|
])]);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
return
|
|
44
|
+
const fe = /* @__PURE__ */ _(de, [["render", ce], ["__scopeId", "data-v-323f37a9"]]), ue = {}, pe = { class: "das-spin-container das-spin-component" };
|
|
45
|
+
function me(t, a) {
|
|
46
|
+
return d(), f("div", pe, [...a[0] || (a[0] = [
|
|
47
47
|
v(
|
|
48
48
|
"div",
|
|
49
49
|
{ class: "das-spin-dot-spin" },
|
|
@@ -55,13 +55,13 @@ function ve(a, t) {
|
|
|
55
55
|
)
|
|
56
56
|
])]);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
return
|
|
61
|
-
|
|
58
|
+
const he = /* @__PURE__ */ _(ue, [["render", me], ["__scopeId", "data-v-f47a1ae6"]]), ve = {}, _e = { class: "das-spin-container das-spin-containerload" };
|
|
59
|
+
function ye(t, a) {
|
|
60
|
+
return d(), f("div", _e, [...a[0] || (a[0] = [
|
|
61
|
+
A('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
|
|
62
62
|
])]);
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22"]]), xe = /* @__PURE__ */ k({
|
|
65
65
|
__name: "index",
|
|
66
66
|
props: {
|
|
67
67
|
type: { default: "page" },
|
|
@@ -70,31 +70,35 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
|
|
|
70
70
|
iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
|
|
71
71
|
full: { type: Boolean, default: !0 }
|
|
72
72
|
},
|
|
73
|
-
setup(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
setup(t) {
|
|
74
|
+
let a = t, s = u("");
|
|
75
|
+
const r = P();
|
|
76
|
+
return h(
|
|
77
|
+
() => a.type,
|
|
78
|
+
(o, e) => {
|
|
79
|
+
o == "page" && (s.value = y(fe)), o == "container" && (s.value = y(ge)), o == "component" && (s.value = y(he)), o == "load" && (s.value = y(te, {
|
|
80
|
+
iconColor: a.iconColor,
|
|
81
|
+
customSize: a.customSize
|
|
82
|
+
}));
|
|
83
|
+
},
|
|
84
|
+
{ immediate: !0 }
|
|
85
|
+
), h(
|
|
86
|
+
() => r,
|
|
87
|
+
(o, e) => {
|
|
88
|
+
r.indicator && (s.value = r.indicator);
|
|
89
|
+
},
|
|
90
|
+
{ immediate: !0 }
|
|
91
|
+
), (o, e) => (d(), f(
|
|
86
92
|
"div",
|
|
87
93
|
{
|
|
88
|
-
class:
|
|
94
|
+
class: J({ "das-spin-container": !0, full: t.full })
|
|
89
95
|
},
|
|
90
96
|
[
|
|
91
|
-
K(
|
|
92
|
-
class: `das-slef-spin ${
|
|
93
|
-
},
|
|
94
|
-
indicator: u()
|
|
95
|
-
}), {
|
|
97
|
+
K($(ee), L({
|
|
98
|
+
class: `das-slef-spin ${t.size} ${t.type} `
|
|
99
|
+
}, o.$attrs, { indicator: $(s) }), {
|
|
96
100
|
default: g(() => [
|
|
97
|
-
x(
|
|
101
|
+
x(o.$slots, "default")
|
|
98
102
|
]),
|
|
99
103
|
_: 3
|
|
100
104
|
/* FORWARDED */
|
|
@@ -104,15 +108,15 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
|
|
|
104
108
|
/* CLASS */
|
|
105
109
|
));
|
|
106
110
|
}
|
|
107
|
-
}),
|
|
111
|
+
}), $e = /* @__PURE__ */ k({
|
|
108
112
|
__name: "expand-icon",
|
|
109
|
-
setup(
|
|
110
|
-
return (
|
|
113
|
+
setup(t) {
|
|
114
|
+
return (a, s) => (d(), T($(ae), {
|
|
111
115
|
class: "das-tree__expand-icon",
|
|
112
116
|
size: "medium"
|
|
113
117
|
}));
|
|
114
118
|
}
|
|
115
|
-
}),
|
|
119
|
+
}), ke = /* @__PURE__ */ _($e, [["__scopeId", "data-v-e225c8a8"]]), Ce = { class: "tree-normal-node" }, Ne = /* @__PURE__ */ k({
|
|
116
120
|
name: "DasVirtualTree",
|
|
117
121
|
inheritAttrs: !1,
|
|
118
122
|
__name: "App",
|
|
@@ -129,90 +133,90 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
|
|
|
129
133
|
emptyText: { default: "" },
|
|
130
134
|
filterMethod: {}
|
|
131
135
|
},
|
|
132
|
-
setup(
|
|
133
|
-
const
|
|
136
|
+
setup(t, { expose: a }) {
|
|
137
|
+
const s = u(), r = u(), o = u(0), e = t, I = m(() => e.emptyText || Y("暂无数据")), c = m(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), O = m(() => e != null && e.height ? e.height + "px" : "100%"), R = m(() => e != null && e.height ? e.height : o.value), V = (n, l) => l[c.value.label].toLowerCase().includes(n.toLowerCase()), M = m(() => (e == null ? void 0 : e.filterMethod) ?? V), S = () => {
|
|
134
138
|
if (e.data && e.data.length) {
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
var
|
|
138
|
-
(
|
|
139
|
+
const l = z(e.data, c.value.children, !1).filter((i) => i[c.value.children] && i[c.value.children].length).map((i) => i[e.nodeKey]);
|
|
140
|
+
G(() => {
|
|
141
|
+
var i;
|
|
142
|
+
(i = r.value) == null || i.setExpandedKeys(l);
|
|
139
143
|
});
|
|
140
144
|
}
|
|
141
145
|
};
|
|
142
|
-
|
|
146
|
+
h(
|
|
143
147
|
() => e.defaultExpandAll,
|
|
144
148
|
(n) => {
|
|
145
149
|
n && S();
|
|
146
150
|
},
|
|
147
151
|
{ immediate: !0 }
|
|
148
|
-
),
|
|
152
|
+
), h(
|
|
149
153
|
() => e.data,
|
|
150
|
-
(n,
|
|
154
|
+
(n, l) => {
|
|
151
155
|
if (!e.defaultExpandAll) return;
|
|
152
|
-
const
|
|
153
|
-
|
|
156
|
+
const i = n && n.length ? n : [], p = l && l.length ? l : [], w = z(i).map((N) => N[e.nodeKey]), F = z(p).map((N) => N[e.nodeKey]);
|
|
157
|
+
p.length && JSON.stringify(w) === JSON.stringify(F) || S();
|
|
154
158
|
}
|
|
155
159
|
);
|
|
156
|
-
const
|
|
157
|
-
|
|
160
|
+
const C = u(!1);
|
|
161
|
+
h(
|
|
158
162
|
() => e.data,
|
|
159
163
|
(n) => {
|
|
160
164
|
if (n && n.length) {
|
|
161
|
-
const
|
|
162
|
-
(
|
|
165
|
+
const l = n.find(
|
|
166
|
+
(i) => i[c.value.children] && i[c.value.children].length
|
|
163
167
|
);
|
|
164
|
-
|
|
168
|
+
C.value = !l;
|
|
165
169
|
} else
|
|
166
|
-
|
|
170
|
+
C.value = !1;
|
|
167
171
|
},
|
|
168
172
|
{ immediate: !0, deep: !0 }
|
|
169
173
|
);
|
|
170
|
-
const b =
|
|
171
|
-
return
|
|
172
|
-
b.value =
|
|
174
|
+
const b = u();
|
|
175
|
+
return W(() => {
|
|
176
|
+
b.value = ne(
|
|
173
177
|
(n) => {
|
|
174
|
-
|
|
178
|
+
o.value = n.height;
|
|
175
179
|
},
|
|
176
|
-
|
|
180
|
+
s.value.parentElement
|
|
177
181
|
);
|
|
178
|
-
}),
|
|
182
|
+
}), U(() => {
|
|
179
183
|
b.value.disconnect();
|
|
180
|
-
}),
|
|
181
|
-
treeRef:
|
|
182
|
-
}), (n,
|
|
184
|
+
}), a({
|
|
185
|
+
treeRef: r
|
|
186
|
+
}), (n, l) => (d(), f(
|
|
183
187
|
"div",
|
|
184
188
|
{
|
|
185
189
|
ref_key: "cotainerRef",
|
|
186
|
-
ref:
|
|
190
|
+
ref: s,
|
|
187
191
|
class: "das-ui-tree das-ui-virtual-tree",
|
|
188
|
-
style:
|
|
192
|
+
style: j({ height: O.value })
|
|
189
193
|
},
|
|
190
194
|
[
|
|
191
|
-
|
|
195
|
+
t.data && t.data.length ? (d(), T($(X), L({
|
|
192
196
|
key: 0,
|
|
193
197
|
ref_key: "treeRef",
|
|
194
|
-
ref:
|
|
195
|
-
data:
|
|
196
|
-
class: { "is-root-all-left":
|
|
197
|
-
icon:
|
|
198
|
-
props:
|
|
198
|
+
ref: r,
|
|
199
|
+
data: t.data,
|
|
200
|
+
class: { "is-root-all-left": C.value },
|
|
201
|
+
icon: ke,
|
|
202
|
+
props: c.value,
|
|
199
203
|
"show-checkbox": !1,
|
|
200
|
-
"expand-on-click-node":
|
|
204
|
+
"expand-on-click-node": t.expandOnClickNode,
|
|
201
205
|
height: R.value,
|
|
202
206
|
"item-size": 32,
|
|
203
207
|
"default-expand-all": "",
|
|
204
|
-
"filter-method":
|
|
205
|
-
"empty-text":
|
|
208
|
+
"filter-method": M.value,
|
|
209
|
+
"empty-text": I.value
|
|
206
210
|
}, n.$attrs), {
|
|
207
|
-
default: g(({ node:
|
|
211
|
+
default: g(({ node: i, data: p }) => [
|
|
208
212
|
x(n.$slots, "default", {
|
|
209
|
-
node:
|
|
210
|
-
data:
|
|
213
|
+
node: i,
|
|
214
|
+
data: p
|
|
211
215
|
}, () => [
|
|
212
216
|
v(
|
|
213
217
|
"div",
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
Ce,
|
|
219
|
+
B(p[c.value.label]),
|
|
216
220
|
1
|
|
217
221
|
/* TEXT */
|
|
218
222
|
)
|
|
@@ -220,21 +224,21 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
|
|
|
220
224
|
]),
|
|
221
225
|
_: 3
|
|
222
226
|
/* FORWARDED */
|
|
223
|
-
}, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (
|
|
224
|
-
|
|
227
|
+
}, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (d(), f(
|
|
228
|
+
E,
|
|
225
229
|
{ key: 1 },
|
|
226
230
|
[
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
231
|
+
D(" 空状态 "),
|
|
232
|
+
t.loading ? (d(), f(
|
|
233
|
+
E,
|
|
230
234
|
{ key: 1 },
|
|
231
235
|
[
|
|
232
|
-
|
|
233
|
-
K(
|
|
236
|
+
D(" 加载状态 "),
|
|
237
|
+
K(xe, {
|
|
234
238
|
size: "small",
|
|
235
|
-
spinning:
|
|
239
|
+
spinning: t.loading
|
|
236
240
|
}, {
|
|
237
|
-
default: g(() => [...
|
|
241
|
+
default: g(() => [...l[0] || (l[0] = [
|
|
238
242
|
v(
|
|
239
243
|
"div",
|
|
240
244
|
{ style: { width: "100%", height: "100%" } },
|
|
@@ -249,10 +253,10 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
|
|
|
249
253
|
],
|
|
250
254
|
2112
|
|
251
255
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
252
|
-
)) : (
|
|
256
|
+
)) : (d(), T(le, {
|
|
253
257
|
key: 0,
|
|
254
|
-
"empty-text":
|
|
255
|
-
},
|
|
258
|
+
"empty-text": I.value
|
|
259
|
+
}, q({
|
|
256
260
|
_: 2
|
|
257
261
|
/* DYNAMIC */
|
|
258
262
|
}, [
|
|
@@ -273,11 +277,11 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
|
|
|
273
277
|
/* STYLE */
|
|
274
278
|
));
|
|
275
279
|
}
|
|
276
|
-
}),
|
|
277
|
-
|
|
278
|
-
const
|
|
280
|
+
}), ze = { 暂无数据: { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } };
|
|
281
|
+
Z(ze);
|
|
282
|
+
const Ve = Q(Ne), Me = () => u(null), we = { title: "virtual-tree 虚拟树" };
|
|
279
283
|
export {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
284
|
+
Ve as DasVirtualTree,
|
|
285
|
+
Me as DasVirtualTreeRef,
|
|
286
|
+
we as default
|
|
283
287
|
};
|
|
Binary file
|