@das-fed/ui 7.0.6 → 7.0.7-beta.2
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/esm-map.json +3 -1
- package/package.json +6 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +8 -0
- package/packages/business-components/ai-panel/{index-Cp4XD3gm.js → index-8yffh0Id.js} +1380 -1331
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-B5zC9zJy.js → index-OwRrV6K8.js} +1 -1
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/apis.d.ts +1 -0
- package/packages/business-components/ai-panel/src/dasAI/store/index.d.ts +1 -0
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/app-container/index.js +35 -33
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +2 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/currency-page/index.d.ts +3 -1
- package/packages/business-components/currency-page/index.js +40 -35
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/currency-page/src/index.vue.d.ts +3 -1
- package/packages/business-components/currency-page/src/type.d.ts +6 -0
- package/packages/business-components/currency-page/style.css +1 -1
- package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +1 -1
- package/packages/business-components/import-button/index.js +76 -74
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +4 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +1 -1
- package/packages/components/edit-table/index.d.ts +15 -15
- package/packages/components/edit-table/src/index.vue.d.ts +2 -2
- package/packages/components/hls-player/index.d.ts +45 -158
- package/packages/components/hls-player/index.js +3397 -3311
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/hls-player/src/das-hls-player-origin.vue.d.ts +13 -0
- package/packages/components/hls-player/src/das-hls-player.vue.d.ts +3 -11
- package/packages/components/hls-player/src/type.d.ts +3 -0
- package/packages/components/hls-player/style.css +1 -1
- package/packages/components/hls-player/style.css.gz +0 -0
- package/packages/components/image-upload/index.d.ts +1 -0
- package/packages/components/image-upload/index.js +767 -114
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/src/Index.vue.d.ts +1 -0
- package/packages/components/image-upload/src/hooks/use-compress-image.d.ts +1 -0
- package/packages/components/image-upload/src/type.d.ts +3 -0
- package/packages/components/image-upload/style.css +1 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-viewer/index.d.ts +1 -0
- package/packages/components/image-viewer/index.js +1086 -434
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +1 -0
- package/packages/components/image-viewer/src/hooks/use-compress-image.d.ts +1 -0
- package/packages/components/image-viewer/src/type.d.ts +3 -0
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/input/index.d.ts +3 -3
- package/packages/components/input/src/index.vue.d.ts +1 -1
- package/packages/components/menu-aside/index.d.ts +3 -3
- package/packages/components/menu-aside/index.js +236 -211
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/Index.vue.d.ts +1 -1
- package/packages/components/menu-aside/src/style-theme.d.ts +25 -0
- package/packages/components/menu-aside/src/type.d.ts +1 -1
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.d.ts +6 -0
- package/packages/components/menu-header/index.js +54 -50
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/Index.vue.d.ts +2 -0
- package/packages/components/menu-header/src/style-theme.d.ts +9 -0
- package/packages/components/menu-header/src/type.d.ts +6 -1
- package/packages/components/menu-header/style.css +1 -1
- package/packages/components/menu-header/style.css.gz +0 -0
- package/packages/components/pagination/index.d.ts +9 -9
- package/packages/components/pagination/src/Pagination.vue.d.ts +1 -1
- package/packages/components/search/index.d.ts +1 -1
- package/packages/components/search/src/Index.vue.d.ts +1 -1
- package/packages/components/select-list/index.d.ts +16 -16
- package/packages/components/select-list/src/Index.vue.d.ts +6 -6
- package/packages/components/tree-table/index.js +291 -263
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/src/hooks/use-five.d.ts +4 -0
- package/packages/components/tree-table/src/hooks/use-four.d.ts +4 -0
- package/packages/components/tree-table/src/type.d.ts +1 -1
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/icons/index.d.ts +2 -0
- package/packages/icons/index.js +2 -0
- package/packages/icons/tucao/index.d.ts +1 -0
- package/packages/icons/tucao/index.js +17 -0
- package/packages/icons/tucao/index.js.gz +0 -0
- package/packages/icons/tucao/index.vue.d.ts +12 -0
- package/packages/icons/tucao-2/index.d.ts +1 -0
- package/packages/icons/tucao-2/index.js +17 -0
- package/packages/icons/tucao-2/index.js.gz +0 -0
- package/packages/icons/tucao-2/index.vue.d.ts +12 -0
- package/packages/business-components/ai-panel/index-B5zC9zJy.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Cp4XD3gm.js.gz +0 -0
|
@@ -11,7 +11,7 @@ import { DasMessage as U } from "@das-fed/ui/packages/components/message/index";
|
|
|
11
11
|
import ze from "dayjs";
|
|
12
12
|
import { getConfig as ne } from "@das-fed/utils/config";
|
|
13
13
|
import { extractFilename as Te } from "@das-fed/utils/common-tools";
|
|
14
|
-
import { getUserInfo as
|
|
14
|
+
import { getUserInfo as Fe } from "@das-fed/utils/common-info/index";
|
|
15
15
|
import { pureImageSrc as ie } from "@das-fed/utils/pure-image-src";
|
|
16
16
|
let te = (e = 21) => {
|
|
17
17
|
let m = "", p = crypto.getRandomValues(new Uint8Array(e));
|
|
@@ -21,14 +21,14 @@ let te = (e = 21) => {
|
|
|
21
21
|
}
|
|
22
22
|
return m;
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
let m = k(!1), p = k(!1), l = k(""), w = k(0), n = k("normal"), v = k(!1), y, b = k(""), I = k(""),
|
|
24
|
+
const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Se = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), $e = be.get("progress"), Pe = (e) => {
|
|
25
|
+
let m = k(!1), p = k(!1), l = k(""), w = k(0), n = k("normal"), v = k(!1), y, b = k(""), I = k(""), S = k(""), z = k(""), $ = k(!1), M = k(""), F = "", _ = k(""), P;
|
|
26
26
|
const E = () => {
|
|
27
|
-
I.value = "",
|
|
27
|
+
I.value = "", S.value = "", z.value = "", $.value = !1, M.value = "";
|
|
28
28
|
}, N = async () => {
|
|
29
|
-
const [r, s] = await
|
|
29
|
+
const [r, s] = await _e().run();
|
|
30
30
|
return r ? { stauts: !1 } : { status: !0, data: s };
|
|
31
|
-
}, B = (r) => new Promise((s,
|
|
31
|
+
}, B = (r) => new Promise((s, f) => {
|
|
32
32
|
const i = [];
|
|
33
33
|
let t = 0;
|
|
34
34
|
for (; t < r.size; ) {
|
|
@@ -37,12 +37,12 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
37
37
|
}
|
|
38
38
|
const c = new Blob(i, { type: r.type });
|
|
39
39
|
s(c);
|
|
40
|
-
}), A = async (r, s,
|
|
41
|
-
|
|
40
|
+
}), A = async (r, s, f, a = !1, i = !0, t = "") => {
|
|
41
|
+
F = t, _.value = "import", i && (n.value = "normal", w.value = 0, l.value = u("导入进度"), p.value = !0, b.value = ""), P = s;
|
|
42
42
|
const c = await N();
|
|
43
43
|
if (!c.status) return;
|
|
44
|
-
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } =
|
|
45
|
-
const ue = a ?
|
|
44
|
+
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } = f;
|
|
45
|
+
const ue = a ? Se : Ie;
|
|
46
46
|
if (a) {
|
|
47
47
|
let X = [];
|
|
48
48
|
await s.forEach(async (G) => {
|
|
@@ -82,30 +82,30 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
82
82
|
repeatNum: 1
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
}, R = async (r, s = "",
|
|
86
|
-
n.value = "normal", w.value = 0, l.value =
|
|
85
|
+
}, R = async (r, s = "", f = "") => {
|
|
86
|
+
n.value = "normal", w.value = 0, l.value = f || u("导出进度"), p.value = !0;
|
|
87
87
|
const a = await (r == null ? void 0 : r());
|
|
88
88
|
if (!a.status) {
|
|
89
89
|
p.value = !1, n.value = "error";
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
T(a.taskId, "action", "");
|
|
93
|
-
}, O = async (r, s = "",
|
|
94
|
-
|
|
93
|
+
}, O = async (r, s = "", f = "xlsx") => {
|
|
94
|
+
_.value = "export", n.value = "normal", w.value = 0, l.value = u("导出进度"), p.value = !0;
|
|
95
95
|
const a = await (r == null ? void 0 : r());
|
|
96
96
|
if (!a.status) {
|
|
97
97
|
p.value = !1, n.value = "error";
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "",
|
|
101
|
-
}, T = async (r, s,
|
|
102
|
-
v.value = !0, g(r, s,
|
|
100
|
+
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "", f);
|
|
101
|
+
}, T = async (r, s, f, a = "") => {
|
|
102
|
+
v.value = !0, g(r, s, f, a), y = setTimeout(() => {
|
|
103
103
|
}, 50);
|
|
104
|
-
},
|
|
104
|
+
}, d = () => {
|
|
105
105
|
clearTimeout(y), y = null, p.value = !1;
|
|
106
|
-
}, g = async (r, s = "export",
|
|
106
|
+
}, g = async (r, s = "export", f, a = "") => {
|
|
107
107
|
var C, x;
|
|
108
|
-
const [i, t] = await
|
|
108
|
+
const [i, t] = await $e("", {
|
|
109
109
|
url: `progress/${r}`
|
|
110
110
|
}).run();
|
|
111
111
|
if (i) {
|
|
@@ -115,8 +115,8 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
115
115
|
w.value = t.percentage;
|
|
116
116
|
const c = s == "export" ? u("导出") : u("导入");
|
|
117
117
|
if (w.value == 100)
|
|
118
|
-
if (b.value = t, v.value = !1,
|
|
119
|
-
t.status == 1 ? (n.value = "success", pe(`${ne().baseURL}/oss${t.filePath}`,
|
|
118
|
+
if (b.value = t, v.value = !1, d(), s == "export")
|
|
119
|
+
t.status == 1 ? (n.value = "success", pe(`${ne().baseURL}/oss${t.filePath}`, f, a), v.value = !1) : t.status == 2 && (z.value = t.message || `${c}${u("失败")}`, U.error({
|
|
120
120
|
message: t.message || `${c}${u("失败")}`,
|
|
121
121
|
grouping: !0,
|
|
122
122
|
repeatNum: 1
|
|
@@ -125,24 +125,24 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
125
125
|
if (t.filePath) {
|
|
126
126
|
n.value = "error";
|
|
127
127
|
const K = (C = P.name) == null ? void 0 : C.match(/(.*?)(\.[^.]*$|$)/);
|
|
128
|
-
K.length && K[2],
|
|
128
|
+
K.length && K[2], $.value = !0;
|
|
129
129
|
let V = await Te(`/oss/${t == null ? void 0 : t.filePath}`);
|
|
130
130
|
const J = ((x = V == null ? void 0 : V.split("/")) == null ? void 0 : x.pop()) || "";
|
|
131
|
-
I.value =
|
|
131
|
+
I.value = F || J, S.value = P.sizeText, z.value = u("部分数据校验不通过,请下载附件并修改,重新导入!"), M.value = `${ne().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
|
|
132
132
|
}
|
|
133
133
|
h(t.status, c, t.message), t.status == 1 && (m.value = !1), e("success");
|
|
134
134
|
} else s == "action" && (n.value = "success");
|
|
135
135
|
else
|
|
136
136
|
y && t.status != 2 ? y = setTimeout(() => {
|
|
137
|
-
g(r, s,
|
|
138
|
-
}, 50) : (b.value = t, v.value = !1, h(t.status, c, t.message),
|
|
139
|
-
}, h = (r, s,
|
|
137
|
+
g(r, s, f, a);
|
|
138
|
+
}, 50) : (b.value = t, v.value = !1, h(t.status, c, t.message), d(), $.value = !0, z.value = (t == null ? void 0 : t.message) || "", e("error", t));
|
|
139
|
+
}, h = (r, s, f) => {
|
|
140
140
|
r == 1 ? (n.value = "success", U.success({
|
|
141
141
|
message: u("business-components_export-success-tip", s),
|
|
142
142
|
grouping: !0,
|
|
143
143
|
repeatNum: 1
|
|
144
|
-
}), I.value = "",
|
|
145
|
-
message:
|
|
144
|
+
}), I.value = "", S.value = "", z.value = "") : r == 2 ? (n.value = "error", U.error({
|
|
145
|
+
message: f || u("business-components_export-failure-tip", s),
|
|
146
146
|
grouping: !0,
|
|
147
147
|
repeatNum: 1
|
|
148
148
|
})) : r == 3 && (n.value = "error", U.error({
|
|
@@ -160,22 +160,22 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
160
160
|
progressLoading: v,
|
|
161
161
|
progressResult: b,
|
|
162
162
|
errorFileName: I,
|
|
163
|
-
errorFileSize:
|
|
163
|
+
errorFileSize: S,
|
|
164
164
|
errorMessage: z,
|
|
165
|
-
errorImport:
|
|
165
|
+
errorImport: $,
|
|
166
166
|
errorFilePath: M,
|
|
167
|
-
fileHandleType:
|
|
167
|
+
fileHandleType: _,
|
|
168
168
|
fileImport: A,
|
|
169
169
|
fileExport: O,
|
|
170
170
|
fileAction: R,
|
|
171
171
|
generateUniqueName: (r) => {
|
|
172
|
-
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/),
|
|
173
|
-
return `${s.length ? s[1] : r}${te()}${
|
|
172
|
+
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/), f = s.length ? s[2] : "";
|
|
173
|
+
return `${s.length ? s[1] : r}${te()}${f}`;
|
|
174
174
|
},
|
|
175
175
|
downloadFile: pe,
|
|
176
176
|
resetStataus: E,
|
|
177
177
|
checkProgress: T,
|
|
178
|
-
clearTimer:
|
|
178
|
+
clearTimer: d
|
|
179
179
|
};
|
|
180
180
|
}, De = (e) => {
|
|
181
181
|
let m = e == null ? void 0 : e.toLocaleLowerCase();
|
|
@@ -226,7 +226,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
226
226
|
typeof l.result == "string" && (n = JSON.parse(l.result)), m(n);
|
|
227
227
|
}, l.readAsText(e);
|
|
228
228
|
}), Me = (e, m) => {
|
|
229
|
-
var
|
|
229
|
+
var f;
|
|
230
230
|
const {
|
|
231
231
|
importDialog: p,
|
|
232
232
|
showProgressDialog: l,
|
|
@@ -236,18 +236,18 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
236
236
|
progressLoading: y,
|
|
237
237
|
errorFileName: b,
|
|
238
238
|
errorFileSize: I,
|
|
239
|
-
errorMessage:
|
|
239
|
+
errorMessage: S,
|
|
240
240
|
errorImport: z,
|
|
241
|
-
errorFilePath:
|
|
241
|
+
errorFilePath: $,
|
|
242
242
|
fileHandleType: M,
|
|
243
|
-
fileImport:
|
|
244
|
-
fileExport:
|
|
243
|
+
fileImport: F,
|
|
244
|
+
fileExport: _,
|
|
245
245
|
downloadFile: P,
|
|
246
246
|
clearTimer: E
|
|
247
247
|
} = Pe(m);
|
|
248
|
-
let N = k([]), B = (
|
|
248
|
+
let N = k([]), B = (f = Fe()) == null ? void 0 : f.tenantId;
|
|
249
249
|
const A = () => {
|
|
250
|
-
N.value = [], z.value = !1, b.value = "", I.value = "",
|
|
250
|
+
N.value = [], z.value = !1, b.value = "", I.value = "", S.value = "", p.value = !0, $.value = "", m("open");
|
|
251
251
|
};
|
|
252
252
|
let R;
|
|
253
253
|
const O = (a) => {
|
|
@@ -270,7 +270,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
270
270
|
}, T = (a) => {
|
|
271
271
|
let i = a.match(/\d+(\.\d+)?/)[0], t = a.match(/[a-zA-z]+/gi)[0], c = 0;
|
|
272
272
|
return i = parseFloat(i), t = t.toLowerCase(), t === "gb" || t === "g" ? c = (i * 1024 * 1024 * 1024).toFixed(2) : t === "mb" || t === "m" ? c = (i * 1024 * 1024).toFixed(2) : t === "kb" || t === "k" ? c = (i * 1024).toFixed(2) : t === "b" && (c = i), parseFloat(c);
|
|
273
|
-
},
|
|
273
|
+
}, d = async (a) => {
|
|
274
274
|
const i = a.value.split("/");
|
|
275
275
|
let t = te();
|
|
276
276
|
const c = {
|
|
@@ -288,11 +288,11 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
288
288
|
};
|
|
289
289
|
e.maxCount > 1 && (a.importFileName = N.value.map((c) => c.name));
|
|
290
290
|
const i = e.maxCount > 1, t = e.maxCount > 1 ? N.value : N.value[0];
|
|
291
|
-
await
|
|
291
|
+
await F(d, t, a, i);
|
|
292
292
|
}, h = () => {
|
|
293
|
-
P(
|
|
293
|
+
P($.value, b.value);
|
|
294
294
|
}, oe = () => {
|
|
295
|
-
|
|
295
|
+
_(r, e.templateName);
|
|
296
296
|
}, r = async () => {
|
|
297
297
|
let a = te();
|
|
298
298
|
const [i, t] = await e.templateFun({ taskId: a }).run();
|
|
@@ -306,7 +306,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
306
306
|
progressLoading: y,
|
|
307
307
|
errorFileName: b,
|
|
308
308
|
errorFileSize: I,
|
|
309
|
-
errorMessage:
|
|
309
|
+
errorMessage: S,
|
|
310
310
|
errorImport: z,
|
|
311
311
|
importDialog: p,
|
|
312
312
|
fileList: N,
|
|
@@ -353,7 +353,9 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
353
353
|
openDisabled: { type: Boolean, default: !0 },
|
|
354
354
|
bucketName: { default: "temp" },
|
|
355
355
|
maxCount: { default: 1 },
|
|
356
|
-
multiple: { type: Boolean, default: !1 }
|
|
356
|
+
multiple: { type: Boolean, default: !1 },
|
|
357
|
+
dialogFistTip: {},
|
|
358
|
+
dialogSecondTip: {}
|
|
357
359
|
},
|
|
358
360
|
emits: ["open", "success", "error"],
|
|
359
361
|
setup(e, { expose: m, emit: p }) {
|
|
@@ -362,12 +364,12 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
362
364
|
progressTitle: y,
|
|
363
365
|
percent: b,
|
|
364
366
|
progressStatus: I,
|
|
365
|
-
errorFileName:
|
|
367
|
+
errorFileName: S,
|
|
366
368
|
errorFileSize: z,
|
|
367
|
-
errorMessage:
|
|
369
|
+
errorMessage: $,
|
|
368
370
|
errorImport: M,
|
|
369
|
-
importDialog:
|
|
370
|
-
fileList:
|
|
371
|
+
importDialog: F,
|
|
372
|
+
fileList: _,
|
|
371
373
|
fileHandleType: P,
|
|
372
374
|
showImportHandle: E,
|
|
373
375
|
confirmImport: N,
|
|
@@ -377,17 +379,17 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
377
379
|
clearTimer: O
|
|
378
380
|
} = Me(l, w);
|
|
379
381
|
let T;
|
|
380
|
-
return he(P, (
|
|
381
|
-
|
|
382
|
+
return he(P, (d) => {
|
|
383
|
+
d.includes("import") ? T = [u("正在导入中..."), u("导入失败"), u("导入成功")] : T = [u("正在导出中..."), u("导出失败"), u("导出成功")];
|
|
382
384
|
}), m({
|
|
383
385
|
confirmImport: N,
|
|
384
386
|
showImportHandle: E
|
|
385
|
-
}), (
|
|
387
|
+
}), (d, g) => (we(), Ce("div", Ee, [
|
|
386
388
|
q("div", {
|
|
387
389
|
onClick: g[0] || (g[0] = //@ts-ignore
|
|
388
390
|
(...h) => o(E) && o(E)(...h))
|
|
389
391
|
}, [
|
|
390
|
-
le(
|
|
392
|
+
le(d.$slots, "default", {}, () => [
|
|
391
393
|
D(o(W), {
|
|
392
394
|
size: "middle",
|
|
393
395
|
"btn-type": "primary"
|
|
@@ -406,9 +408,9 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
406
408
|
]),
|
|
407
409
|
re(" 导入弹窗 "),
|
|
408
410
|
D(o(se), {
|
|
409
|
-
title: o(j)(
|
|
410
|
-
modelValue: o(
|
|
411
|
-
"onUpdate:modelValue": g[3] || (g[3] = (h) => Q(
|
|
411
|
+
title: o(j)(d.importDialogName).value,
|
|
412
|
+
modelValue: o(F),
|
|
413
|
+
"onUpdate:modelValue": g[3] || (g[3] = (h) => Q(F) ? F.value = h : null),
|
|
412
414
|
customClass: "upload-dialog",
|
|
413
415
|
width: "610px",
|
|
414
416
|
height: "500px"
|
|
@@ -417,7 +419,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
417
419
|
q("div", null, [
|
|
418
420
|
D(o(W), {
|
|
419
421
|
size: "middle",
|
|
420
|
-
onClick: g[2] || (g[2] = (h) =>
|
|
422
|
+
onClick: g[2] || (g[2] = (h) => F.value = !1)
|
|
421
423
|
}, {
|
|
422
424
|
default: L(() => [
|
|
423
425
|
Y(
|
|
@@ -432,13 +434,13 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
432
434
|
D(o(W), {
|
|
433
435
|
size: "middle",
|
|
434
436
|
"btn-type": "primary",
|
|
435
|
-
disabled:
|
|
437
|
+
disabled: d.openDisabled && o(_).length === 0,
|
|
436
438
|
style: { "margin-left": "12px", width: "100%" },
|
|
437
439
|
onClick: o(N)
|
|
438
440
|
}, {
|
|
439
441
|
default: L(() => [
|
|
440
442
|
Y(
|
|
441
|
-
H(o(j)(`${
|
|
443
|
+
H(o(j)(`${d.confirmButtonName}`).value),
|
|
442
444
|
1
|
|
443
445
|
/* TEXT */
|
|
444
446
|
)
|
|
@@ -449,11 +451,11 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
449
451
|
])
|
|
450
452
|
]),
|
|
451
453
|
default: L(() => [
|
|
452
|
-
le(
|
|
454
|
+
le(d.$slots, "tip", {}, () => [
|
|
453
455
|
q("div", Le, [
|
|
454
456
|
q("div", je, [
|
|
455
457
|
Y(
|
|
456
|
-
H(o(j)("1、点击下载 ").value),
|
|
458
|
+
H(d.dialogFistTip || o(j)("1、点击下载 ").value) + " ",
|
|
457
459
|
1
|
|
458
460
|
/* TEXT */
|
|
459
461
|
),
|
|
@@ -465,7 +467,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
465
467
|
}, {
|
|
466
468
|
default: L(() => [
|
|
467
469
|
Y(
|
|
468
|
-
H(o(j)(`${
|
|
470
|
+
H(o(j)(`${d.templateName}`).value),
|
|
469
471
|
1
|
|
470
472
|
/* TEXT */
|
|
471
473
|
)
|
|
@@ -477,22 +479,22 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
477
479
|
q(
|
|
478
480
|
"div",
|
|
479
481
|
Be,
|
|
480
|
-
H(o(j)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
|
|
482
|
+
H(d.dialogSecondTip || o(j)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
|
|
481
483
|
1
|
|
482
484
|
/* TEXT */
|
|
483
485
|
)
|
|
484
486
|
])
|
|
485
487
|
], !0),
|
|
486
488
|
D(o(ye), {
|
|
487
|
-
modelValue: o(
|
|
488
|
-
"onUpdate:modelValue": g[1] || (g[1] = (h) => Q(
|
|
489
|
+
modelValue: o(_),
|
|
490
|
+
"onUpdate:modelValue": g[1] || (g[1] = (h) => Q(_) ? _.value = h : null),
|
|
489
491
|
error: o(M),
|
|
490
|
-
"error-file-name": o(
|
|
492
|
+
"error-file-name": o(S),
|
|
491
493
|
"error-file-size": o(z),
|
|
492
|
-
"error-message": o(
|
|
493
|
-
accept:
|
|
494
|
-
maxCount:
|
|
495
|
-
multiple:
|
|
494
|
+
"error-message": o($),
|
|
495
|
+
accept: d.fileType,
|
|
496
|
+
maxCount: d.maxCount,
|
|
497
|
+
multiple: d.multiple,
|
|
496
498
|
onErrorFileDownload: o(A),
|
|
497
499
|
onFileUpload: o(B)
|
|
498
500
|
}, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "maxCount", "multiple", "onErrorFileDownload", "onFileUpload"])
|
|
@@ -530,7 +532,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
530
532
|
for (const [l, w] of m)
|
|
531
533
|
p[l] = w;
|
|
532
534
|
return p;
|
|
533
|
-
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-
|
|
535
|
+
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-49caa32f"]]), Ae = {
|
|
534
536
|
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1.Click to Download ", _appCode: "framework" },
|
|
535
537
|
"2、仅支持上传Excel文件,重复数据以最后一条为准": {
|
|
536
538
|
"zh-CN": "2、仅支持上传Excel文件,重复数据以最后一条为准",
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-import-button[data-v-
|
|
1
|
+
.das-import-button[data-v-49caa32f]{display:inline-block}.das-import-button .upload-dialog .second-line[data-v-49caa32f]{margin-bottom:20px}.das-import-button .upload-dialog .tips[data-v-49caa32f]{font-size:16px}
|
|
@@ -24,9 +24,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
24
24
|
y: number;
|
|
25
25
|
h: number | string;
|
|
26
26
|
w: number | string;
|
|
27
|
+
isActive: boolean;
|
|
27
28
|
x: number;
|
|
28
29
|
aspectRatio: boolean;
|
|
29
|
-
isActive: boolean;
|
|
30
30
|
axis: string;
|
|
31
31
|
preventActiveBehavior: boolean;
|
|
32
32
|
parentW: number;
|
|
@@ -15,10 +15,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
15
15
|
readonly cellClassName?: import("element-plus").CellCls;
|
|
16
16
|
readonly selectionRows?: any[] | undefined;
|
|
17
17
|
readonly trigger?: "change" | "blur" | "save" | undefined;
|
|
18
|
+
readonly onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
18
19
|
readonly "onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
19
20
|
readonly onAddRow?: (() => any) | undefined;
|
|
20
21
|
readonly onRemoveRow?: (() => any) | undefined;
|
|
21
|
-
readonly onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
22
22
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
23
23
|
$attrs: {
|
|
24
24
|
[x: string]: unknown;
|
|
@@ -32,13 +32,13 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
32
32
|
$root: import("vue").ComponentPublicInstance | null;
|
|
33
33
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
34
34
|
$host: Element | null;
|
|
35
|
-
$emit: ((event: "
|
|
35
|
+
$emit: ((event: "sortEnd", oldData: any[], newData: any[], oldIndex: number, newIndex: number) => void) & ((event: "update:selection-rows", selectionRows: any[]) => void) & ((event: "addRow") => void) & ((event: "removeRow") => void);
|
|
36
36
|
$el: any;
|
|
37
37
|
$options: import("vue").ComponentOptionsBase<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
38
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
38
39
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
39
40
|
onAddRow?: (() => any) | undefined;
|
|
40
41
|
onRemoveRow?: (() => any) | undefined;
|
|
41
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
43
|
getResultData: () => {}[];
|
|
44
44
|
recover: () => void;
|
|
@@ -58,10 +58,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
58
58
|
changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
|
|
59
59
|
removeCellError: (row: any, prop?: string) => void;
|
|
60
60
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
61
|
+
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
61
62
|
"update:selection-rows": (selectionRows: any[]) => any;
|
|
62
63
|
addRow: () => any;
|
|
63
64
|
removeRow: () => any;
|
|
64
|
-
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
65
65
|
}, string, {
|
|
66
66
|
config: import("./src/type.js").ListConfig[];
|
|
67
67
|
props: {
|
|
@@ -103,10 +103,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
103
103
|
rowKey: string;
|
|
104
104
|
selectionRows: any[];
|
|
105
105
|
}> & Omit<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
106
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
106
107
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
107
108
|
onAddRow?: (() => any) | undefined;
|
|
108
109
|
onRemoveRow?: (() => any) | undefined;
|
|
109
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
110
110
|
}>, "deactivateAll" | "removeErrorByRowKey" | "validateAll" | "clearValidate" | "changeRules" | "validateByRowKey" | "removeCellError" | ("config" | "props" | "data" | "trigger" | "rowKey" | "selectionRows") | "getResultData" | "recover" | "recoverByKey" | "insert" | "changeRowValueByKey" | "removeRowByKey"> & import("vue").ShallowUnwrapRef<{
|
|
111
111
|
getResultData: () => {}[];
|
|
112
112
|
recover: () => void;
|
|
@@ -211,10 +211,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
211
211
|
readonly cellClassName?: import("element-plus").CellCls;
|
|
212
212
|
readonly selectionRows?: any[] | undefined;
|
|
213
213
|
readonly trigger?: "change" | "blur" | "save" | undefined;
|
|
214
|
+
readonly onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
214
215
|
readonly "onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
215
216
|
readonly onAddRow?: (() => any) | undefined;
|
|
216
217
|
readonly onRemoveRow?: (() => any) | undefined;
|
|
217
|
-
readonly onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
218
218
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
219
219
|
$attrs: {
|
|
220
220
|
[x: string]: unknown;
|
|
@@ -228,13 +228,13 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
228
228
|
$root: import("vue").ComponentPublicInstance | null;
|
|
229
229
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
230
230
|
$host: Element | null;
|
|
231
|
-
$emit: ((event: "
|
|
231
|
+
$emit: ((event: "sortEnd", oldData: any[], newData: any[], oldIndex: number, newIndex: number) => void) & ((event: "update:selection-rows", selectionRows: any[]) => void) & ((event: "addRow") => void) & ((event: "removeRow") => void);
|
|
232
232
|
$el: any;
|
|
233
233
|
$options: import("vue").ComponentOptionsBase<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
234
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
234
235
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
235
236
|
onAddRow?: (() => any) | undefined;
|
|
236
237
|
onRemoveRow?: (() => any) | undefined;
|
|
237
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
238
238
|
}>, {
|
|
239
239
|
getResultData: () => {}[];
|
|
240
240
|
recover: () => void;
|
|
@@ -254,10 +254,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
254
254
|
changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
|
|
255
255
|
removeCellError: (row: any, prop?: string) => void;
|
|
256
256
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
257
|
+
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
257
258
|
"update:selection-rows": (selectionRows: any[]) => any;
|
|
258
259
|
addRow: () => any;
|
|
259
260
|
removeRow: () => any;
|
|
260
|
-
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
261
261
|
}, string, {
|
|
262
262
|
config: import("./src/type.js").ListConfig[];
|
|
263
263
|
props: {
|
|
@@ -299,10 +299,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
299
299
|
rowKey: string;
|
|
300
300
|
selectionRows: any[];
|
|
301
301
|
}> & Omit<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
302
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
302
303
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
303
304
|
onAddRow?: (() => any) | undefined;
|
|
304
305
|
onRemoveRow?: (() => any) | undefined;
|
|
305
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
306
306
|
}>, "deactivateAll" | "removeErrorByRowKey" | "validateAll" | "clearValidate" | "changeRules" | "validateByRowKey" | "removeCellError" | ("config" | "props" | "data" | "trigger" | "rowKey" | "selectionRows") | "getResultData" | "recover" | "recoverByKey" | "insert" | "changeRowValueByKey" | "removeRowByKey"> & import("vue").ShallowUnwrapRef<{
|
|
307
307
|
getResultData: () => {}[];
|
|
308
308
|
recover: () => void;
|
|
@@ -394,10 +394,10 @@ declare const DasEditTableRef: () => import("vue").Ref<({
|
|
|
394
394
|
}) | null>;
|
|
395
395
|
declare const DasEditTable: import("@das-fed/utils").SFCWithInstall<{
|
|
396
396
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
397
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
397
398
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
398
399
|
onAddRow?: (() => any) | undefined;
|
|
399
400
|
onRemoveRow?: (() => any) | undefined;
|
|
400
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
401
401
|
}>, {
|
|
402
402
|
getResultData: () => {}[];
|
|
403
403
|
recover: () => void;
|
|
@@ -417,10 +417,10 @@ declare const DasEditTable: import("@das-fed/utils").SFCWithInstall<{
|
|
|
417
417
|
changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
|
|
418
418
|
removeCellError: (row: any, prop?: string) => void;
|
|
419
419
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
420
|
+
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
420
421
|
"update:selection-rows": (selectionRows: any[]) => any;
|
|
421
422
|
addRow: () => any;
|
|
422
423
|
removeRow: () => any;
|
|
423
|
-
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
424
424
|
}, import("vue").PublicProps, {
|
|
425
425
|
config: import("./src/type.js").ListConfig[];
|
|
426
426
|
props: {
|
|
@@ -439,10 +439,10 @@ declare const DasEditTable: import("@das-fed/utils").SFCWithInstall<{
|
|
|
439
439
|
M: {};
|
|
440
440
|
Defaults: {};
|
|
441
441
|
}, Readonly<import("./src/type.js").Props> & Readonly<{
|
|
442
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
442
443
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
443
444
|
onAddRow?: (() => any) | undefined;
|
|
444
445
|
onRemoveRow?: (() => any) | undefined;
|
|
445
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
446
446
|
}>, {
|
|
447
447
|
getResultData: () => {}[];
|
|
448
448
|
recover: () => void;
|
|
@@ -476,10 +476,10 @@ declare const DasEditTable: import("@das-fed/utils").SFCWithInstall<{
|
|
|
476
476
|
__isTeleport?: never;
|
|
477
477
|
__isSuspense?: never;
|
|
478
478
|
} & import("vue").ComponentOptionsBase<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
479
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
479
480
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
480
481
|
onAddRow?: (() => any) | undefined;
|
|
481
482
|
onRemoveRow?: (() => any) | undefined;
|
|
482
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
483
483
|
}>, {
|
|
484
484
|
getResultData: () => {}[];
|
|
485
485
|
recover: () => void;
|
|
@@ -499,10 +499,10 @@ declare const DasEditTable: import("@das-fed/utils").SFCWithInstall<{
|
|
|
499
499
|
changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
|
|
500
500
|
removeCellError: (row: any, prop?: string) => void;
|
|
501
501
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
502
|
+
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
502
503
|
"update:selection-rows": (selectionRows: any[]) => any;
|
|
503
504
|
addRow: () => any;
|
|
504
505
|
removeRow: () => any;
|
|
505
|
-
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
506
506
|
}, string, {
|
|
507
507
|
config: import("./src/type.js").ListConfig[];
|
|
508
508
|
props: {
|
|
@@ -87,15 +87,15 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
87
87
|
/** 清除某一单元格的校验信息 */
|
|
88
88
|
removeCellError: (row: any, prop?: string) => void;
|
|
89
89
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
90
|
+
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
90
91
|
"update:selection-rows": (selectionRows: any[]) => any;
|
|
91
92
|
addRow: () => any;
|
|
92
93
|
removeRow: () => any;
|
|
93
|
-
sortEnd: (oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
95
|
+
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
95
96
|
"onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
|
|
96
97
|
onAddRow?: (() => any) | undefined;
|
|
97
98
|
onRemoveRow?: (() => any) | undefined;
|
|
98
|
-
onSortEnd?: ((oldData: any[], newData: any[], oldIndex: number, newIndex: number) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
100
|
config: import("./type").ListConfig[];
|
|
101
101
|
props: {
|