@das-fed/upf-ui 6.4.0-dev.280 → 6.4.0-dev.281
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 +3 -3
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +3 -3
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +3 -3
- package/package.json +3 -3
- package/packages/components/search-form/index.js +124 -124
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/hooks/searchFormItem.d.ts +1 -1
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/spin/index.js +44 -42
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +101 -99
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -12,14 +12,14 @@ interface SelctProps {
|
|
|
12
12
|
showFilterPanel?: boolean;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import("vue").DefineComponent<SelctProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
-
"update:modelValue": (value:
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
16
|
"update:optionValue": (value: string | number) => any;
|
|
17
17
|
selectChange: (value: string | number) => any;
|
|
18
18
|
dateRangeChange: (value: any) => any;
|
|
19
19
|
openDialogHandle: () => any;
|
|
20
20
|
openDialogChange: (value: any) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<SelctProps> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((value:
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
23
|
"onUpdate:optionValue"?: ((value: string | number) => any) | undefined;
|
|
24
24
|
onSelectChange?: ((value: string | number) => any) | undefined;
|
|
25
25
|
onDateRangeChange?: ((value: any) => any) | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Props } from './hooks/searchFormItem';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
-
"update:modelValue": (value:
|
|
3
|
+
"update:modelValue": (value: string) => any;
|
|
4
4
|
"update:optionValue": (value: string | number) => any;
|
|
5
5
|
selectChange: (value: string | number) => any;
|
|
6
6
|
dateRangeChange: (value: any) => any;
|
|
7
7
|
openDialogHandle: () => any;
|
|
8
8
|
openDialogChange: (value: any) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value:
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
11
|
"onUpdate:optionValue"?: ((value: string | number) => any) | undefined;
|
|
12
12
|
onSelectChange?: ((value: string | number) => any) | undefined;
|
|
13
13
|
onDateRangeChange?: ((value: any) => any) | undefined;
|
|
@@ -57,7 +57,7 @@ export interface Props {
|
|
|
57
57
|
}
|
|
58
58
|
export interface Emits {
|
|
59
59
|
/** modelValue 更新 */
|
|
60
|
-
(e: 'update:modelValue', value:
|
|
60
|
+
(e: 'update:modelValue', value: string): void;
|
|
61
61
|
/** selectDateRange日期范围更新事件 */
|
|
62
62
|
(e: 'dateRangeChange', value: any): void;
|
|
63
63
|
/** options 更新 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-input-select-search-container[data-v-46325d2a]{display:flex;align-items:center}.das-input-select-search-container .label[data-v-46325d2a]{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666));margin-right:8px;font-size:var(--das-ui-font-size-sm);text-align:right;max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-input-select-search-container-en .label[data-v-46325d2a]{max-width:170px!important;width:170px!important}[data-v-cfef233e] .das-ui-date-range-picker{margin-left:16px}[data-v-cfef233e] .das-ui-date-range-picker .ant-picker{height:24px}[data-v-cfef233e] .das-ui-select .ant-select-selection-item{text-align:right}.das-select-date-select-container{width:120px}.optional-select-item{margin-right:8px}.optional-select-item .ant-select-selection-item{text-align:left!important}.das-select-date-range{display:flex;align-items:center}.das-select-date-range .label{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666));margin-right:8px;font-size:var(--das-ui-font-size-sm);max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-select-date-range .das-ui-date-range-picker{margin-left:0!important}.das-select-date-range .das-ui-select{margin-right:12px}.das-select-date-range-en-filter .label{max-width:170px!important;width:170px!important}.das-select-date-range-en-nonefilter .label{max-width:90px!important;width:90px!important}.das-ui-search-form[data-v-
|
|
1
|
+
.das-input-select-search-container[data-v-46325d2a]{display:flex;align-items:center}.das-input-select-search-container .label[data-v-46325d2a]{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666));margin-right:8px;font-size:var(--das-ui-font-size-sm);text-align:right;max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-input-select-search-container-en .label[data-v-46325d2a]{max-width:170px!important;width:170px!important}[data-v-cfef233e] .das-ui-date-range-picker{margin-left:16px}[data-v-cfef233e] .das-ui-date-range-picker .ant-picker{height:24px}[data-v-cfef233e] .das-ui-select .ant-select-selection-item{text-align:right}.das-select-date-select-container{width:120px}.optional-select-item{margin-right:8px}.optional-select-item .ant-select-selection-item{text-align:left!important}.das-select-date-range{display:flex;align-items:center}.das-select-date-range .label{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666));margin-right:8px;font-size:var(--das-ui-font-size-sm);max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-select-date-range .das-ui-date-range-picker{margin-left:0!important}.das-select-date-range .das-ui-select{margin-right:12px}.das-select-date-range-en-filter .label{max-width:170px!important;width:170px!important}.das-select-date-range-en-nonefilter .label{max-width:90px!important;width:90px!important}.das-ui-search-form[data-v-2734ead6]{width:100%;box-sizing:border-box}.das-ui-search-form.expand-hasbtn-padding[data-v-2734ead6]{padding-bottom:10px}.das-ui-search-form.packup-hasbtn-padding[data-v-2734ead6]{padding-bottom:14px}.das-ui-search-form.packup-nobtn-padding[data-v-2734ead6]{padding-bottom:2px}.das-ui-search-form.nofilter-hasbtn-padding[data-v-2734ead6]{padding-bottom:14px}.das-ui-search-form.expand-nobtn-padding[data-v-2734ead6]{padding-bottom:0}.das-ui-search-form .search-content[data-v-2734ead6]{width:100%;display:flex;justify-content:space-between;padding-top:8px;box-sizing:border-box;align-items:flex-end}.das-ui-search-form .search-form-left[data-v-2734ead6]{display:flex;flex:1;align-items:flex-end!important}.das-ui-search-form .search-form-left.align-center[data-v-2734ead6]{align-items:center}.das-ui-search-form .search-form-left .search-title[data-v-2734ead6]{font-size:var(--das-ui-font-size-lg, 16px);color:var(--upf-text-primary, var(--das-ui-search-form-font-color, #212121));line-height:26px;font-weight:600;margin-right:16px}.das-ui-search-form .search-form-left .search-selected-content[data-v-2734ead6]{display:flex;flex:1;align-items:flex-end}.das-ui-search-form .search-form-left .search-selected-content .label[data-v-2734ead6]{min-width:60px;font-size:var(--das-ui-font-size-sm);color:var(--upf-text-secondary, var(--das-ui-search-form-tip-color, #999999));line-height:24px}.das-ui-search-form .search-form-right[data-v-2734ead6]{display:flex}.das-ui-search-form .search-form-right.filter-panel-left[data-v-2734ead6]{margin-left:80px}.das-ui-search-form .search-form-right .margin-filter[data-v-2734ead6]{margin-right:132px}.das-ui-search-form .search-form-right .filter-handle-status[data-v-2734ead6]{display:flex;align-items:center;color:var(--upf-color-primary, var(--das-ui-search-form-primary-color, #5582F3));cursor:pointer}.das-ui-search-form .search-form-right .filter-handle-status .status[data-v-2734ead6]{margin-right:5px;font-size:var(--das-ui-font-size-sm)}.das-ui-search-form .search-form-right .filter-handle-status .arrowTransform[data-v-2734ead6]{transition:.2s;transform-origin:center;transform:rotate(180deg)}.das-ui-search-form .search-form-right .filter-handle-status .arrowTransformReturn[data-v-2734ead6]{transition:.2s;transform-origin:center;transform:rotate(0)}.das-ui-search-form .filter-content[data-v-2734ead6]{width:100%;height:auto;background-color:var(--upf-bg-secondary, var(--das-ui-search-form-filter-bgcolor, #fafafa));padding:0 12px;box-sizing:border-box;border:1px solid var(--upf-border-color, var(--das-ui-search-form-filter-border-color, #d9d9d9));border-radius:2px;margin-top:12px}.das-ui-search-form .filter-content.horizontal-filter-content[data-v-2734ead6]{max-height:200px;padding:0 40px!important}.das-ui-search-form .filter-content.horizontal-filter-content .filter-scroll-content[data-v-2734ead6]{width:100%;height:100%}.das-ui-search-form .filter-content.horizontal-filter-content[data-v-2734ead6] .das-ui-form-item-label{max-width:84px}.das-ui-search-form .filter-content.horizontal-filter-content[data-v-2734ead6] .das-ui-form-item-label .label{max-width:84px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.das-ui-search-form .filter-content .filter-item[data-v-2734ead6]{flex:0 0 calc(var(--v7ad0182e) - 30px)!important}.das-ui-search-form .filter-content .filter-item.das-select-date-range[data-v-2734ead6]{margin-right:var(--v35f96982)}.filter-line[data-v-2734ead6]{width:100%;height:16px;background-color:transparent}.das-ui-search-form .treeSelect-item{align-items:flex-start!important}.das-ui-search-form .treeSelect-item .das-ui-form-item-label{margin-top:2px}.das-ui-search-form .align-left-filter-content .das-ui-form{flex-direction:row!important;min-height:32px;align-items:flex-end!important;align-content:flex-end!important}.das-ui-search-form .align-left-filter-content .das-ui-form .das-ui-form-item{margin-bottom:0!important;margin-right:20px!important}.das-ui-search-form .align-left-filter-content .das-ui-form .das-ui-form-item .das-ui-form-item-label{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666))}.das-ui-search-form .search-selected-content .tag-content .el-tag__content{display:flex!important}.das-ui-search-form .search-selected-content .tag-content .das-ui-tag{margin-left:5px;background-color:#fff}.das-ui-search-form .search-selected-content .tag-content .das-ui-tag .el-tag{height:24px!important}.das-ui-search-form .search-selected-content .tag-content .das-ui-tag .el-tag .el-tag__close{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666))}.das-ui-search-form .out-filter-content{margin-right:58px}.das-ui-search-form .out-filter-content.no-fileter-panel{margin-right:0}.das-ui-search-form .out-filter-content .das-ui-form{flex-direction:row!important}.das-ui-search-form .out-filter-content .das-ui-form .das-ui-form-item{margin-bottom:0!important;margin-right:10px!important}.das-ui-search-form .out-filter-content .das-ui-form .das-ui-form-item .das-ui-form-item-label{margin-right:10px!important}.das-ui-search-form .filter-content .das-ui-form-item{height:40px;margin-bottom:0!important;border-bottom:1px solid var(--upf-border-color, var(--das-ui-search-form-filter-border-color, #d9d9d9))}.das-ui-search-form .filter-content .das-ui-form-item:last-of-type{border-bottom:0}.das-ui-search-form .filter-content .das-ui-form-item .das-ui-form-item-label{margin-right:24px!important}.das-ui-search-form .filter-content .das-ui-form-item .das-ui-form-item-label .label{color:var(--upf-text-secondary, var(--das-ui-search-form-filter-font-color, #666666))}.das-ui-search-form .filter-content .das-ui-form-item.child-form-item{width:auto!important}.das-ui-search-form .filter-content .das-ui-form-item.child-form-item .das-ui-form-item-label{display:none}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-select-date-range.filter-item,.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-input-select-search-container.filter-input-select-item{margin-top:16px!important}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-input-select-search-container.filter-input-select-item{margin-right:var(--v35f96982)}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-input-select-search-container.filter-input-select-item .filter-input-select-item{margin-right:0!important}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-ui-form-item{height:auto;border:none;margin-right:var(--v35f96982);margin-top:16px!important}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-ui-form-item .das-ui-form-item-label{margin-right:8px!important}.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label,.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label .label{max-width:170px!important;width:170px!important}.das-ui-search-form.das-ui-search-form-en-filter .align-left-filter-content .das-ui-form-item-label{width:auto!important}.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label{max-width:170px!important;width:170px!important}.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label .label{max-width:170px!important}.das-ui-search-form.das-ui-search-form-en-nonefilter .align-left-filter-content .das-ui-form-item-label{width:auto!important}.das-ui-search-form.das-ui-search-form-en-nonefilter .das-ui-form-item-label{max-width:120px!important;width:120px!important}.das-ui-search-form.das-ui-search-form-en-nonefilter .das-ui-form-item-label .label{max-width:120px!important}
|
|
Binary file
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { openBlock as
|
|
4
|
-
import { Spin as
|
|
1
|
+
import { setI18nRule as _, 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 i, createElementBlock as d, createStaticVNode as u, createElementVNode as f, defineComponent as y, useAttrs as C, normalizeClass as g, createVNode as z, unref as I, mergeProps as S, withCtx as x, renderSlot as N, h as o, isVNode as l, cloneVNode as m } from "vue";
|
|
4
|
+
import { Spin as h } from "ant-design-vue";
|
|
5
5
|
import "ant-design-vue/es/spin/style/css";
|
|
6
|
-
import { DasIconLoad as
|
|
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 p = (s, t) => {
|
|
11
|
+
const n = s.__vccOpts || s;
|
|
12
|
+
for (const [r, c] of t)
|
|
13
|
+
n[r] = c;
|
|
14
|
+
return n;
|
|
15
|
+
}, V = {}, k = { class: "das-spin-container das-spin-page" };
|
|
16
|
+
function w(s, t) {
|
|
17
|
+
return i(), d("div", k, [...t[0] || (t[0] = [
|
|
18
|
+
u('<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
|
|
24
|
-
|
|
21
|
+
const A = /* @__PURE__ */ p(V, [["render", w], ["__scopeId", "data-v-323f37a9"]]), B = {}, D = { class: "das-spin-container das-spin-component" };
|
|
22
|
+
function E(s, t) {
|
|
23
|
+
return i(), d("div", D, [...t[0] || (t[0] = [
|
|
24
|
+
f(
|
|
25
25
|
"div",
|
|
26
26
|
{ class: "das-spin-dot-spin" },
|
|
27
27
|
[
|
|
28
|
-
|
|
28
|
+
f("i", { class: "das-spin-dot-item" })
|
|
29
29
|
],
|
|
30
30
|
-1
|
|
31
31
|
/* CACHED */
|
|
32
32
|
)
|
|
33
33
|
])]);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
|
|
35
|
+
const O = /* @__PURE__ */ p(B, [["render", E], ["__scopeId", "data-v-f47a1ae6"]]), P = {}, b = { class: "das-spin-container das-spin-containerload" };
|
|
36
|
+
function M(s, t) {
|
|
37
|
+
return i(), d("div", b, [...t[0] || (t[0] = [
|
|
38
|
+
u('<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 R = /* @__PURE__ */ p(P, [["render", M], ["__scopeId", "data-v-f7548f22"]]), j = /* @__PURE__ */ y({
|
|
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,
|
|
52
|
-
if (
|
|
53
|
-
if (t.type == "page") return
|
|
54
|
-
if (t.type == "container") return
|
|
55
|
-
if (t.type == "component") return
|
|
51
|
+
const t = s, n = C(), r = (a) => Array.isArray(a) ? a.map((e) => l(e) ? m(e) : e) : l(a) ? m(a) : a, c = () => {
|
|
52
|
+
if (n.indicator) return r(n.indicator);
|
|
53
|
+
if (t.type == "page") return o(A);
|
|
54
|
+
if (t.type == "container") return o(R);
|
|
55
|
+
if (t.type == "component") return o(O);
|
|
56
56
|
if (t.type == "load")
|
|
57
|
-
return
|
|
57
|
+
return o(L, {
|
|
58
58
|
iconColor: t.iconColor,
|
|
59
59
|
customSize: t.customSize
|
|
60
60
|
});
|
|
61
|
-
}
|
|
62
|
-
return (
|
|
61
|
+
};
|
|
62
|
+
return (a, e) => (i(), d(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
class:
|
|
65
|
+
class: g({ "das-spin-container": !0, full: s.full })
|
|
66
66
|
},
|
|
67
67
|
[
|
|
68
|
-
|
|
68
|
+
z(I(h), S({
|
|
69
69
|
class: `das-slef-spin ${s.size} ${s.type} `
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}, a.$attrs, {
|
|
71
|
+
indicator: c()
|
|
72
|
+
}), {
|
|
73
|
+
default: x(() => [
|
|
74
|
+
N(a.$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
|
-
|
|
84
|
-
const
|
|
84
|
+
}), q = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
|
|
85
|
+
_(q);
|
|
86
|
+
const U = $(j), W = { name: `Spin ${v("加载中")}` };
|
|
85
87
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
U as DasSpin,
|
|
89
|
+
W as default
|
|
88
90
|
};
|
|
Binary file
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ElTreeV2 as
|
|
1
|
+
import { defineComponent as $, openBlock as i, createElementBlock as l, createElementVNode as v, renderSlot as x, createTextVNode as J, toDisplayString as V, createStaticVNode as w, useAttrs as W, normalizeClass as U, createVNode as K, unref as T, mergeProps as L, withCtx as g, h as _, isVNode as E, cloneVNode as A, createBlock as z, ref as p, computed as h, watch as N, onMounted as j, onBeforeUnmount as q, normalizeStyle as G, Fragment as D, createCommentVNode as B, createSlots as Q, nextTick as X } from "vue";
|
|
2
|
+
import { withInstall as Y } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { ElTreeV2 as Z } 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 ee, setI18nRule as te } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
|
+
import { Spin as ae } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/spin/style/css";
|
|
8
|
-
import { DasIconLoad as
|
|
8
|
+
import { DasIconLoad as ne } 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 se } from "@das-fed/upf-ui/packages/icons/caret-right/index";
|
|
11
|
+
import { SizeWatcher as oe } from "@das-fed/upf-utils/size-watcher";
|
|
12
|
+
import { flatTree as I } 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 ie = { class: "tree-empty-block" }, re = { class: "tree-empty-text" }, de = /* @__PURE__ */ $({
|
|
16
16
|
__name: "empty",
|
|
17
17
|
props: {
|
|
18
18
|
emptyText: {}
|
|
19
19
|
},
|
|
20
20
|
setup(a) {
|
|
21
|
-
return (t,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return (t, r) => (i(), l("div", ie, [
|
|
22
|
+
v("div", re, [
|
|
23
|
+
x(t.$slots, "default", {}, () => [
|
|
24
|
+
J(
|
|
25
|
+
V(a.emptyText),
|
|
26
26
|
1
|
|
27
27
|
/* TEXT */
|
|
28
28
|
)
|
|
@@ -30,38 +30,38 @@ const se = { class: "tree-empty-block" }, oe = { class: "tree-empty-text" }, ie
|
|
|
30
30
|
])
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
const
|
|
35
|
-
for (const [c,
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
function
|
|
40
|
-
return i(), l("div",
|
|
41
|
-
|
|
33
|
+
}), y = (a, t) => {
|
|
34
|
+
const r = a.__vccOpts || a;
|
|
35
|
+
for (const [c, u] of t)
|
|
36
|
+
r[c] = u;
|
|
37
|
+
return r;
|
|
38
|
+
}, le = /* @__PURE__ */ y(de, [["__scopeId", "data-v-507e2bf9"]]), ce = {}, fe = { class: "das-spin-container das-spin-page" };
|
|
39
|
+
function ue(a, t) {
|
|
40
|
+
return i(), l("div", fe, [...t[0] || (t[0] = [
|
|
41
|
+
w('<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 i(), l("div",
|
|
47
|
-
|
|
44
|
+
const pe = /* @__PURE__ */ y(ce, [["render", ue], ["__scopeId", "data-v-323f37a9"]]), me = {}, he = { class: "das-spin-container das-spin-component" };
|
|
45
|
+
function ve(a, t) {
|
|
46
|
+
return i(), l("div", he, [...t[0] || (t[0] = [
|
|
47
|
+
v(
|
|
48
48
|
"div",
|
|
49
49
|
{ class: "das-spin-dot-spin" },
|
|
50
50
|
[
|
|
51
|
-
|
|
51
|
+
v("i", { class: "das-spin-dot-item" })
|
|
52
52
|
],
|
|
53
53
|
-1
|
|
54
54
|
/* CACHED */
|
|
55
55
|
)
|
|
56
56
|
])]);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
return i(), l("div",
|
|
61
|
-
|
|
58
|
+
const ye = /* @__PURE__ */ y(me, [["render", ve], ["__scopeId", "data-v-f47a1ae6"]]), _e = {}, ge = { class: "das-spin-container das-spin-containerload" };
|
|
59
|
+
function xe(a, t) {
|
|
60
|
+
return i(), l("div", ge, [...t[0] || (t[0] = [
|
|
61
|
+
w('<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 $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22"]]), ke = /* @__PURE__ */ $({
|
|
65
65
|
__name: "index",
|
|
66
66
|
props: {
|
|
67
67
|
type: { default: "page" },
|
|
@@ -71,28 +71,30 @@ 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,
|
|
75
|
-
if (
|
|
76
|
-
if (t.type == "page") return
|
|
77
|
-
if (t.type == "container") return
|
|
78
|
-
if (t.type == "component") return
|
|
74
|
+
const t = a, r = W(), c = (e) => Array.isArray(e) ? e.map((f) => E(f) ? A(f) : f) : E(e) ? A(e) : e, u = () => {
|
|
75
|
+
if (r.indicator) return c(r.indicator);
|
|
76
|
+
if (t.type == "page") return _(pe);
|
|
77
|
+
if (t.type == "container") return _($e);
|
|
78
|
+
if (t.type == "component") return _(ye);
|
|
79
79
|
if (t.type == "load")
|
|
80
|
-
return
|
|
80
|
+
return _(ne, {
|
|
81
81
|
iconColor: t.iconColor,
|
|
82
82
|
customSize: t.customSize
|
|
83
83
|
});
|
|
84
|
-
}
|
|
85
|
-
return (
|
|
84
|
+
};
|
|
85
|
+
return (e, f) => (i(), l(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
|
-
class:
|
|
88
|
+
class: U({ "das-spin-container": !0, full: a.full })
|
|
89
89
|
},
|
|
90
90
|
[
|
|
91
|
-
|
|
91
|
+
K(T(ae), L({
|
|
92
92
|
class: `das-slef-spin ${a.size} ${a.type} `
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
}, e.$attrs, {
|
|
94
|
+
indicator: u()
|
|
95
|
+
}), {
|
|
96
|
+
default: g(() => [
|
|
97
|
+
x(e.$slots, "default")
|
|
96
98
|
]),
|
|
97
99
|
_: 3
|
|
98
100
|
/* FORWARDED */
|
|
@@ -102,15 +104,15 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
102
104
|
/* CLASS */
|
|
103
105
|
));
|
|
104
106
|
}
|
|
105
|
-
}),
|
|
107
|
+
}), Ce = /* @__PURE__ */ $({
|
|
106
108
|
__name: "expand-icon",
|
|
107
109
|
setup(a) {
|
|
108
|
-
return (t,
|
|
110
|
+
return (t, r) => (i(), z(T(se), {
|
|
109
111
|
class: "das-tree__expand-icon",
|
|
110
112
|
size: "medium"
|
|
111
113
|
}));
|
|
112
114
|
}
|
|
113
|
-
}),
|
|
115
|
+
}), Ne = /* @__PURE__ */ y(Ce, [["__scopeId", "data-v-e225c8a8"]]), Ie = { class: "tree-normal-node" }, ze = /* @__PURE__ */ $({
|
|
114
116
|
name: "DasVirtualTree",
|
|
115
117
|
inheritAttrs: !1,
|
|
116
118
|
__name: "App",
|
|
@@ -128,52 +130,52 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
128
130
|
filterMethod: {}
|
|
129
131
|
},
|
|
130
132
|
setup(a, { expose: t }) {
|
|
131
|
-
const
|
|
133
|
+
const r = p(), c = p(), u = p(0), e = a, f = h(() => e.emptyText || ee("暂无数据")), d = h(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), O = h(() => e != null && e.height ? e.height + "px" : "100%"), R = h(() => e != null && e.height ? e.height : u.value), M = (n, o) => o[d.value.label].toLowerCase().includes(n.toLowerCase()), F = h(() => (e == null ? void 0 : e.filterMethod) ?? M), S = () => {
|
|
132
134
|
if (e.data && e.data.length) {
|
|
133
|
-
const o =
|
|
134
|
-
|
|
135
|
+
const o = I(e.data, d.value.children, !1).filter((s) => s[d.value.children] && s[d.value.children].length).map((s) => s[e.nodeKey]);
|
|
136
|
+
X(() => {
|
|
135
137
|
var s;
|
|
136
138
|
(s = c.value) == null || s.setExpandedKeys(o);
|
|
137
139
|
});
|
|
138
140
|
}
|
|
139
141
|
};
|
|
140
|
-
|
|
142
|
+
N(
|
|
141
143
|
() => e.defaultExpandAll,
|
|
142
144
|
(n) => {
|
|
143
145
|
n && S();
|
|
144
146
|
},
|
|
145
147
|
{ immediate: !0 }
|
|
146
|
-
),
|
|
148
|
+
), N(
|
|
147
149
|
() => e.data,
|
|
148
150
|
(n, o) => {
|
|
149
151
|
if (!e.defaultExpandAll) return;
|
|
150
|
-
const s = n && n.length ? n : [], m = o && o.length ? o : [],
|
|
151
|
-
m.length && JSON.stringify(
|
|
152
|
+
const s = n && n.length ? n : [], m = o && o.length ? o : [], H = I(s).map((C) => C[e.nodeKey]), P = I(m).map((C) => C[e.nodeKey]);
|
|
153
|
+
m.length && JSON.stringify(H) === JSON.stringify(P) || S();
|
|
152
154
|
}
|
|
153
155
|
);
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
+
const k = p(!1);
|
|
157
|
+
N(
|
|
156
158
|
() => e.data,
|
|
157
159
|
(n) => {
|
|
158
160
|
if (n && n.length) {
|
|
159
161
|
const o = n.find(
|
|
160
|
-
(s) => s[
|
|
162
|
+
(s) => s[d.value.children] && s[d.value.children].length
|
|
161
163
|
);
|
|
162
|
-
|
|
164
|
+
k.value = !o;
|
|
163
165
|
} else
|
|
164
|
-
|
|
166
|
+
k.value = !1;
|
|
165
167
|
},
|
|
166
168
|
{ immediate: !0, deep: !0 }
|
|
167
169
|
);
|
|
168
170
|
const b = p();
|
|
169
|
-
return
|
|
170
|
-
b.value =
|
|
171
|
+
return j(() => {
|
|
172
|
+
b.value = oe(
|
|
171
173
|
(n) => {
|
|
172
|
-
|
|
174
|
+
u.value = n.height;
|
|
173
175
|
},
|
|
174
|
-
|
|
176
|
+
r.value.parentElement
|
|
175
177
|
);
|
|
176
|
-
}),
|
|
178
|
+
}), q(() => {
|
|
177
179
|
b.value.disconnect();
|
|
178
180
|
}), t({
|
|
179
181
|
treeRef: c
|
|
@@ -181,36 +183,36 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
181
183
|
"div",
|
|
182
184
|
{
|
|
183
185
|
ref_key: "cotainerRef",
|
|
184
|
-
ref:
|
|
186
|
+
ref: r,
|
|
185
187
|
class: "das-ui-tree das-ui-virtual-tree",
|
|
186
|
-
style:
|
|
188
|
+
style: G({ height: O.value })
|
|
187
189
|
},
|
|
188
190
|
[
|
|
189
|
-
a.data && a.data.length ? (i(), z(T(
|
|
191
|
+
a.data && a.data.length ? (i(), z(T(Z), L({
|
|
190
192
|
key: 0,
|
|
191
193
|
ref_key: "treeRef",
|
|
192
194
|
ref: c,
|
|
193
195
|
data: a.data,
|
|
194
|
-
class: { "is-root-all-left":
|
|
195
|
-
icon:
|
|
196
|
-
props:
|
|
196
|
+
class: { "is-root-all-left": k.value },
|
|
197
|
+
icon: Ne,
|
|
198
|
+
props: d.value,
|
|
197
199
|
"show-checkbox": !1,
|
|
198
200
|
"expand-on-click-node": a.expandOnClickNode,
|
|
199
|
-
height:
|
|
201
|
+
height: R.value,
|
|
200
202
|
"item-size": 32,
|
|
201
203
|
"default-expand-all": "",
|
|
202
|
-
"filter-method":
|
|
203
|
-
"empty-text":
|
|
204
|
+
"filter-method": F.value,
|
|
205
|
+
"empty-text": f.value
|
|
204
206
|
}, n.$attrs), {
|
|
205
|
-
default:
|
|
206
|
-
|
|
207
|
+
default: g(({ node: s, data: m }) => [
|
|
208
|
+
x(n.$slots, "default", {
|
|
207
209
|
node: s,
|
|
208
210
|
data: m
|
|
209
211
|
}, () => [
|
|
210
|
-
|
|
212
|
+
v(
|
|
211
213
|
"div",
|
|
212
|
-
|
|
213
|
-
|
|
214
|
+
Ie,
|
|
215
|
+
V(m[d.value.label]),
|
|
214
216
|
1
|
|
215
217
|
/* TEXT */
|
|
216
218
|
)
|
|
@@ -219,21 +221,21 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
219
221
|
_: 3
|
|
220
222
|
/* FORWARDED */
|
|
221
223
|
}, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (i(), l(
|
|
222
|
-
|
|
224
|
+
D,
|
|
223
225
|
{ key: 1 },
|
|
224
226
|
[
|
|
225
|
-
|
|
227
|
+
B(" 空状态 "),
|
|
226
228
|
a.loading ? (i(), l(
|
|
227
|
-
|
|
229
|
+
D,
|
|
228
230
|
{ key: 1 },
|
|
229
231
|
[
|
|
230
|
-
|
|
231
|
-
|
|
232
|
+
B(" 加载状态 "),
|
|
233
|
+
K(ke, {
|
|
232
234
|
size: "small",
|
|
233
235
|
spinning: a.loading
|
|
234
236
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
|
|
237
|
+
default: g(() => [...o[0] || (o[0] = [
|
|
238
|
+
v(
|
|
237
239
|
"div",
|
|
238
240
|
{ style: { width: "100%", height: "100%" } },
|
|
239
241
|
null,
|
|
@@ -247,17 +249,17 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
247
249
|
],
|
|
248
250
|
2112
|
|
249
251
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
250
|
-
)) : (i(), z(
|
|
252
|
+
)) : (i(), z(le, {
|
|
251
253
|
key: 0,
|
|
252
|
-
"empty-text":
|
|
253
|
-
},
|
|
254
|
+
"empty-text": f.value
|
|
255
|
+
}, Q({
|
|
254
256
|
_: 2
|
|
255
257
|
/* DYNAMIC */
|
|
256
258
|
}, [
|
|
257
259
|
n.$slots["empty-text"] ? {
|
|
258
260
|
name: "default",
|
|
259
|
-
fn:
|
|
260
|
-
|
|
261
|
+
fn: g(() => [
|
|
262
|
+
x(n.$slots, "empty-text")
|
|
261
263
|
]),
|
|
262
264
|
key: "0"
|
|
263
265
|
} : void 0
|
|
@@ -271,11 +273,11 @@ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22
|
|
|
271
273
|
/* STYLE */
|
|
272
274
|
));
|
|
273
275
|
}
|
|
274
|
-
}),
|
|
275
|
-
|
|
276
|
-
const
|
|
276
|
+
}), Te = { 暂无数据: { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } };
|
|
277
|
+
te(Te);
|
|
278
|
+
const Me = Y(ze), Fe = () => p(null), He = { title: "virtual-tree 虚拟树" };
|
|
277
279
|
export {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
280
|
+
Me as DasVirtualTree,
|
|
281
|
+
Fe as DasVirtualTreeRef,
|
|
282
|
+
He as default
|
|
281
283
|
};
|
|
Binary file
|