@das-fed/ui 6.4.0-dev.82 → 6.4.0-dev.84

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/ui",
3
- "version": "6.4.0-dev.82",
3
+ "version": "6.4.0-dev.84",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,7 +26,7 @@
26
26
  "@antv/x6-plugin-snapline": "^2.1.7",
27
27
  "@antv/x6-plugin-transform": "^2.1.8",
28
28
  "@antv/x6-vue-shape": "^2.1.2",
29
- "@das-fed/cli": "6.4.0-dev.82",
29
+ "@das-fed/cli": "6.4.0-dev.84",
30
30
  "@element-plus/icons-vue": "^2.3.1",
31
31
  "@types/lodash": "^4.14.194",
32
32
  "@types/lodash-es": "^4.17.9",
@@ -56,9 +56,9 @@
56
56
  "vue-tsc": "^2.0.29"
57
57
  },
58
58
  "dependencies": {
59
- "@das-fed/ui": "6.4.0-dev.82",
60
- "@das-fed/utils": "6.4.0-dev.82",
61
- "@das-fed/web": "6.4.0-dev.82",
59
+ "@das-fed/ui": "6.4.0-dev.84",
60
+ "@das-fed/utils": "6.4.0-dev.84",
61
+ "@das-fed/web": "6.4.0-dev.84",
62
62
  "@wangeditor/editor": "^5.1.23",
63
63
  "@wangeditor/editor-for-vue": "^5.1.12",
64
64
  "@wangeditor/plugin-upload-attachment": "^1.1.0",
@@ -23,8 +23,8 @@ declare const DasAlertRef: () => import("vue").Ref<({
23
23
  $emit: (event: string, ...args: any[]) => void;
24
24
  $el: any;
25
25
  $options: import("vue").ComponentOptionsBase<Readonly<import("./src/type.js").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
26
- left: string | number;
27
26
  top: string | number;
27
+ left: string | number;
28
28
  banner: boolean;
29
29
  delayOffTime: number;
30
30
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
@@ -48,11 +48,11 @@ declare const DasAlertRef: () => import("vue").Ref<({
48
48
  $nextTick: typeof import("vue").nextTick;
49
49
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
50
50
  } & Readonly<{
51
- left: string | number;
52
51
  top: string | number;
52
+ left: string | number;
53
53
  banner: boolean;
54
54
  delayOffTime: number;
55
- }> & Omit<Readonly<import("./src/type.js").Props> & Readonly<{}>, "left" | "top" | "banner" | "delayOffTime"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
55
+ }> & Omit<Readonly<import("./src/type.js").Props> & Readonly<{}>, "top" | "left" | "banner" | "delayOffTime"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
56
56
  $slots: {
57
57
  description?(_: {}): any;
58
58
  icon?(_: {}): any;
@@ -85,8 +85,8 @@ declare const DasAlertRef: () => import("vue").Ref<({
85
85
  $emit: (event: string, ...args: any[]) => void;
86
86
  $el: any;
87
87
  $options: import("vue").ComponentOptionsBase<Readonly<import("./src/type.js").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
88
- left: string | number;
89
88
  top: string | number;
89
+ left: string | number;
90
90
  banner: boolean;
91
91
  delayOffTime: number;
92
92
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
@@ -110,11 +110,11 @@ declare const DasAlertRef: () => import("vue").Ref<({
110
110
  $nextTick: typeof import("vue").nextTick;
111
111
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
112
112
  } & Readonly<{
113
- left: string | number;
114
113
  top: string | number;
114
+ left: string | number;
115
115
  banner: boolean;
116
116
  delayOffTime: number;
117
- }> & Omit<Readonly<import("./src/type.js").Props> & Readonly<{}>, "left" | "top" | "banner" | "delayOffTime"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
117
+ }> & Omit<Readonly<import("./src/type.js").Props> & Readonly<{}>, "top" | "left" | "banner" | "delayOffTime"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
118
118
  $slots: {
119
119
  description?(_: {}): any;
120
120
  icon?(_: {}): any;
@@ -126,8 +126,8 @@ declare const DasAlertRef: () => import("vue").Ref<({
126
126
  }) | null>;
127
127
  declare const DasAlert: import("@das-fed/utils").SFCWithInstall<{
128
128
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/type.js").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
129
- left: string | number;
130
129
  top: string | number;
130
+ left: string | number;
131
131
  banner: boolean;
132
132
  delayOffTime: number;
133
133
  }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
@@ -138,8 +138,8 @@ declare const DasAlert: import("@das-fed/utils").SFCWithInstall<{
138
138
  M: {};
139
139
  Defaults: {};
140
140
  }, Readonly<import("./src/type.js").Props> & Readonly<{}>, {}, {}, {}, {}, {
141
- left: string | number;
142
141
  top: string | number;
142
+ left: string | number;
143
143
  banner: boolean;
144
144
  delayOffTime: number;
145
145
  }>;
@@ -147,8 +147,8 @@ declare const DasAlert: import("@das-fed/utils").SFCWithInstall<{
147
147
  __isTeleport?: never;
148
148
  __isSuspense?: never;
149
149
  } & import("vue").ComponentOptionsBase<Readonly<import("./src/type.js").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
150
- left: string | number;
151
150
  top: string | number;
151
+ left: string | number;
152
152
  banner: boolean;
153
153
  delayOffTime: number;
154
154
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -1,8 +1,8 @@
1
1
  import 'ant-design-vue/es/alert/style/css';
2
2
  import type { Props } from './type';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
4
- left: string | number;
5
4
  top: string | number;
5
+ left: string | number;
6
6
  banner: boolean;
7
7
  delayOffTime: number;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -55,8 +55,8 @@ declare const DasAutocompleteRef: () => import("vue").Ref<({
55
55
  size: "default" | "table";
56
56
  mode: "tree" | "list";
57
57
  modelValue: string;
58
- offset: number;
59
58
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
59
+ offset: number;
60
60
  popperOptions: Record<string, any>;
61
61
  width: number | string;
62
62
  isView: boolean;
@@ -90,8 +90,8 @@ declare const DasAutocompleteRef: () => import("vue").Ref<({
90
90
  size: "default" | "table";
91
91
  mode: "tree" | "list";
92
92
  modelValue: string;
93
- offset: number;
94
93
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
94
+ offset: number;
95
95
  popperOptions: Record<string, any>;
96
96
  width: number | string;
97
97
  isView: boolean;
@@ -107,7 +107,7 @@ declare const DasAutocompleteRef: () => import("vue").Ref<({
107
107
  onChange?: ((val: string) => any) | undefined;
108
108
  "onUpdate:path"?: ((val: any) => any) | undefined;
109
109
  "onNode-click"?: ((val: any) => any) | undefined;
110
- }>, "size" | "mode" | "modelValue" | "offset" | "placement" | "popperOptions" | "width" | "isView" | "options" | "showFullPath" | "fieldNames" | "maxCount" | "treeOptions" | "showInputDom"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
110
+ }>, "size" | "mode" | "modelValue" | "placement" | "offset" | "popperOptions" | "width" | "isView" | "options" | "showFullPath" | "fieldNames" | "maxCount" | "treeOptions" | "showInputDom"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
111
111
  $slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>>;
112
112
  }) | null, ({
113
113
  $: import("vue").ComponentInternalInstance;
@@ -165,8 +165,8 @@ declare const DasAutocompleteRef: () => import("vue").Ref<({
165
165
  size: "default" | "table";
166
166
  mode: "tree" | "list";
167
167
  modelValue: string;
168
- offset: number;
169
168
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
169
+ offset: number;
170
170
  popperOptions: Record<string, any>;
171
171
  width: number | string;
172
172
  isView: boolean;
@@ -200,8 +200,8 @@ declare const DasAutocompleteRef: () => import("vue").Ref<({
200
200
  size: "default" | "table";
201
201
  mode: "tree" | "list";
202
202
  modelValue: string;
203
- offset: number;
204
203
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
204
+ offset: number;
205
205
  popperOptions: Record<string, any>;
206
206
  width: number | string;
207
207
  isView: boolean;
@@ -217,7 +217,7 @@ declare const DasAutocompleteRef: () => import("vue").Ref<({
217
217
  onChange?: ((val: string) => any) | undefined;
218
218
  "onUpdate:path"?: ((val: any) => any) | undefined;
219
219
  "onNode-click"?: ((val: any) => any) | undefined;
220
- }>, "size" | "mode" | "modelValue" | "offset" | "placement" | "popperOptions" | "width" | "isView" | "options" | "showFullPath" | "fieldNames" | "maxCount" | "treeOptions" | "showInputDom"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
220
+ }>, "size" | "mode" | "modelValue" | "placement" | "offset" | "popperOptions" | "width" | "isView" | "options" | "showFullPath" | "fieldNames" | "maxCount" | "treeOptions" | "showInputDom"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
221
221
  $slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>>;
222
222
  }) | null>;
223
223
  declare const DasAutocomplete: import("@das-fed/utils").SFCWithInstall<{
@@ -237,8 +237,8 @@ declare const DasAutocomplete: import("@das-fed/utils").SFCWithInstall<{
237
237
  size: "default" | "table";
238
238
  mode: "tree" | "list";
239
239
  modelValue: string;
240
- offset: number;
241
240
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
241
+ offset: number;
242
242
  popperOptions: Record<string, any>;
243
243
  width: number | string;
244
244
  isView: boolean;
@@ -265,8 +265,8 @@ declare const DasAutocomplete: import("@das-fed/utils").SFCWithInstall<{
265
265
  size: "default" | "table";
266
266
  mode: "tree" | "list";
267
267
  modelValue: string;
268
- offset: number;
269
268
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
269
+ offset: number;
270
270
  popperOptions: Record<string, any>;
271
271
  width: number | string;
272
272
  isView: boolean;
@@ -296,8 +296,8 @@ declare const DasAutocomplete: import("@das-fed/utils").SFCWithInstall<{
296
296
  size: "default" | "table";
297
297
  mode: "tree" | "list";
298
298
  modelValue: string;
299
- offset: number;
300
299
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
300
+ offset: number;
301
301
  popperOptions: Record<string, any>;
302
302
  width: number | string;
303
303
  isView: boolean;
@@ -3357,8 +3357,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
3357
3357
  size: "default" | "table";
3358
3358
  mode: "tree" | "list";
3359
3359
  modelValue: string;
3360
- offset: number;
3361
3360
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
3361
+ offset: number;
3362
3362
  popperOptions: Record<string, any>;
3363
3363
  width: number | string;
3364
3364
  isView: boolean;
@@ -1,70 +1,70 @@
1
1
  import '@das-fed/ui/packages/components/image-upload/style.css';
2
- import { withInstall as V } from "@das-fed/utils/with-install/index";
3
- import { i18n as N, t as x, setI18nRule as j } from "@das-fed/web/packages/i18n/index";
4
- import { getVar as y, setThemeRule as D } from "@das-fed/web/packages/theme/index";
5
- import { computed as b, defineComponent as $, openBlock as E, createElementBlock as R, createCommentVNode as w, withDirectives as k, createVNode as m, unref as a, normalizeClass as F, withCtx as g, createElementVNode as C, toDisplayString as A, vShow as z, createTextVNode as W } from "vue";
6
- import { UploadDragger as K, Upload as P } from "ant-design-vue";
2
+ import { withInstall as D } from "@das-fed/utils/with-install/index";
3
+ import { i18n as S, t as k, setI18nRule as $ } from "@das-fed/web/packages/i18n/index";
4
+ import { getVar as b, setThemeRule as E } from "@das-fed/web/packages/theme/index";
5
+ import { computed as A, defineComponent as R, openBlock as F, createElementBlock as W, createCommentVNode as I, withDirectives as w, createVNode as m, unref as a, normalizeClass as K, withCtx as g, createElementVNode as h, toDisplayString as z, vShow as N, createTextVNode as P } from "vue";
6
+ import { UploadDragger as H, Upload as O } from "ant-design-vue";
7
7
  import "ant-design-vue/es/upload/style/css";
8
- import { DasSpin as H } from "@das-fed/ui/packages/components/spin/index";
9
- import { DasButton as O } from "@das-fed/ui/packages/components/button/index";
10
- import { DasIconAddto as q } from "@das-fed/ui/packages/icons/addto/index";
11
- import { DasIconWarning as G } from "@das-fed/ui/packages/icons/warning/index";
12
- import { DasMessage as S } from "@das-fed/ui/packages/components/message/index";
13
- import { useModelValue as J } from "@das-fed/utils/vue";
8
+ import { DasSpin as q } from "@das-fed/ui/packages/components/spin/index";
9
+ import { DasButton as G } from "@das-fed/ui/packages/components/button/index";
10
+ import { DasIconAddto as J } from "@das-fed/ui/packages/icons/addto/index";
11
+ import { DasIconWarning as L } from "@das-fed/ui/packages/icons/warning/index";
12
+ import { DasMessage as T } from "@das-fed/ui/packages/components/message/index";
13
+ import { useModelValue as Q } from "@das-fed/utils/vue";
14
14
  import "@das-fed/ui/packages/global/theme";
15
- const L = () => ({ size2B: (t) => {
15
+ const X = () => ({ size2B: (t) => {
16
16
  isNaN(Number(t)) ? t = t.toString() : t = t + "M";
17
- const s = Number(t.slice(0, -1)), u = t[t.length - 1].toUpperCase(), i = 1024, f = {
18
- M: i * i,
19
- K: i,
17
+ const i = Number(t.slice(0, -1)), n = t[t.length - 1].toUpperCase(), s = 1024, f = {
18
+ M: s * s,
19
+ K: s,
20
20
  B: 1
21
21
  };
22
- return { finalSize: s * f[u], sizeText: t };
23
- } }), Q = (o, t) => {
24
- const s = J(o, "status"), { size2B: u } = L(), i = b(() => {
25
- var r;
26
- let e = o.accept ? (r = o.accept) == null ? void 0 : r.split(",") : [];
27
- return e.includes("image/jpg") && !e.includes("image/jpeg") && e.push("image/jpeg"), e.includes(".jpg") && !e.includes(".jpeg") && e.push(".jpeg"), o.acceptVideo && e.push("video/*"), o.acceptAudio && e.push("audio/*"), e.join(",");
28
- }), f = b(() => s.value === "uploading"), h = b(() => s.value === "error");
29
- return { isAccept: i, uploadStatus: s, loading: f, errored: h, beforeupload: (e) => {
30
- var c;
22
+ return { finalSize: i * f[n], sizeText: t };
23
+ } }), Y = (o, t) => {
24
+ const i = Q(o, "status"), { size2B: n } = X(), s = [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".mpeg", ".webm"], f = [".mp3", ".wav", ".aac", ".flac", ".ogg", ".alff", ".wma", ".m4a"], r = A(() => {
25
+ var d;
26
+ let e = o.accept ? (d = o.accept) == null ? void 0 : d.split(",") : [];
27
+ return e.includes("image/jpg") && !e.includes("image/jpeg") && e.push("image/jpeg"), e.includes(".jpg") && !e.includes(".jpeg") && e.push(".jpeg"), o.acceptVideo && (e = [...e, ...s]), o.acceptAudio && (e = [...e, ...f]), e.join(",");
28
+ }), C = A(() => i.value === "uploading"), y = A(() => i.value === "error");
29
+ return { isAccept: r, uploadStatus: i, loading: C, errored: y, beforeupload: (e) => {
30
+ var x;
31
31
  if (o.maxSize) {
32
- const { finalSize: l, sizeText: n } = u(o.maxSize);
33
- if (e.size > l) {
34
- const v = N(
32
+ const { finalSize: c, sizeText: u } = n(o.maxSize);
33
+ if (e.size > c) {
34
+ const v = S(
35
35
  "das-ui-import-upload-key3",
36
- n,
37
- ((c = i.value) == null ? void 0 : c.toUpperCase().replaceAll(".", "").replaceAll(",", "、")) ?? ""
36
+ u,
37
+ ((x = r.value) == null ? void 0 : x.toUpperCase().replaceAll(".", "").replaceAll(",", "、")) ?? ""
38
38
  ).value, p = o.errorMessage || v;
39
- return S.warning(p), t("update:status", "normal"), s.value = "normal", !1;
39
+ return T.warning(p), t("update:status", "normal"), i.value = "normal", !1;
40
40
  }
41
41
  }
42
- const r = () => (s.value = "uploading", t("update:status", "uploading"), t("image-upload", e), !1);
42
+ const d = () => (i.value = "uploading", t("update:status", "uploading"), t("image-upload", e), !1);
43
43
  if (o.customCheck) {
44
- const l = o.customCheck(e);
45
- if (l instanceof Promise)
46
- return new Promise(async (n, v) => {
44
+ const c = o.customCheck(e);
45
+ if (c instanceof Promise)
46
+ return new Promise(async (u, v) => {
47
47
  let p;
48
48
  try {
49
- p = await l.then();
49
+ p = await c.then();
50
50
  } catch {
51
51
  p = !1;
52
52
  }
53
- p ? r() : v(!1);
53
+ p ? d() : v(!1);
54
54
  });
55
- if (!l)
56
- return t("update:status", "normal"), s.value = "normal", !1;
57
- } else if (i.value) {
58
- const l = i.value.split(",").filter((d) => d.trim().startsWith(".")).map((d) => d.trim()), n = i.value.split(",").filter((d) => !d.trim().startsWith(".")).map((d) => d.trim()), v = e.name.match(/\.(.+)$/), p = l.includes(v[0]);
59
- let I = n.includes("image/*") && e.type.split("/")[0].trim() === "image", T = n.includes("video/*") && e.type.split("/")[0].trim() === "video", U = n.includes("audio/*") && e.type.split("/")[0].trim() === "audio", B = n.includes(e.type) || I || T || U;
60
- if (!p && !B) {
61
- const d = o.acceptAudio || o.acceptVideo ? "das-ui-import-upload-key2" : "das-ui-import-upload-key1", M = o.errorMessage || N(d, i.value.toUpperCase().replaceAll(".", "").replaceAll(",", "、")).value;
62
- return S.warning(M), !1;
55
+ if (!c)
56
+ return t("update:status", "normal"), i.value = "normal", !1;
57
+ } else if (r.value) {
58
+ const c = r.value.split(",").filter((l) => l.trim().startsWith(".")).map((l) => l.trim()), u = r.value.split(",").filter((l) => !l.trim().startsWith(".")).map((l) => l.trim()), v = e.name.match(/\.(.+)$/), p = c.includes(v[0]);
59
+ let U = u.includes("image/*") && e.type.split("/")[0].trim() === "image", V = u.includes("video/*") && e.type.split("/")[0].trim() === "video", B = u.includes("audio/*") && e.type.split("/")[0].trim() === "audio", M = u.includes(e.type) || U || V || B;
60
+ if (!p && !M) {
61
+ const l = o.acceptAudio || o.acceptVideo ? "das-ui-import-upload-key2" : "das-ui-import-upload-key1", j = o.errorMessage || S(l, r.value.toUpperCase().replaceAll(".", "").replaceAll(",", "、")).value;
62
+ return T.warning(j), !1;
63
63
  }
64
64
  }
65
- return r();
65
+ return d();
66
66
  } };
67
- }, X = { class: "das-ui-image-upload" }, Y = { class: "das-ui-image-upload-dragger-context" }, Z = { class: "text" }, ee = { class: "das-ui-image-upload-error-container" }, ae = { class: "tips-container" }, oe = { class: "text" }, te = /* @__PURE__ */ $({
67
+ }, Z = { class: "das-ui-image-upload" }, ee = { class: "das-ui-image-upload-dragger-context" }, ae = { class: "text" }, oe = { class: "das-ui-image-upload-error-container" }, te = { class: "tips-container" }, ie = { class: "text" }, se = /* @__PURE__ */ R({
68
68
  __name: "Index",
69
69
  props: {
70
70
  maxCount: { default: 1 },
@@ -80,34 +80,34 @@ const L = () => ({ size2B: (t) => {
80
80
  },
81
81
  emits: ["update:status", "image-upload"],
82
82
  setup(o, { emit: t }) {
83
- const s = o, u = t, { isAccept: i, uploadStatus: f, loading: h, errored: _, beforeupload: e } = Q(s, u);
84
- return (r, c) => (E(), R("div", X, [
85
- w(" 图片上传组件 "),
86
- k(m(a(H), {
87
- class: F([{ "loading-border": a(h) }]),
83
+ const i = o, n = t, { isAccept: s, uploadStatus: f, loading: r, errored: C, beforeupload: y } = Y(i, n);
84
+ return (_, e) => (F(), W("div", Z, [
85
+ I(" 图片上传组件 "),
86
+ w(m(a(q), {
87
+ class: K([{ "loading-border": a(r) }]),
88
88
  type: "component",
89
- spinning: a(h)
89
+ spinning: a(r)
90
90
  }, {
91
91
  default: g(() => [
92
- m(a(K), {
92
+ m(a(H), {
93
93
  class: "das-ui-image-upload-dragger",
94
- accept: a(i),
95
- "max-count": r.maxCount,
96
- "before-upload": a(e)
94
+ accept: a(s),
95
+ "max-count": _.maxCount,
96
+ "before-upload": a(y)
97
97
  }, {
98
- itemRender: g(({ file: l, actions: n }) => c[0] || (c[0] = [])),
98
+ itemRender: g(({ file: d, actions: x }) => e[0] || (e[0] = [])),
99
99
  default: g(() => [
100
- k(C(
100
+ w(h(
101
101
  "div",
102
- Y,
102
+ ee,
103
103
  [
104
- m(a(q), {
105
- iconColor: a(y)("--das-ui-color-secondary")
104
+ m(a(J), {
105
+ iconColor: a(b)("--das-ui-color-secondary")
106
106
  }, null, 8, ["iconColor"]),
107
- C(
107
+ h(
108
108
  "div",
109
- Z,
110
- A(r.message || a(x)("das-image-upload-text")),
109
+ ae,
110
+ z(_.message || a(k)("das-image-upload-text")),
111
111
  1
112
112
  /* TEXT */
113
113
  )
@@ -115,7 +115,7 @@ const L = () => ({ size2B: (t) => {
115
115
  512
116
116
  /* NEED_PATCH */
117
117
  ), [
118
- [z, a(f) === "normal"]
118
+ [N, a(f) === "normal"]
119
119
  ])
120
120
  ]),
121
121
  _: 1
@@ -125,40 +125,40 @@ const L = () => ({ size2B: (t) => {
125
125
  _: 1
126
126
  /* STABLE */
127
127
  }, 8, ["class", "spinning"]), [
128
- [z, !a(_)]
128
+ [N, !a(C)]
129
129
  ]),
130
- w(" 错误状态 "),
131
- k(C(
130
+ I(" 错误状态 "),
131
+ w(h(
132
132
  "div",
133
- ee,
133
+ oe,
134
134
  [
135
- C("div", ae, [
136
- m(a(G), {
137
- iconColor: a(y)("--das-ui-color-danger"),
135
+ h("div", te, [
136
+ m(a(L), {
137
+ iconColor: a(b)("--das-ui-color-danger"),
138
138
  size: "small"
139
139
  }, null, 8, ["iconColor"]),
140
- C(
140
+ h(
141
141
  "div",
142
- oe,
143
- A(a(x)("das-image-upload-fail")),
142
+ ie,
143
+ z(a(k)("das-image-upload-fail")),
144
144
  1
145
145
  /* TEXT */
146
146
  )
147
147
  ]),
148
- m(a(P), {
149
- accept: a(i),
150
- "before-upload": a(e),
151
- "max-count": r.maxCount
148
+ m(a(O), {
149
+ accept: a(s),
150
+ "before-upload": a(y),
151
+ "max-count": _.maxCount
152
152
  }, {
153
- itemRender: g(({ file: l, actions: n }) => c[1] || (c[1] = [])),
153
+ itemRender: g(({ file: d, actions: x }) => e[1] || (e[1] = [])),
154
154
  default: g(() => [
155
- m(a(O), {
155
+ m(a(G), {
156
156
  "btn-type": "primary-text",
157
157
  block: ""
158
158
  }, {
159
159
  default: g(() => [
160
- W(
161
- A(a(x)("das-image-upload-reupload")),
160
+ P(
161
+ z(a(k)("das-image-upload-reupload")),
162
162
  1
163
163
  /* TEXT */
164
164
  )
@@ -174,16 +174,16 @@ const L = () => ({ size2B: (t) => {
174
174
  512
175
175
  /* NEED_PATCH */
176
176
  ), [
177
- [z, a(_)]
177
+ [N, a(C)]
178
178
  ])
179
179
  ]));
180
180
  }
181
- }), ie = (o, t) => {
182
- const s = o.__vccOpts || o;
183
- for (const [u, i] of t)
184
- s[u] = i;
185
- return s;
186
- }, se = /* @__PURE__ */ ie(te, [["__scopeId", "data-v-5821ad3e"]]), re = {
181
+ }), re = (o, t) => {
182
+ const i = o.__vccOpts || o;
183
+ for (const [n, s] of t)
184
+ i[n] = s;
185
+ return i;
186
+ }, le = /* @__PURE__ */ re(se, [["__scopeId", "data-v-5821ad3e"]]), ne = {
187
187
  "das-ui-import-upload-key1": {
188
188
  "zh-CN": "上传的图片格式只能是$0",
189
189
  en: "The uploaded picture format can only be $0",
@@ -202,16 +202,16 @@ const L = () => ({ size2B: (t) => {
202
202
  "das-image-upload-text": { "zh-CN": "上传图片", en: "Upload Image", _appCode: "framework" },
203
203
  "das-image-upload-reupload": { "zh-CN": "重新上传", en: "Re-upload", _appCode: "framework" },
204
204
  "das-image-upload-fail": { "zh-CN": "上传失败", en: "Uploaded Failed", _appCode: "framework" }
205
- }, le = {
205
+ }, de = {
206
206
  "--das-ui-image-upload-bgcolor": { light: "#FAFAFA" },
207
207
  "--das-ui-image-upload-border-color": { light: "#E5E5E5" },
208
- "--das-ui-image-upload-bgcolor-hover": { light: y("--das-ui-color-primary-level1") },
208
+ "--das-ui-image-upload-bgcolor-hover": { light: b("--das-ui-color-primary-level1") },
209
209
  "--das-ui-image-upload-border-color-hover": { light: "#5582F3" },
210
- "--das-ui-image-upload-border-color-error": { light: y("--das-ui-color-danger-level2") }
211
- }, xe = V(se);
212
- j(re);
213
- D(le);
210
+ "--das-ui-image-upload-border-color-error": { light: b("--das-ui-color-danger-level2") }
211
+ }, ke = D(le);
212
+ $(ne);
213
+ E(de);
214
214
  export {
215
- xe as DasImageUpload,
216
- xe as default
215
+ ke as DasImageUpload,
216
+ ke as default
217
217
  };