@das-fed/ui 7.1.0-dev.24 → 7.1.0-dev.25
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 +5 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +62 -0
- package/packages/business-components/ai-panel/{index-C2MGj67k.js → index-C04Wttd4.js} +1 -1
- package/packages/business-components/ai-panel/index-C04Wttd4.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BdJrICEt.js → index-CKFBXTtX.js} +684 -676
- package/packages/business-components/ai-panel/index-CKFBXTtX.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/area-phone-select/i18n/index.d.ts +1 -0
- package/packages/business-components/area-phone-select/index.js +1 -1
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +3 -3
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +53 -50
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +7 -5
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +254 -0
- package/packages/business-components/device-panel/index.js +1802 -1768
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +21 -19
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +30 -0
- package/packages/business-components/import-button/index.js +131 -127
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +6 -6
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/i18n/index.d.ts +13 -0
- package/packages/business-components/payment/index.js +53 -53
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +30 -0
- package/packages/business-components/process-configuration/index.js +75 -73
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +84 -0
- package/packages/business-components/process-form/index.js +84 -75
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +9 -0
- package/packages/business-components/process-log/index.js +99 -99
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +9 -9
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +8 -8
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +5 -0
- package/packages/business-components/update-confirm-dialog/index.js +7 -5
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +104 -0
- package/packages/business-components/urgent-panel/index.js +104 -96
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +18 -0
- package/packages/business-components/user-org-dialog/index.js +118 -117
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +20 -20
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +1 -1
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +1 -1
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +1 -1
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +6 -0
- package/packages/components/date-picker/index.js +6 -6
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +27 -27
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +10 -9
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +9 -9
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +1 -1
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/hls-player/i18n/index.d.ts +2 -0
- package/packages/components/hls-player/index.js +2 -1
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +7 -0
- package/packages/components/image-upload/index.js +19 -15
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +3 -3
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +2 -0
- package/packages/components/input-dialog-select/index.js +10 -10
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +2 -1
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +6 -0
- package/packages/components/map/index.js +6 -2
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +4 -4
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +17 -17
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +2 -2
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +3 -1
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +4 -0
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +7 -0
- package/packages/components/search-form/index.js +7 -7
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +4 -0
- package/packages/components/select/index.js +4 -3
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +4 -4
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +3 -3
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +1 -1
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +20 -0
- package/packages/components/table/index.js +20 -18
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +31 -31
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +1 -1
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +1 -40
- package/packages/components/tree/index.js +290 -304
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/i18n/index.d.ts +21 -0
- package/packages/components/tree-v2/index.js +11 -8
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +6 -0
- package/packages/components/upload/index.js +25 -24
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +37 -1
- package/packages/components/virtual-tree/index.js +62 -49
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BdJrICEt.js.gz +0 -0
- package/packages/business-components/ai-panel/index-C2MGj67k.js.gz +0 -0
|
Binary file
|
|
@@ -2,35 +2,56 @@ declare const _default: {
|
|
|
2
2
|
请搜索: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
ar: string;
|
|
6
|
+
_appCode: string;
|
|
7
|
+
};
|
|
8
|
+
'\u641C\u7D22\u4E2D...': {
|
|
9
|
+
'zh-CN': string;
|
|
10
|
+
en: string;
|
|
11
|
+
ar: string;
|
|
5
12
|
_appCode: string;
|
|
6
13
|
};
|
|
7
14
|
新增同级: {
|
|
8
15
|
'zh-CN': string;
|
|
9
16
|
en: string;
|
|
17
|
+
ar: string;
|
|
18
|
+
_appCode: string;
|
|
10
19
|
};
|
|
11
20
|
新增子级: {
|
|
12
21
|
'zh-CN': string;
|
|
13
22
|
en: string;
|
|
23
|
+
ar: string;
|
|
24
|
+
_appCode: string;
|
|
14
25
|
};
|
|
15
26
|
编辑: {
|
|
16
27
|
'zh-CN': string;
|
|
17
28
|
en: string;
|
|
29
|
+
ar: string;
|
|
30
|
+
_appCode: string;
|
|
18
31
|
};
|
|
19
32
|
删除: {
|
|
20
33
|
'zh-CN': string;
|
|
21
34
|
en: string;
|
|
35
|
+
ar: string;
|
|
36
|
+
_appCode: string;
|
|
22
37
|
};
|
|
23
38
|
请选择: {
|
|
24
39
|
'zh-CN': string;
|
|
25
40
|
en: string;
|
|
41
|
+
ar: string;
|
|
42
|
+
_appCode: string;
|
|
26
43
|
};
|
|
27
44
|
暂无数据: {
|
|
28
45
|
'zh-CN': string;
|
|
29
46
|
en: string;
|
|
47
|
+
ar: string;
|
|
48
|
+
_appCode: string;
|
|
30
49
|
};
|
|
31
50
|
noDataTryAnotherKeyword: {
|
|
32
51
|
'zh-CN': string;
|
|
33
52
|
en: string;
|
|
53
|
+
ar: string;
|
|
54
|
+
_appCode: string;
|
|
34
55
|
};
|
|
35
56
|
};
|
|
36
57
|
export default _default;
|
|
@@ -4662,16 +4662,19 @@ const x$ = { class: "das-tree-box" }, k$ = { class: "das-tree-container das-ce-s
|
|
|
4662
4662
|
"--das-ui-tree-node-drop-indicator-color": "#276FF5",
|
|
4663
4663
|
"--das-ui-tree-empty-text": "#999999"
|
|
4664
4664
|
}, d_ = {
|
|
4665
|
-
请搜索: { "zh-CN": "请搜索", en: "Please search", _appCode: "framework" },
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4665
|
+
请搜索: { "zh-CN": "请搜索", en: "Please search", ar: "الرجاء البحث", _appCode: "framework" },
|
|
4666
|
+
"搜索中...": { "zh-CN": "搜索中...", en: "Search...", ar: "جارٍ البحث...", _appCode: "framework" },
|
|
4667
|
+
新增同级: { "zh-CN": "新增同级", en: "Add Sibling", ar: "إضافة مستوى موازٍ", _appCode: "framework" },
|
|
4668
|
+
新增子级: { "zh-CN": "新增子级", en: "Add Child", ar: "إضافة تابع", _appCode: "framework" },
|
|
4669
|
+
编辑: { "zh-CN": "编辑", en: "Edit", ar: "تعديل", _appCode: "framework" },
|
|
4670
|
+
删除: { "zh-CN": "删除", en: "Delete", ar: "حذف", _appCode: "framework" },
|
|
4671
|
+
请选择: { "zh-CN": "请选择", en: "Please Select", ar: "الرجاء الاختيار", _appCode: "framework" },
|
|
4672
|
+
暂无数据: { "zh-CN": "暂无数据", en: "No Data", ar: "لا توجد بيانات", _appCode: "framework" },
|
|
4672
4673
|
noDataTryAnotherKeyword: {
|
|
4673
4674
|
"zh-CN": "未查询到相关数据,换个关键词试试吧!",
|
|
4674
|
-
en: "No relevant data found
|
|
4675
|
+
en: "No relevant data found, try a different keyword!",
|
|
4676
|
+
ar: "لم يتم العثور على بيانات ذات صلة، جرّب كلمة مفتاحية أخرى!",
|
|
4677
|
+
_appCode: "framework"
|
|
4675
4678
|
}
|
|
4676
4679
|
};
|
|
4677
4680
|
qi(d_);
|
|
Binary file
|
|
@@ -2,31 +2,37 @@ declare const _default: {
|
|
|
2
2
|
'das-upload-text': {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
ar: string;
|
|
5
6
|
_appCode: string;
|
|
6
7
|
};
|
|
7
8
|
'das-upload-btn-text': {
|
|
8
9
|
'zh-CN': string;
|
|
9
10
|
en: string;
|
|
11
|
+
ar: string;
|
|
10
12
|
_appCode: string;
|
|
11
13
|
};
|
|
12
14
|
'das-upload-download': {
|
|
13
15
|
'zh-CN': string;
|
|
14
16
|
en: string;
|
|
17
|
+
ar: string;
|
|
15
18
|
_appCode: string;
|
|
16
19
|
};
|
|
17
20
|
'das-upload-delete': {
|
|
18
21
|
'zh-CN': string;
|
|
19
22
|
en: string;
|
|
23
|
+
ar: string;
|
|
20
24
|
_appCode: string;
|
|
21
25
|
};
|
|
22
26
|
'das-upload-tips': {
|
|
23
27
|
'zh-CN': string;
|
|
24
28
|
en: string;
|
|
29
|
+
ar: string;
|
|
25
30
|
_appCode: string;
|
|
26
31
|
};
|
|
27
32
|
'das-ui-upload-accpet': {
|
|
28
33
|
'zh-CN': string;
|
|
29
34
|
en: string;
|
|
35
|
+
ar: string;
|
|
30
36
|
_appCode: string;
|
|
31
37
|
};
|
|
32
38
|
};
|
|
@@ -14,13 +14,13 @@ import { DasMessage as te } from "@das-fed/ui/packages/components/message/index"
|
|
|
14
14
|
import { getFileExtension as ae } from "@das-fed/utils/common-tools";
|
|
15
15
|
import { useModelValue as F } from "@das-fed/utils/vue";
|
|
16
16
|
import "@das-fed/ui/packages/global/theme";
|
|
17
|
-
const
|
|
17
|
+
const re = (t) => {
|
|
18
18
|
const a = ["B", "KB", "M", "G"];
|
|
19
19
|
let c = 0;
|
|
20
20
|
for (; t > 1024; )
|
|
21
21
|
c++, t /= 1024;
|
|
22
22
|
return t = Number(Number(t).toFixed(1)), `${t}${a[c]}`;
|
|
23
|
-
},
|
|
23
|
+
}, le = (t, d) => {
|
|
24
24
|
const a = F(t, "modelValue"), c = F(t, "error"), i = F(t, "errorMessage"), _ = F(t, "errorFileName"), b = H(), y = U(() => !b.multiple && t.maxCount === 1), N = U(() => y.value && a.value.length ? "none" : "block");
|
|
25
25
|
return {
|
|
26
26
|
fileList: a,
|
|
@@ -30,20 +30,20 @@ const le = (t) => {
|
|
|
30
30
|
uploadDiaplay: N,
|
|
31
31
|
beforeupload: (e) => {
|
|
32
32
|
if (t.accept) {
|
|
33
|
-
const
|
|
34
|
-
let R =
|
|
33
|
+
const l = t.accept.split(",").filter((n) => n.trim().startsWith(".")).map((n) => n.trim()), r = t.accept.split(",").filter((n) => !n.trim().startsWith(".")).map((n) => n.trim()), f = ae(e.name), I = l.includes(f);
|
|
34
|
+
let R = r.includes("image/*") && e.type.split("/")[0].trim() === "image", O = r.includes("video/*") && e.type.split("/")[0].trim() === "video", j = r.includes("audio/*") && e.type.split("/")[0].trim() === "audio", Z = r.includes(e.type) || R || O || j;
|
|
35
35
|
if (!I && !Z) {
|
|
36
36
|
const n = K.value === "zh-CN" ? "、" : ", ", W = t.errorMessage || g("das-ui-upload-accpet", t.accept.toUpperCase().replaceAll(".", "").replaceAll(",", n));
|
|
37
37
|
return te.warning(W), !1;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
return e.sizeText =
|
|
40
|
+
return e.sizeText = re(e.size), b.multiple ? (a.value = a.value.map((l) => l.originFileObj ? l.originFileObj : l), t.maxCount > a.value.length && a.value.push(e)) : a.value = [e], d("update:modelValue", a.value), d("file-upload", e), !1;
|
|
41
41
|
},
|
|
42
42
|
errorFiledownload: () => {
|
|
43
43
|
d("errorFile-download");
|
|
44
44
|
},
|
|
45
|
-
removeFileEvent: (e,
|
|
46
|
-
a.value = a.value.filter((
|
|
45
|
+
removeFileEvent: (e, l) => {
|
|
46
|
+
a.value = a.value.filter((r) => r.uid != l.uid), a.value.length > 0 && (a.value = a.value.map((r) => r.originFileObj ? r.originFileObj : r)), d("update:modelValue", a.value), e.remove();
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}, ie = { class: "das-ui-upload" }, se = { class: "das-ui-upload-dragger-context" }, de = { class: "text" }, ne = { class: "file-list" }, ue = { class: "filename" }, ce = {
|
|
@@ -82,8 +82,8 @@ const le = (t) => {
|
|
|
82
82
|
beforeupload: V,
|
|
83
83
|
errorFiledownload: S,
|
|
84
84
|
removeFileEvent: x
|
|
85
|
-
} =
|
|
86
|
-
return (e,
|
|
85
|
+
} = le(a, c);
|
|
86
|
+
return (e, l) => (u(), v("div", ie, [
|
|
87
87
|
e.draggle ? (u(), v(
|
|
88
88
|
Q,
|
|
89
89
|
{ key: 0 },
|
|
@@ -91,16 +91,16 @@ const le = (t) => {
|
|
|
91
91
|
h(o(X), $({
|
|
92
92
|
class: "das-ui-upload-dragger",
|
|
93
93
|
fileList: o(i),
|
|
94
|
-
"onUpdate:fileList":
|
|
94
|
+
"onUpdate:fileList": l[0] || (l[0] = (r) => B(i) ? i.value = r : null),
|
|
95
95
|
"max-count": e.maxCount,
|
|
96
96
|
accept: e.accept,
|
|
97
97
|
style: { width: e.width, display: o(N) },
|
|
98
98
|
"before-upload": o(V),
|
|
99
99
|
disabled: e.isView
|
|
100
100
|
}, e.$attrs), {
|
|
101
|
-
itemRender: p(({ file:
|
|
101
|
+
itemRender: p(({ file: r, actions: f }) => [
|
|
102
102
|
E(e.$slots, "itemRender", {
|
|
103
|
-
file:
|
|
103
|
+
file: r,
|
|
104
104
|
actions: f
|
|
105
105
|
}, () => [
|
|
106
106
|
m("div", ne, [
|
|
@@ -110,7 +110,7 @@ const le = (t) => {
|
|
|
110
110
|
}, null, 8, ["iconColor"]),
|
|
111
111
|
w((u(), v("div", ue, [
|
|
112
112
|
C(
|
|
113
|
-
s(
|
|
113
|
+
s(r.name),
|
|
114
114
|
1
|
|
115
115
|
/* TEXT */
|
|
116
116
|
)
|
|
@@ -120,7 +120,7 @@ const le = (t) => {
|
|
|
120
120
|
e.showSize ? (u(), v(
|
|
121
121
|
"div",
|
|
122
122
|
ce,
|
|
123
|
-
"(" + s(
|
|
123
|
+
"(" + s(r.sizeText) + ")",
|
|
124
124
|
1
|
|
125
125
|
/* TEXT */
|
|
126
126
|
)) : k("v-if", !0),
|
|
@@ -128,7 +128,7 @@ const le = (t) => {
|
|
|
128
128
|
key: 1,
|
|
129
129
|
"btn-type": "primary-text",
|
|
130
130
|
size: "large",
|
|
131
|
-
onClick: (I) => o(x)(f,
|
|
131
|
+
onClick: (I) => o(x)(f, r),
|
|
132
132
|
block: ""
|
|
133
133
|
}, {
|
|
134
134
|
default: p(() => [
|
|
@@ -230,18 +230,18 @@ const le = (t) => {
|
|
|
230
230
|
)) : (u(), A(o(Y), $({
|
|
231
231
|
key: 1,
|
|
232
232
|
"file-list": o(i),
|
|
233
|
-
"onUpdate:fileList":
|
|
233
|
+
"onUpdate:fileList": l[1] || (l[1] = (r) => B(i) ? i.value = r : null),
|
|
234
234
|
accept: e.accept,
|
|
235
235
|
"before-upload": o(V),
|
|
236
236
|
"max-count": e.maxCount,
|
|
237
237
|
disabled: e.isView
|
|
238
238
|
}, e.$attrs), {
|
|
239
|
-
itemRender: p(({ file:
|
|
239
|
+
itemRender: p(({ file: r, actions: f }) => [
|
|
240
240
|
E(e.$slots, "itemRender", {
|
|
241
|
-
file:
|
|
241
|
+
file: r,
|
|
242
242
|
actions: f
|
|
243
243
|
}, () => [
|
|
244
|
-
|
|
244
|
+
l[2] || (l[2] = m(
|
|
245
245
|
"div",
|
|
246
246
|
null,
|
|
247
247
|
null,
|
|
@@ -280,14 +280,15 @@ const le = (t) => {
|
|
|
280
280
|
a[c] = i;
|
|
281
281
|
return a;
|
|
282
282
|
}, be = /* @__PURE__ */ Ce(he, [["__scopeId", "data-v-11f92fa2"]]), ye = {
|
|
283
|
-
"das-upload-text": { "zh-CN": "点击或拖拽上传", en: "Click or drag to upload", _appCode: "framework" },
|
|
284
|
-
"das-upload-btn-text": { "zh-CN": "上传文件", en: "Upload File", _appCode: "framework" },
|
|
285
|
-
"das-upload-download": { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
286
|
-
"das-upload-delete": { "zh-CN": "删除", en: "Delete", _appCode: "framework" },
|
|
287
|
-
"das-upload-tips": { "zh-CN": "提示: ", en: "Tip: ", _appCode: "framework" },
|
|
283
|
+
"das-upload-text": { "zh-CN": "点击或拖拽上传", en: "Click or drag to upload", ar: "انقر أو اسحب للرفع", _appCode: "framework" },
|
|
284
|
+
"das-upload-btn-text": { "zh-CN": "上传文件", en: "Upload File", ar: "رفع ملف", _appCode: "framework" },
|
|
285
|
+
"das-upload-download": { "zh-CN": "下载", en: "Download", ar: "تحميل", _appCode: "framework" },
|
|
286
|
+
"das-upload-delete": { "zh-CN": "删除", en: "Delete", ar: "حذف", _appCode: "framework" },
|
|
287
|
+
"das-upload-tips": { "zh-CN": "提示: ", en: "Tip: ", ar: "تلميح: ", _appCode: "framework" },
|
|
288
288
|
"das-ui-upload-accpet": {
|
|
289
289
|
"zh-CN": "上传的文件格式只能是$0",
|
|
290
290
|
en: "The uploaded file format can only be $0",
|
|
291
|
+
ar: "صيغة الملف المرفوع يجب أن تكون $0 فقط",
|
|
291
292
|
_appCode: "framework"
|
|
292
293
|
}
|
|
293
294
|
}, we = {
|
|
Binary file
|
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
请搜索: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
ar: string;
|
|
5
6
|
_appCode: string;
|
|
6
7
|
};
|
|
8
|
+
新增同级: {
|
|
9
|
+
'zh-CN': string;
|
|
10
|
+
en: string;
|
|
11
|
+
ar: string;
|
|
12
|
+
};
|
|
13
|
+
新增子级: {
|
|
14
|
+
'zh-CN': string;
|
|
15
|
+
en: string;
|
|
16
|
+
ar: string;
|
|
17
|
+
};
|
|
18
|
+
编辑: {
|
|
19
|
+
'zh-CN': string;
|
|
20
|
+
en: string;
|
|
21
|
+
ar: string;
|
|
22
|
+
};
|
|
23
|
+
删除: {
|
|
24
|
+
'zh-CN': string;
|
|
25
|
+
en: string;
|
|
26
|
+
ar: string;
|
|
27
|
+
};
|
|
28
|
+
请选择: {
|
|
29
|
+
'zh-CN': string;
|
|
30
|
+
en: string;
|
|
31
|
+
ar: string;
|
|
32
|
+
};
|
|
33
|
+
暂无数据: {
|
|
34
|
+
'zh-CN': string;
|
|
35
|
+
en: string;
|
|
36
|
+
ar: string;
|
|
37
|
+
};
|
|
38
|
+
noDataTryAnotherKeyword: {
|
|
39
|
+
'zh-CN': string;
|
|
40
|
+
en: string;
|
|
41
|
+
ar: string;
|
|
42
|
+
};
|
|
7
43
|
};
|
|
8
44
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/virtual-tree/style.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { withInstall as
|
|
2
|
+
import { defineComponent as w, createBlock as N, openBlock as o, unref as p, ref as d, computed as u, watch as g, onMounted as O, onBeforeUnmount as F, createElementBlock as v, normalizeStyle as M, mergeProps as V, withCtx as x, renderSlot as T, createElementVNode as E, toDisplayString as $, Fragment as D, createCommentVNode as b, createSlots as P, createVNode as H, nextTick as L } from "vue";
|
|
3
|
+
import { withInstall as J } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { ElTreeV2 as W } from "element-plus";
|
|
5
5
|
import "element-plus/es/components/tree-v2/style/css";
|
|
6
6
|
import { t as U, setI18nRule as j } from "@das-fed/web/packages/i18n/index";
|
|
@@ -9,23 +9,23 @@ import { DasSpin as G } from "@das-fed/ui/packages/components/spin/index";
|
|
|
9
9
|
import { DasIconCaretRight as Q } from "@das-fed/ui/packages/icons/caret-right/index";
|
|
10
10
|
import { SizeWatcher as X } from "@das-fed/utils/size-watcher";
|
|
11
11
|
import { flatTree as _ } from "@das-fed/utils/common-tools";
|
|
12
|
-
const Y = /* @__PURE__ */
|
|
12
|
+
const Y = /* @__PURE__ */ w({
|
|
13
13
|
__name: "expand-icon",
|
|
14
|
-
setup(
|
|
15
|
-
return (f,
|
|
14
|
+
setup(i) {
|
|
15
|
+
return (f, r) => (o(), N(p(Q), {
|
|
16
16
|
class: "das-tree__expand-icon",
|
|
17
17
|
size: "medium"
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
20
|
-
}), Z = (
|
|
21
|
-
const
|
|
22
|
-
for (const [
|
|
23
|
-
|
|
24
|
-
return
|
|
20
|
+
}), Z = (i, f) => {
|
|
21
|
+
const r = i.__vccOpts || i;
|
|
22
|
+
for (const [s, h] of f)
|
|
23
|
+
r[s] = h;
|
|
24
|
+
return r;
|
|
25
25
|
}, ee = /* @__PURE__ */ Z(Y, [["__scopeId", "data-v-d51f7d20"]]), te = { class: "tree-normal-node" }, ae = {
|
|
26
26
|
name: "DasVirtualTree",
|
|
27
27
|
inheritAttrs: !1
|
|
28
|
-
}, ne = /* @__PURE__ */
|
|
28
|
+
}, ne = /* @__PURE__ */ w({
|
|
29
29
|
...ae,
|
|
30
30
|
props: {
|
|
31
31
|
data: { default: () => [] },
|
|
@@ -40,31 +40,31 @@ const Y = /* @__PURE__ */ I({
|
|
|
40
40
|
emptyText: { default: "" },
|
|
41
41
|
filterMethod: {}
|
|
42
42
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
43
|
+
setup(i, { expose: f }) {
|
|
44
|
+
const r = d(), s = d(), h = d(0), t = i, k = u(() => t.emptyText || U("暂无数据")), l = u(() => ({ label: "name", children: "children", disabled: "disabled", ...t.props, value: t.nodeKey })), A = u(() => t != null && t.height ? t.height + "px" : "100%"), B = u(() => t != null && t.height ? t.height : h.value), I = (e, n) => n[l.value.label].toLowerCase().includes(e.toLowerCase()), K = u(() => (t == null ? void 0 : t.filterMethod) ?? I), C = () => {
|
|
45
45
|
if (t.data && t.data.length) {
|
|
46
46
|
const n = _(t.data, l.value.children, !1).filter((a) => a[l.value.children] && a[l.value.children].length).map((a) => a[t.nodeKey]);
|
|
47
|
-
|
|
47
|
+
L(() => {
|
|
48
48
|
var a;
|
|
49
|
-
(a =
|
|
49
|
+
(a = s.value) == null || a.setExpandedKeys(n);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
g(
|
|
54
54
|
() => t.defaultExpandAll,
|
|
55
55
|
(e) => {
|
|
56
|
-
e &&
|
|
56
|
+
e && C();
|
|
57
57
|
},
|
|
58
58
|
{ immediate: !0 }
|
|
59
59
|
), g(
|
|
60
60
|
() => t.data,
|
|
61
61
|
(e, n) => {
|
|
62
62
|
if (!t.defaultExpandAll) return;
|
|
63
|
-
const a = e && e.length ? e : [],
|
|
64
|
-
|
|
63
|
+
const a = e && e.length ? e : [], c = n && n.length ? n : [], S = _(a).map((y) => y[t.nodeKey]), R = _(c).map((y) => y[t.nodeKey]);
|
|
64
|
+
c.length && JSON.stringify(S) === JSON.stringify(R) || C();
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
const m =
|
|
67
|
+
const m = d(!1);
|
|
68
68
|
g(
|
|
69
69
|
() => t.data,
|
|
70
70
|
(e) => {
|
|
@@ -78,52 +78,52 @@ const Y = /* @__PURE__ */ I({
|
|
|
78
78
|
},
|
|
79
79
|
{ immediate: !0, deep: !0 }
|
|
80
80
|
);
|
|
81
|
-
const
|
|
81
|
+
const z = d();
|
|
82
82
|
return O(() => {
|
|
83
|
-
|
|
83
|
+
z.value = X(
|
|
84
84
|
(e) => {
|
|
85
|
-
|
|
85
|
+
h.value = e.height;
|
|
86
86
|
},
|
|
87
|
-
|
|
87
|
+
r.value.parentElement
|
|
88
88
|
);
|
|
89
89
|
}), F(() => {
|
|
90
|
-
|
|
90
|
+
z.value.disconnect();
|
|
91
91
|
}), f({
|
|
92
|
-
treeRef:
|
|
93
|
-
}), (e, n) => (
|
|
92
|
+
treeRef: s
|
|
93
|
+
}), (e, n) => (o(), v(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
96
|
ref_key: "cotainerRef",
|
|
97
|
-
ref:
|
|
97
|
+
ref: r,
|
|
98
98
|
class: "das-ui-tree das-ui-virtual-tree",
|
|
99
|
-
style: M({ height:
|
|
99
|
+
style: M({ height: A.value })
|
|
100
100
|
},
|
|
101
101
|
[
|
|
102
|
-
e.data && e.data.length ? (
|
|
102
|
+
e.data && e.data.length ? (o(), N(p(W), V({
|
|
103
103
|
key: 0,
|
|
104
104
|
ref_key: "treeRef",
|
|
105
|
-
ref:
|
|
105
|
+
ref: s,
|
|
106
106
|
data: e.data,
|
|
107
107
|
class: { "is-root-all-left": m.value },
|
|
108
108
|
icon: ee,
|
|
109
109
|
props: l.value,
|
|
110
110
|
"show-checkbox": !1,
|
|
111
111
|
"expand-on-click-node": e.expandOnClickNode,
|
|
112
|
-
height:
|
|
112
|
+
height: B.value,
|
|
113
113
|
"item-size": 32,
|
|
114
114
|
"default-expand-all": "",
|
|
115
115
|
"filter-method": K.value,
|
|
116
|
-
"empty-text":
|
|
116
|
+
"empty-text": k.value
|
|
117
117
|
}, e.$attrs), {
|
|
118
|
-
default: x(({ node: a, data:
|
|
118
|
+
default: x(({ node: a, data: c }) => [
|
|
119
119
|
T(e.$slots, "default", {
|
|
120
120
|
node: a,
|
|
121
|
-
data:
|
|
121
|
+
data: c
|
|
122
122
|
}, () => [
|
|
123
|
-
|
|
123
|
+
E(
|
|
124
124
|
"div",
|
|
125
125
|
te,
|
|
126
|
-
$(
|
|
126
|
+
$(c[l.value.label]),
|
|
127
127
|
1
|
|
128
128
|
/* TEXT */
|
|
129
129
|
)
|
|
@@ -131,22 +131,22 @@ const Y = /* @__PURE__ */ I({
|
|
|
131
131
|
]),
|
|
132
132
|
_: 3
|
|
133
133
|
/* FORWARDED */
|
|
134
|
-
}, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (
|
|
135
|
-
|
|
134
|
+
}, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (o(), v(
|
|
135
|
+
D,
|
|
136
136
|
{ key: 1 },
|
|
137
137
|
[
|
|
138
|
-
|
|
139
|
-
e.loading ? (
|
|
140
|
-
|
|
138
|
+
b(" 空状态 "),
|
|
139
|
+
e.loading ? (o(), v(
|
|
140
|
+
D,
|
|
141
141
|
{ key: 1 },
|
|
142
142
|
[
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
b(" 加载状态 "),
|
|
144
|
+
H(p(G), {
|
|
145
145
|
size: "small",
|
|
146
146
|
spinning: e.loading
|
|
147
147
|
}, {
|
|
148
148
|
default: x(() => n[0] || (n[0] = [
|
|
149
|
-
|
|
149
|
+
E(
|
|
150
150
|
"div",
|
|
151
151
|
{ style: { width: "100%", height: "100%" } },
|
|
152
152
|
null,
|
|
@@ -160,10 +160,10 @@ const Y = /* @__PURE__ */ I({
|
|
|
160
160
|
],
|
|
161
161
|
2112
|
|
162
162
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
163
|
-
)) : (
|
|
163
|
+
)) : (o(), N(p(q), {
|
|
164
164
|
key: 0,
|
|
165
|
-
"empty-text":
|
|
166
|
-
},
|
|
165
|
+
"empty-text": k.value
|
|
166
|
+
}, P({
|
|
167
167
|
_: 2
|
|
168
168
|
/* DYNAMIC */
|
|
169
169
|
}, [
|
|
@@ -184,9 +184,22 @@ const Y = /* @__PURE__ */ I({
|
|
|
184
184
|
/* STYLE */
|
|
185
185
|
));
|
|
186
186
|
}
|
|
187
|
-
}), le = {
|
|
187
|
+
}), le = {
|
|
188
|
+
请搜索: { "zh-CN": "请搜索", en: "Please search", ar: "الرجاء البحث", _appCode: "framework" },
|
|
189
|
+
新增同级: { "zh-CN": "新增同级", en: "Add sibling", ar: "إضافة مستوى موازٍ" },
|
|
190
|
+
新增子级: { "zh-CN": "新增子级", en: "Add child", ar: "إضافة تابع" },
|
|
191
|
+
编辑: { "zh-CN": "编辑", en: "Edit", ar: "تعديل" },
|
|
192
|
+
删除: { "zh-CN": "删除", en: "Delete", ar: "حذف" },
|
|
193
|
+
请选择: { "zh-CN": "请选择", en: "Please select", ar: "الرجاء الاختيار" },
|
|
194
|
+
暂无数据: { "zh-CN": "暂无数据", en: "No data", ar: "لا توجد بيانات" },
|
|
195
|
+
noDataTryAnotherKeyword: {
|
|
196
|
+
"zh-CN": "未查询到相关数据,换个关键词试试吧!",
|
|
197
|
+
en: "No relevant data found. Try a different keyword!",
|
|
198
|
+
ar: "لم يتم العثور على بيانات ذات صلة. جرّب كلمة مفتاحية أخرى!"
|
|
199
|
+
}
|
|
200
|
+
};
|
|
188
201
|
j(le);
|
|
189
|
-
const me =
|
|
202
|
+
const me = J(ne), ye = () => d(null), ge = { title: "virtual-tree 虚拟树" };
|
|
190
203
|
export {
|
|
191
204
|
me as DasVirtualTree,
|
|
192
205
|
ye as DasVirtualTreeRef,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|