@das-fed/ui 6.4.0-dev.101 → 6.4.0-dev.103
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 +6 -6
- package/packages/business-components/area-phone-select/index.js +15 -15
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/style.css +1 -1
- package/packages/business-components/area-phone-select/style.css.gz +0 -0
- package/packages/business-components/device-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +40 -44
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +129 -129
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/components/date-picker/index.js +3 -3
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/image-upload/index.js +28 -27
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +59 -59
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +31 -30
- 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 +41 -40
- 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-number/index.js +68 -67
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/progress/index.js +3 -3
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/search-form/index.js +156 -156
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/table/index.js +1852 -1840
- 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/tag/index.js +1 -1
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/tag/style.css +1 -1
- package/packages/components/tag/style.css.gz +0 -0
- package/packages/components/tree-table/index.js +68 -68
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/src/App.vue.d.ts +2 -2
- package/packages/components/tree-table/src/type.d.ts +0 -2
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/upload/index.js +49 -48
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.d.ts +10533 -0
- package/packages/components/virtual-tree/index.js +1 -1
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +2079 -0
- package/packages/components/virtual-tree/src/type.d.ts +43 -0
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/upload/style.css';
|
|
2
2
|
import { withInstall as G } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { currentLang as K, t as
|
|
3
|
+
import { currentLang as K, t as g, setI18nRule as P } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { getVar as _, setThemeRule as q } from "@das-fed/web/packages/theme/index";
|
|
5
|
-
import { useAttrs as H, computed as
|
|
5
|
+
import { useAttrs as H, computed as U, defineComponent as J, openBlock as u, createElementBlock as v, Fragment as Q, createVNode as h, unref as o, mergeProps as $, isRef as B, withCtx as p, renderSlot as S, createElementVNode as m, withDirectives as y, createTextVNode as C, toDisplayString as s, createCommentVNode as k, createBlock as A, vShow as M, pushScopeId as X, popScopeId as Y } from "vue";
|
|
6
6
|
import { UploadDragger as ee, Upload as oe } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/upload/style/css";
|
|
8
|
-
import { DasButton as
|
|
8
|
+
import { DasButton as E } from "@das-fed/ui/packages/components/button/index";
|
|
9
9
|
import { vDasTooltip as T } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasIconLink as L } from "@das-fed/ui/packages/icons/link/index";
|
|
11
11
|
import { DasIconAddto as te } from "@das-fed/ui/packages/icons/addto/index";
|
|
12
12
|
import { DasAutoRegisterIcon as ae } from "@das-fed/ui/packages/components/icon/index";
|
|
13
13
|
import { DasMessage as le } from "@das-fed/ui/packages/components/message/index";
|
|
14
|
+
import { getFileExtension as re } from "@das-fed/utils/common-tools";
|
|
14
15
|
import { useModelValue as F } from "@das-fed/utils/vue";
|
|
15
16
|
import "@das-fed/ui/packages/global/theme";
|
|
16
|
-
const
|
|
17
|
+
const ie = (t) => {
|
|
17
18
|
const a = ["B", "KB", "M", "G"];
|
|
18
19
|
let c = 0;
|
|
19
20
|
for (; t > 1024; )
|
|
20
21
|
c++, t /= 1024;
|
|
21
22
|
return t = Number(Number(t).toFixed(1)), `${t}${a[c]}`;
|
|
22
|
-
},
|
|
23
|
-
const a = F(t, "modelValue"), c = F(t, "error"), i = F(t, "errorMessage"), z = F(t, "errorFileName"), b = H(), w =
|
|
23
|
+
}, se = (t, d) => {
|
|
24
|
+
const a = F(t, "modelValue"), c = F(t, "error"), i = F(t, "errorMessage"), z = F(t, "errorFileName"), b = H(), w = U(() => !b.multiple && t.maxCount === 1), N = U(() => w.value && a.value.length ? "none" : "block");
|
|
24
25
|
return {
|
|
25
26
|
fileList: a,
|
|
26
27
|
error: c,
|
|
@@ -29,14 +30,14 @@ const re = (t) => {
|
|
|
29
30
|
uploadDiaplay: N,
|
|
30
31
|
beforeupload: (e) => {
|
|
31
32
|
if (t.accept) {
|
|
32
|
-
const r = t.accept.split(",").filter((n) => n.trim().startsWith(".")).map((n) => n.trim()), l = t.accept.split(",").filter((n) => !n.trim().startsWith(".")).map((n) => n.trim()), f = e.name
|
|
33
|
+
const r = t.accept.split(",").filter((n) => n.trim().startsWith(".")).map((n) => n.trim()), l = t.accept.split(",").filter((n) => !n.trim().startsWith(".")).map((n) => n.trim()), f = re(e.name), x = r.includes(f);
|
|
33
34
|
let R = l.includes("image/*") && e.type.split("/")[0].trim() === "image", O = l.includes("video/*") && e.type.split("/")[0].trim() === "video", j = l.includes("audio/*") && e.type.split("/")[0].trim() === "audio", Z = l.includes(e.type) || R || O || j;
|
|
34
|
-
if (!
|
|
35
|
-
const n = K.value === "zh-CN" ? "、" : ", ", W = t.errorMessage ||
|
|
35
|
+
if (!x && !Z) {
|
|
36
|
+
const n = K.value === "zh-CN" ? "、" : ", ", W = t.errorMessage || g("das-ui-upload-accpet", t.accept.toUpperCase().replaceAll(".", "").replaceAll(",", n));
|
|
36
37
|
return le.warning(W), !1;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
return e.sizeText =
|
|
40
|
+
return e.sizeText = ie(e.size), b.multiple ? (a.value = a.value.map((r) => r.originFileObj ? r.originFileObj : r), t.maxCount > a.value.length && a.value.push(e)) : a.value = [e], d("update:modelValue", a.value), d("file-upload", e), !1;
|
|
40
41
|
},
|
|
41
42
|
errorFiledownload: () => {
|
|
42
43
|
d("errorFile-download");
|
|
@@ -45,13 +46,13 @@ const re = (t) => {
|
|
|
45
46
|
a.value = a.value.filter((l) => l.uid != r.uid), a.value.length > 0 && (a.value = a.value.map((l) => l.originFileObj ? l.originFileObj : l)), d("update:modelValue", a.value), e.remove();
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
},
|
|
49
|
+
}, de = (t) => (X("data-v-11f92fa2"), t = t(), Y(), t), ne = { class: "das-ui-upload" }, ue = { class: "das-ui-upload-dragger-context" }, ce = { class: "text" }, pe = { class: "file-list" }, me = { class: "filename" }, fe = {
|
|
49
50
|
key: 0,
|
|
50
51
|
class: "file-size"
|
|
51
|
-
},
|
|
52
|
+
}, ve = { class: "error-container" }, ge = { class: "file-list" }, he = { class: "filename error-file-name" }, Ce = {
|
|
52
53
|
key: 0,
|
|
53
54
|
class: "file-size"
|
|
54
|
-
},
|
|
55
|
+
}, be = { class: "error-message" }, we = /* @__PURE__ */ de(() => /* @__PURE__ */ m("div", null, null, -1)), ye = /* @__PURE__ */ J({
|
|
55
56
|
__name: "Index",
|
|
56
57
|
props: {
|
|
57
58
|
draggle: { type: Boolean, default: !0 },
|
|
@@ -79,12 +80,12 @@ const re = (t) => {
|
|
|
79
80
|
errorFileName: w,
|
|
80
81
|
uploadDiaplay: N,
|
|
81
82
|
beforeupload: V,
|
|
82
|
-
errorFiledownload:
|
|
83
|
-
removeFileEvent:
|
|
84
|
-
} =
|
|
85
|
-
return (e, r) => (u(), v("div",
|
|
83
|
+
errorFiledownload: I,
|
|
84
|
+
removeFileEvent: D
|
|
85
|
+
} = se(a, c);
|
|
86
|
+
return (e, r) => (u(), v("div", ne, [
|
|
86
87
|
e.draggle ? (u(), v(Q, { key: 0 }, [
|
|
87
|
-
|
|
88
|
+
h(o(ee), $({
|
|
88
89
|
class: "das-ui-upload-dragger",
|
|
89
90
|
fileList: o(i),
|
|
90
91
|
"onUpdate:fileList": r[0] || (r[0] = (l) => B(i) ? i.value = l : null),
|
|
@@ -99,26 +100,26 @@ const re = (t) => {
|
|
|
99
100
|
file: l,
|
|
100
101
|
actions: f
|
|
101
102
|
}, () => [
|
|
102
|
-
m("div",
|
|
103
|
-
|
|
103
|
+
m("div", pe, [
|
|
104
|
+
h(o(L), {
|
|
104
105
|
iconColor: o(_)("--das-ui-color-secondary"),
|
|
105
106
|
size: "medium"
|
|
106
107
|
}, null, 8, ["iconColor"]),
|
|
107
|
-
y((u(), v("div",
|
|
108
|
+
y((u(), v("div", me, [
|
|
108
109
|
C(s(l.name), 1)
|
|
109
110
|
])), [
|
|
110
111
|
[o(T)]
|
|
111
112
|
]),
|
|
112
|
-
e.showSize ? (u(), v("div",
|
|
113
|
-
e.isView ? k("", !0) : (u(), A(o(
|
|
113
|
+
e.showSize ? (u(), v("div", fe, "(" + s(l.sizeText) + ")", 1)) : k("", !0),
|
|
114
|
+
e.isView ? k("", !0) : (u(), A(o(E), {
|
|
114
115
|
key: 1,
|
|
115
116
|
"btn-type": "primary-text",
|
|
116
117
|
size: "large",
|
|
117
|
-
onClick: (
|
|
118
|
+
onClick: (x) => o(D)(f, l),
|
|
118
119
|
block: ""
|
|
119
120
|
}, {
|
|
120
121
|
default: p(() => [
|
|
121
|
-
C(s(o(
|
|
122
|
+
C(s(o(g)("das-upload-delete")), 1)
|
|
122
123
|
]),
|
|
123
124
|
_: 2
|
|
124
125
|
}, 1032, ["onClick"]))
|
|
@@ -126,18 +127,18 @@ const re = (t) => {
|
|
|
126
127
|
], !0)
|
|
127
128
|
]),
|
|
128
129
|
default: p(() => [
|
|
129
|
-
m("div",
|
|
130
|
-
|
|
130
|
+
m("div", ue, [
|
|
131
|
+
h(o(te), {
|
|
131
132
|
iconColor: o(_)("--das-ui-color-secondary")
|
|
132
133
|
}, null, 8, ["iconColor"]),
|
|
133
|
-
m("div",
|
|
134
|
+
m("div", ce, s(o(g)("das-upload-text")), 1)
|
|
134
135
|
])
|
|
135
136
|
]),
|
|
136
137
|
_: 3
|
|
137
138
|
}, 16, ["fileList", "max-count", "accept", "style", "before-upload", "disabled"]),
|
|
138
|
-
y(m("div",
|
|
139
|
-
y(m("div",
|
|
140
|
-
|
|
139
|
+
y(m("div", ve, [
|
|
140
|
+
y(m("div", ge, [
|
|
141
|
+
h(o(L), {
|
|
141
142
|
iconColor: o(_)("--das-ui-color-secondary"),
|
|
142
143
|
size: "medium"
|
|
143
144
|
}, null, 8, ["iconColor"]),
|
|
@@ -146,26 +147,26 @@ const re = (t) => {
|
|
|
146
147
|
])), [
|
|
147
148
|
[o(T)]
|
|
148
149
|
]),
|
|
149
|
-
e.showSize ? (u(), v("div",
|
|
150
|
-
|
|
150
|
+
e.showSize ? (u(), v("div", Ce, "(" + s(e.errorFileSize) + ")", 1)) : k("", !0),
|
|
151
|
+
h(o(E), {
|
|
151
152
|
"btn-type": "primary-text",
|
|
152
153
|
block: "",
|
|
153
154
|
size: "large",
|
|
154
|
-
onClick: o(
|
|
155
|
+
onClick: o(I)
|
|
155
156
|
}, {
|
|
156
157
|
default: p(() => [
|
|
157
|
-
C(s(o(
|
|
158
|
+
C(s(o(g)("das-upload-download")), 1)
|
|
158
159
|
]),
|
|
159
160
|
_: 1
|
|
160
161
|
}, 8, ["onClick"])
|
|
161
162
|
], 512), [
|
|
162
163
|
[M, o(w)]
|
|
163
164
|
]),
|
|
164
|
-
m("div",
|
|
165
|
+
m("div", be, s(o(g)("das-upload-tips")) + s(o(b)), 1)
|
|
165
166
|
], 512), [
|
|
166
167
|
[M, o(z)]
|
|
167
168
|
])
|
|
168
|
-
], 64)) : (u(), A(o(oe),
|
|
169
|
+
], 64)) : (u(), A(o(oe), $({
|
|
169
170
|
key: 1,
|
|
170
171
|
"file-list": o(i),
|
|
171
172
|
"onUpdate:fileList": r[1] || (r[1] = (l) => B(i) ? i.value = l : null),
|
|
@@ -179,18 +180,18 @@ const re = (t) => {
|
|
|
179
180
|
file: l,
|
|
180
181
|
actions: f
|
|
181
182
|
}, () => [
|
|
182
|
-
|
|
183
|
+
we
|
|
183
184
|
], !0)
|
|
184
185
|
]),
|
|
185
186
|
default: p(() => [
|
|
186
187
|
S(e.$slots, "customUpload", {}, () => [
|
|
187
|
-
e.isView ? k("", !0) : (u(), A(o(
|
|
188
|
+
e.isView ? k("", !0) : (u(), A(o(E), {
|
|
188
189
|
key: 0,
|
|
189
190
|
icon: "shangchuan",
|
|
190
191
|
block: ""
|
|
191
192
|
}, {
|
|
192
193
|
default: p(() => [
|
|
193
|
-
C(s(e.btnName || o(
|
|
194
|
+
C(s(e.btnName || o(g)("das-upload-btn-text")), 1)
|
|
194
195
|
]),
|
|
195
196
|
_: 1
|
|
196
197
|
}))
|
|
@@ -200,12 +201,12 @@ const re = (t) => {
|
|
|
200
201
|
}, 16, ["file-list", "accept", "before-upload", "max-count", "disabled"]))
|
|
201
202
|
]));
|
|
202
203
|
}
|
|
203
|
-
}),
|
|
204
|
+
}), ke = (t, d) => {
|
|
204
205
|
const a = t.__vccOpts || t;
|
|
205
206
|
for (const [c, i] of d)
|
|
206
207
|
a[c] = i;
|
|
207
208
|
return a;
|
|
208
|
-
},
|
|
209
|
+
}, Fe = /* @__PURE__ */ ke(ye, [["__scopeId", "data-v-11f92fa2"]]), _e = {
|
|
209
210
|
"das-upload-text": { "zh-CN": "点击或拖拽上传", en: "Click or drag to upload", _appCode: "framework" },
|
|
210
211
|
"das-upload-btn-text": { "zh-CN": "上传文件", en: "Upload File", _appCode: "framework" },
|
|
211
212
|
"das-upload-download": { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
@@ -216,15 +217,15 @@ const re = (t) => {
|
|
|
216
217
|
en: "The uploaded file format can only be $0",
|
|
217
218
|
_appCode: "framework"
|
|
218
219
|
}
|
|
219
|
-
},
|
|
220
|
+
}, ze = {
|
|
220
221
|
"--das-ui-upload-bgcolor": { light: "#FAFAFA" },
|
|
221
222
|
"--das-ui-upload-border-color": { light: "#E5E5E5" },
|
|
222
223
|
"--das-ui-upload-bgcolor-hover": _("--das-ui-color-primary-level1"),
|
|
223
224
|
"--das-ui-upload-border-color-hover": { light: "#5582F3" }
|
|
224
|
-
},
|
|
225
|
-
P(
|
|
226
|
-
q(
|
|
225
|
+
}, Oe = G(Fe);
|
|
226
|
+
P(_e);
|
|
227
|
+
q(ze);
|
|
227
228
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
Oe as DasUpload,
|
|
230
|
+
Oe as default
|
|
230
231
|
};
|
|
Binary file
|