@das-fed/ui 6.4.0-test.10 → 6.4.0-test.11
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/change-enterprises/index.d.ts +5 -5
- package/packages/business-components/change-enterprises/src/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/i18n/index.d.ts +13 -8
- package/packages/business-components/device-panel/index.js +13878 -13786
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +24 -24
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +2 -2
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/payment/index.js +186 -172
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/process-form/index.js +764 -759
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/components/button/index.js +89 -87
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/cascader/index.d.ts +7 -7
- package/packages/components/cascader/index.js +194 -156
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +1 -1
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/date-picker/index.d.ts +12 -0
- package/packages/components/date-picker/index.js +988 -774
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/type.d.ts +96 -1
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +588 -607
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/form-item/index.js +2 -2
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/image-viewer/index.js +106 -106
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +118 -117
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +92 -88
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-dialog-select/theme/index.d.ts +1 -1
- package/packages/components/input-number/index.d.ts +136 -0
- package/packages/components/input-number/index.js +202 -152
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -5671
- package/packages/components/input-number/src/type.d.ts +3 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/input-number/theme/index.d.ts +1 -1
- package/packages/components/search/index.d.ts +12 -98
- package/packages/components/search/index.js +143 -129
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +13 -152
- package/packages/components/search/src/type.d.ts +25 -5
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/index.js +740 -737
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +1 -0
- package/packages/components/search-form/src/hooks/searchFormItem.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +374 -356
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.d.ts +1 -0
- package/packages/components/select-input/index.js +82 -52
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +1 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +1 -0
- package/packages/components/select-input/src/type.d.ts +2 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/table/index.js +1 -1
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tooltip/index.js +74 -69
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +246 -246
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +3 -1
- package/packages/global/theme/index.js +2 -1
- package/packages/global/theme/index.js.gz +0 -0
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/export-button/style.css';
|
|
2
2
|
import { withInstall as G } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { ref as p, defineComponent as J, computed as K, watch as B, openBlock as Q, createElementBlock as W, createVNode as z, unref as k, withCtx as L, renderSlot as Z, createTextVNode as ee, toDisplayString as te, createCommentVNode as se, isRef as M } from "vue";
|
|
4
|
-
import { t as
|
|
4
|
+
import { t as g, currentLang as N, i18n as $, setI18nRule as ae } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as oe } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasProgress as re } from "@das-fed/ui/packages/components/progress/index";
|
|
7
7
|
import { DasButton as le } from "@das-fed/ui/packages/components/button/index";
|
|
@@ -18,11 +18,11 @@ let F = (a = 21) => {
|
|
|
18
18
|
return l;
|
|
19
19
|
};
|
|
20
20
|
const ue = ne.get("progress"), ie = (a) => {
|
|
21
|
-
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d, x = p(""), n = p(""), c = p(""), f = p(""),
|
|
21
|
+
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d, x = p(""), n = p(""), c = p(""), f = p(""), v = p(!1), w = p(""), y;
|
|
22
22
|
const _ = () => {
|
|
23
|
-
n.value = "", c.value = "", f.value = "",
|
|
23
|
+
n.value = "", c.value = "", f.value = "", v.value = !1, w.value = "";
|
|
24
24
|
}, O = async (t, u = "", h = "") => {
|
|
25
|
-
o.value = "normal", i.value = 0, s.value = h ||
|
|
25
|
+
o.value = "normal", i.value = 0, s.value = h || g("导出进度"), e.value = !0;
|
|
26
26
|
const b = await (t == null ? void 0 : t());
|
|
27
27
|
if (!b.status) {
|
|
28
28
|
e.value = !1, o.value = "error";
|
|
@@ -30,7 +30,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
30
30
|
}
|
|
31
31
|
T(b.taskId, "action", "");
|
|
32
32
|
}, j = async (t, u = "", h = "") => {
|
|
33
|
-
o.value = "normal", i.value = 0, s.value =
|
|
33
|
+
o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
|
|
34
34
|
const b = await (t == null ? void 0 : t());
|
|
35
35
|
if (!b.status) {
|
|
36
36
|
e.value = !1, o.value = "error";
|
|
@@ -52,11 +52,11 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
i.value = r.percentage;
|
|
55
|
-
const C = u == "export" ?
|
|
55
|
+
const C = u == "export" ? g("导出") : g("导入");
|
|
56
56
|
if (i.value == 100)
|
|
57
57
|
if (x.value = r, m.value = !1, V(), u == "export")
|
|
58
|
-
r.status == 1 ? (o.value = "success", Y(`${H().baseURL}/oss${r.filePath}`, h, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${N.value === "zh-CN" ?
|
|
59
|
-
message: r.message || `${C}${N.value === "zh-CN" ?
|
|
58
|
+
r.status == 1 ? (o.value = "success", Y(`${H().baseURL}/oss${r.filePath}`, h, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${N.value === "zh-CN" ? g("失败") : " " + g("失败")}`, P.error({
|
|
59
|
+
message: r.message || `${C}${N.value === "zh-CN" ? g("失败") : " " + g("失败")}`,
|
|
60
60
|
grouping: !0,
|
|
61
61
|
repeatNum: 1
|
|
62
62
|
}));
|
|
@@ -64,27 +64,27 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
64
64
|
if (r.filePath) {
|
|
65
65
|
o.value = "error";
|
|
66
66
|
const A = (S = y.name) == null ? void 0 : S.substr(y.name.indexOf("."));
|
|
67
|
-
(U = y.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"),
|
|
67
|
+
(U = y.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
|
|
68
68
|
const X = (I = r.filePath) == null ? void 0 : I.replace(/(.*\/)*([^.]+).*/gi, "$2");
|
|
69
|
-
n.value = `${X}${A}`, c.value = y.sizeText, f.value =
|
|
69
|
+
n.value = `${X}${A}`, c.value = y.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), w.value = `${H().baseURL}/oss${r.filePath}`;
|
|
70
70
|
}
|
|
71
71
|
R(r.status, C), r.status == 1 && (l.value = !1), a("success");
|
|
72
72
|
} else u == "action" && (o.value = "success");
|
|
73
73
|
else
|
|
74
74
|
d && r.status != 2 ? d = setTimeout(() => {
|
|
75
75
|
E(t, u, h, b);
|
|
76
|
-
}, 50) : (x.value = r, m.value = !1, R(r.status, C), V(),
|
|
76
|
+
}, 50) : (x.value = r, m.value = !1, R(r.status, C), V(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
|
|
77
77
|
}, R = (t, u) => {
|
|
78
78
|
t == 1 ? (o.value = "success", P.success({
|
|
79
|
-
message:
|
|
79
|
+
message: g("business-components_export-success-tip", u),
|
|
80
80
|
grouping: !0,
|
|
81
81
|
repeatNum: 1
|
|
82
82
|
}), n.value = "", c.value = "", f.value = "") : t == 2 ? (o.value = "error", P.error({
|
|
83
|
-
message:
|
|
83
|
+
message: g("business-components_export-failure-tip", u),
|
|
84
84
|
grouping: !0,
|
|
85
85
|
repeatNum: 1
|
|
86
86
|
})) : t == 3 && (o.value = "error", P.error({
|
|
87
|
-
message:
|
|
87
|
+
message: g("business-components_export-partially-failure-tip", u),
|
|
88
88
|
grouping: !0,
|
|
89
89
|
repeatNum: 1
|
|
90
90
|
}));
|
|
@@ -100,7 +100,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
100
100
|
errorFileName: n,
|
|
101
101
|
errorFileSize: c,
|
|
102
102
|
errorMessage: f,
|
|
103
|
-
errorImport:
|
|
103
|
+
errorImport: v,
|
|
104
104
|
errorFilePath: w,
|
|
105
105
|
fileExport: j,
|
|
106
106
|
fileAction: O,
|
|
@@ -126,9 +126,9 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
126
126
|
}
|
|
127
127
|
}, s.send();
|
|
128
128
|
}, pe = (a, l) => {
|
|
129
|
-
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ie(l), x = p({}), n = p({}), c = (
|
|
129
|
+
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ie(l), x = p({}), n = p({}), c = (v, w) => {
|
|
130
130
|
x.value = {
|
|
131
|
-
...
|
|
131
|
+
...v
|
|
132
132
|
}, n.value = {
|
|
133
133
|
...w
|
|
134
134
|
};
|
|
@@ -137,10 +137,10 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
137
137
|
const _ = `${a.exportFileName}${y}`;
|
|
138
138
|
d(f, _, a.fileType);
|
|
139
139
|
}, f = async () => {
|
|
140
|
-
let
|
|
141
|
-
a.taskIdPosition === "params" && (x.value.taskId =
|
|
140
|
+
let v = F();
|
|
141
|
+
a.taskIdPosition === "params" && (x.value.taskId = v), a.taskIdPosition === "body" && (n.value.taskId = v);
|
|
142
142
|
const [w, y] = await a.exportFun(n.value, { params: x.value }).run();
|
|
143
|
-
return w ? { status: !1 } : { status: !0, taskId:
|
|
143
|
+
return w ? { status: !1 } : { status: !0, taskId: v };
|
|
144
144
|
};
|
|
145
145
|
return {
|
|
146
146
|
showProgressDialog: e,
|
|
@@ -167,7 +167,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
167
167
|
emits: ["update:modelValue", "update:bodyParams", "success"],
|
|
168
168
|
setup(a, { emit: l }) {
|
|
169
169
|
const e = a, s = l;
|
|
170
|
-
K(() => e.exportFileName ||
|
|
170
|
+
K(() => e.exportFileName || g("导出表")), B(e.modelValue, (n) => {
|
|
171
171
|
s("update:modelValue", n);
|
|
172
172
|
}), B(e.bodyParams, (n) => {
|
|
173
173
|
s("update:bodyParams", n);
|
|
@@ -224,7 +224,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
224
224
|
for (const [s, i] of l)
|
|
225
225
|
e[s] = i;
|
|
226
226
|
return e;
|
|
227
|
-
}, fe = /* @__PURE__ */ ce(de, [["__scopeId", "data-v-49f0bb05"]]),
|
|
227
|
+
}, fe = /* @__PURE__ */ ce(de, [["__scopeId", "data-v-49f0bb05"]]), ge = {
|
|
228
228
|
导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
|
|
229
229
|
导出失败: { "zh-CN": "导出失败", en: "Exported Failed", _appCode: "framework" },
|
|
230
230
|
导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", _appCode: "framework" },
|
|
@@ -233,7 +233,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
233
233
|
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
234
234
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
235
235
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
236
|
-
en: "Some data
|
|
236
|
+
en: "Some data validation errors detected. Please download the attachment, make necessary corrections, and import again!",
|
|
237
237
|
_appCode: "framework"
|
|
238
238
|
},
|
|
239
239
|
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
|
|
@@ -245,7 +245,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
245
245
|
_appCode: "framework"
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
ae(
|
|
248
|
+
ae(ge);
|
|
249
249
|
const Te = G(fe);
|
|
250
250
|
export {
|
|
251
251
|
Te as DasExportButton,
|
|
Binary file
|
|
@@ -534,7 +534,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
534
534
|
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1.Click to Download ", _appCode: "framework" },
|
|
535
535
|
"2、仅支持上传Excel文件,重复数据以最后一条为准": {
|
|
536
536
|
"zh-CN": "2、仅支持上传Excel文件,重复数据以最后一条为准",
|
|
537
|
-
en: "2.Only
|
|
537
|
+
en: "2.Only Excel files can be uploaded, and the last entry is the subject of duplicate data",
|
|
538
538
|
_appCode: "framework"
|
|
539
539
|
},
|
|
540
540
|
文件: { "zh-CN": "文件", en: "File", _appCode: "framework" },
|
|
@@ -558,7 +558,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
558
558
|
部分: { "zh-CN": "部分", en: "Some", _appCode: "framework" },
|
|
559
559
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
560
560
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
561
|
-
en: "Some data validation
|
|
561
|
+
en: "Some data validation errors detected. Please download the attachment, make necessary corrections, and import again!",
|
|
562
562
|
_appCode: "framework"
|
|
563
563
|
},
|
|
564
564
|
"文件格式错误,请重新上传!": {
|
|
Binary file
|