@das-fed/upf-ui 6.4.0-dev.272 → 6.4.0-dev.274
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/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.274",
|
|
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.274",
|
|
59
|
+
"@das-fed/upf-utils": "6.4.0-dev.274",
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { setI18nRule as f, t as l } from "@das-fed/upf-web/packages/i18n/index";
|
|
2
2
|
import { withInstall as m } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
-
import { openBlock as e, createElementBlock as o, createStaticVNode as p, createElementVNode as c, defineComponent as u, useAttrs as _,
|
|
4
|
-
import { Spin as
|
|
3
|
+
import { openBlock as e, createElementBlock as o, createStaticVNode as p, createElementVNode as c, defineComponent as u, useAttrs as _, normalizeClass as v, createVNode as $, unref as g, mergeProps as C, withCtx as y, renderSlot as z, h as i } from "vue";
|
|
4
|
+
import { Spin as S } from "ant-design-vue";
|
|
5
5
|
import "ant-design-vue/es/spin/style/css";
|
|
6
|
-
import { DasIconLoad as
|
|
6
|
+
import { DasIconLoad as x } 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
|
;
|
|
@@ -12,15 +12,15 @@ const r = (s, t) => {
|
|
|
12
12
|
for (const [d, n] of t)
|
|
13
13
|
a[d] = n;
|
|
14
14
|
return a;
|
|
15
|
-
}, I = {},
|
|
16
|
-
function
|
|
17
|
-
return e(), o("div",
|
|
15
|
+
}, I = {}, h = { class: "das-spin-container das-spin-page" };
|
|
16
|
+
function L(s, t) {
|
|
17
|
+
return e(), o("div", h, [...t[0] || (t[0] = [
|
|
18
18
|
p('<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
|
|
23
|
-
return e(), o("div",
|
|
21
|
+
const k = /* @__PURE__ */ r(I, [["render", L], ["__scopeId", "data-v-323f37a9"]]), N = {}, w = { class: "das-spin-container das-spin-component" };
|
|
22
|
+
function B(s, t) {
|
|
23
|
+
return e(), o("div", w, [...t[0] || (t[0] = [
|
|
24
24
|
c(
|
|
25
25
|
"div",
|
|
26
26
|
{ class: "das-spin-dot-spin" },
|
|
@@ -32,13 +32,13 @@ function V(s, t) {
|
|
|
32
32
|
)
|
|
33
33
|
])]);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
return e(), o("div",
|
|
35
|
+
const V = /* @__PURE__ */ r(N, [["render", B], ["__scopeId", "data-v-f47a1ae6"]]), D = {}, E = { class: "das-spin-container das-spin-containerload" };
|
|
36
|
+
function O(s, t) {
|
|
37
|
+
return e(), o("div", E, [...t[0] || (t[0] = [
|
|
38
38
|
p('<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 P = /* @__PURE__ */ r(D, [["render", O], ["__scopeId", "data-v-f7548f22"]]), b = /* @__PURE__ */ u({
|
|
42
42
|
__name: "index",
|
|
43
43
|
props: {
|
|
44
44
|
type: { default: "page" },
|
|
@@ -48,28 +48,30 @@ const b = /* @__PURE__ */ r(E, [["render", P], ["__scopeId", "data-v-f7548f22"]]
|
|
|
48
48
|
full: { type: Boolean, default: !0 }
|
|
49
49
|
},
|
|
50
50
|
setup(s) {
|
|
51
|
-
const t = s, a = _(), d =
|
|
51
|
+
const t = s, a = _(), d = () => {
|
|
52
52
|
if (a.indicator) return a.indicator;
|
|
53
|
-
if (t.type == "page") return i(
|
|
54
|
-
if (t.type == "container") return i(
|
|
55
|
-
if (t.type == "component") return i(
|
|
53
|
+
if (t.type == "page") return i(k);
|
|
54
|
+
if (t.type == "container") return i(P);
|
|
55
|
+
if (t.type == "component") return i(V);
|
|
56
56
|
if (t.type == "load")
|
|
57
|
-
return i(
|
|
57
|
+
return i(x, {
|
|
58
58
|
iconColor: t.iconColor,
|
|
59
59
|
customSize: t.customSize
|
|
60
60
|
});
|
|
61
|
-
}
|
|
62
|
-
return (n,
|
|
61
|
+
};
|
|
62
|
+
return (n, M) => (e(), o(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
class:
|
|
65
|
+
class: v({ "das-spin-container": !0, full: s.full })
|
|
66
66
|
},
|
|
67
67
|
[
|
|
68
|
-
|
|
68
|
+
$(g(S), C({
|
|
69
69
|
class: `das-slef-spin ${s.size} ${s.type} `
|
|
70
|
-
}, n.$attrs, {
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}, n.$attrs, {
|
|
71
|
+
indicator: d()
|
|
72
|
+
}), {
|
|
73
|
+
default: y(() => [
|
|
74
|
+
z(n.$slots, "default")
|
|
73
75
|
]),
|
|
74
76
|
_: 3
|
|
75
77
|
/* FORWARDED */
|
|
@@ -79,10 +81,10 @@ const b = /* @__PURE__ */ r(E, [["render", P], ["__scopeId", "data-v-f7548f22"]]
|
|
|
79
81
|
/* CLASS */
|
|
80
82
|
));
|
|
81
83
|
}
|
|
82
|
-
}),
|
|
83
|
-
f(
|
|
84
|
-
const
|
|
84
|
+
}), A = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
|
|
85
|
+
f(A);
|
|
86
|
+
const K = m(b), Q = { name: `Spin ${l("加载中")}` };
|
|
85
87
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
K as DasSpin,
|
|
89
|
+
Q as default
|
|
88
90
|
};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as i, createElementBlock as l, createElementVNode as h, renderSlot as g, createTextVNode as H, toDisplayString as B, createStaticVNode as A, useAttrs as P,
|
|
1
|
+
import { defineComponent as x, openBlock as i, createElementBlock as l, createElementVNode as h, renderSlot as g, createTextVNode as H, toDisplayString as B, createStaticVNode as A, useAttrs as P, normalizeClass as J, createVNode as w, unref as I, mergeProps as K, withCtx as _, h as y, createBlock as z, ref as u, computed as m, watch as C, onMounted as W, onBeforeUnmount as U, normalizeStyle as j, Fragment as E, createCommentVNode as D, createSlots as q, nextTick as G } from "vue";
|
|
2
2
|
import { withInstall as Q } from "@das-fed/upf-utils/with-install/index";
|
|
3
3
|
import { ElTreeV2 as X } from "element-plus";
|
|
4
4
|
import "element-plus/es/components/tree-v2/style/css";
|
|
@@ -71,7 +71,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
71
71
|
full: { type: Boolean, default: !0 }
|
|
72
72
|
},
|
|
73
73
|
setup(a) {
|
|
74
|
-
const t = a, d = P(), c =
|
|
74
|
+
const t = a, d = P(), c = () => {
|
|
75
75
|
if (d.indicator) return d.indicator;
|
|
76
76
|
if (t.type == "page") return y(fe);
|
|
77
77
|
if (t.type == "container") return y(ge);
|
|
@@ -81,16 +81,18 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
81
81
|
iconColor: t.iconColor,
|
|
82
82
|
customSize: t.customSize
|
|
83
83
|
});
|
|
84
|
-
}
|
|
84
|
+
};
|
|
85
85
|
return (f, e) => (i(), l(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
class: J({ "das-spin-container": !0, full: a.full })
|
|
89
89
|
},
|
|
90
90
|
[
|
|
91
|
-
w(
|
|
91
|
+
w(I(ee), K({
|
|
92
92
|
class: `das-slef-spin ${a.size} ${a.type} `
|
|
93
|
-
}, f.$attrs, {
|
|
93
|
+
}, f.$attrs, {
|
|
94
|
+
indicator: c()
|
|
95
|
+
}), {
|
|
94
96
|
default: _(() => [
|
|
95
97
|
g(f.$slots, "default")
|
|
96
98
|
]),
|
|
@@ -105,7 +107,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
105
107
|
}), $e = /* @__PURE__ */ x({
|
|
106
108
|
__name: "expand-icon",
|
|
107
109
|
setup(a) {
|
|
108
|
-
return (t, d) => (i(), z(
|
|
110
|
+
return (t, d) => (i(), z(I(ae), {
|
|
109
111
|
class: "das-tree__expand-icon",
|
|
110
112
|
size: "medium"
|
|
111
113
|
}));
|
|
@@ -128,7 +130,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
128
130
|
filterMethod: {}
|
|
129
131
|
},
|
|
130
132
|
setup(a, { expose: t }) {
|
|
131
|
-
const d =
|
|
133
|
+
const d = u(), c = u(), f = u(0), e = a, T = m(() => e.emptyText || Y("暂无数据")), r = m(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), L = m(() => e != null && e.height ? e.height + "px" : "100%"), O = m(() => e != null && e.height ? e.height : f.value), R = (n, o) => o[r.value.label].toLowerCase().includes(n.toLowerCase()), V = m(() => (e == null ? void 0 : e.filterMethod) ?? R), S = () => {
|
|
132
134
|
if (e.data && e.data.length) {
|
|
133
135
|
const o = N(e.data, r.value.children, !1).filter((s) => s[r.value.children] && s[r.value.children].length).map((s) => s[e.nodeKey]);
|
|
134
136
|
G(() => {
|
|
@@ -147,11 +149,11 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
147
149
|
() => e.data,
|
|
148
150
|
(n, o) => {
|
|
149
151
|
if (!e.defaultExpandAll) return;
|
|
150
|
-
const s = n && n.length ? n : [],
|
|
151
|
-
|
|
152
|
+
const s = n && n.length ? n : [], p = o && o.length ? o : [], M = N(s).map((k) => k[e.nodeKey]), F = N(p).map((k) => k[e.nodeKey]);
|
|
153
|
+
p.length && JSON.stringify(M) === JSON.stringify(F) || S();
|
|
152
154
|
}
|
|
153
155
|
);
|
|
154
|
-
const $ =
|
|
156
|
+
const $ = u(!1);
|
|
155
157
|
C(
|
|
156
158
|
() => e.data,
|
|
157
159
|
(n) => {
|
|
@@ -165,7 +167,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
165
167
|
},
|
|
166
168
|
{ immediate: !0, deep: !0 }
|
|
167
169
|
);
|
|
168
|
-
const b =
|
|
170
|
+
const b = u();
|
|
169
171
|
return W(() => {
|
|
170
172
|
b.value = ne(
|
|
171
173
|
(n) => {
|
|
@@ -186,7 +188,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
186
188
|
style: j({ height: L.value })
|
|
187
189
|
},
|
|
188
190
|
[
|
|
189
|
-
a.data && a.data.length ? (i(), z(
|
|
191
|
+
a.data && a.data.length ? (i(), z(I(X), K({
|
|
190
192
|
key: 0,
|
|
191
193
|
ref_key: "treeRef",
|
|
192
194
|
ref: c,
|
|
@@ -200,17 +202,17 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
200
202
|
"item-size": 32,
|
|
201
203
|
"default-expand-all": "",
|
|
202
204
|
"filter-method": V.value,
|
|
203
|
-
"empty-text":
|
|
205
|
+
"empty-text": T.value
|
|
204
206
|
}, n.$attrs), {
|
|
205
|
-
default: _(({ node: s, data:
|
|
207
|
+
default: _(({ node: s, data: p }) => [
|
|
206
208
|
g(n.$slots, "default", {
|
|
207
209
|
node: s,
|
|
208
|
-
data:
|
|
210
|
+
data: p
|
|
209
211
|
}, () => [
|
|
210
212
|
h(
|
|
211
213
|
"div",
|
|
212
214
|
Ce,
|
|
213
|
-
B(
|
|
215
|
+
B(p[r.value.label]),
|
|
214
216
|
1
|
|
215
217
|
/* TEXT */
|
|
216
218
|
)
|
|
@@ -249,7 +251,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
249
251
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
250
252
|
)) : (i(), z(de, {
|
|
251
253
|
key: 0,
|
|
252
|
-
"empty-text":
|
|
254
|
+
"empty-text": T.value
|
|
253
255
|
}, q({
|
|
254
256
|
_: 2
|
|
255
257
|
/* DYNAMIC */
|
|
@@ -273,7 +275,7 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
273
275
|
}
|
|
274
276
|
}), ze = { 暂无数据: { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } };
|
|
275
277
|
Z(ze);
|
|
276
|
-
const Re = Q(Ne), Ve = () =>
|
|
278
|
+
const Re = Q(Ne), Ve = () => u(null), Me = { title: "virtual-tree 虚拟树" };
|
|
277
279
|
export {
|
|
278
280
|
Re as DasVirtualTree,
|
|
279
281
|
Ve as DasVirtualTreeRef,
|
|
Binary file
|