@aplus-frontend/ui 0.2.0-beta.2 → 0.2.0-beta.4
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/es/index.mjs +59 -52
- package/es/src/ap-field/interface.d.ts +6 -0
- package/es/src/ap-field/select/index.vue.mjs +14 -13
- package/es/src/ap-form/item/index.vue.mjs +58 -58
- package/es/src/ap-form/item-text/style/css.d.ts +0 -1
- package/es/src/ap-form/item-text/style/css.js +1 -1
- package/es/src/ap-form/item-text/style/index.d.ts +0 -1
- package/es/src/ap-form/item-text/style/index.js +1 -1
- package/es/src/ap-form/item-text-group/style/css.d.ts +0 -0
- package/es/src/ap-form/item-text-group/style/css.js +1 -0
- package/es/src/ap-form/item-text-group/style/index.d.ts +0 -0
- package/es/src/ap-form/item-text-group/style/index.js +1 -0
- package/es/src/ap-form/items/interface.d.ts +11 -0
- package/es/src/ap-form/items/text/group.vue.d.ts +42 -0
- package/es/src/ap-form/items/text/group.vue.mjs +4 -0
- package/es/src/ap-form/items/text/group.vue2.mjs +26 -0
- package/es/src/ap-form/items/text/index.d.ts +3 -1
- package/es/src/ap-form/items/text/index.mjs +10 -6
- package/es/src/ap-table/ap-table.vue.d.ts +2 -0
- package/es/src/ap-table/ap-table.vue.mjs +28 -27
- package/es/src/ap-table/constants.d.ts +20 -30
- package/es/src/ap-table/utils.d.ts +35 -3
- package/es/src/ap-table/utils.mjs +69 -69
- package/es/src/ap-upload/apUpload.vue.d.ts +17 -1
- package/es/src/ap-upload/apUpload.vue.mjs +54 -42
- package/es/src/ap-upload/apUploadTypes.d.ts +6 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +98 -90
- package/es/src/ap-upload/components/Picture.vue.d.ts +4 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +146 -138
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +84 -86
- package/es/src/business/ap-label/constans.d.ts +1 -1
- package/es/src/business/ap-label/interface.d.ts +2 -2
- package/es/src/business/ap-summary/ap-summary.vue.d.ts +30 -0
- package/es/src/business/ap-summary/ap-summary.vue.mjs +4 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +68 -0
- package/es/src/business/ap-summary/index.d.ts +95 -0
- package/es/src/business/ap-summary/index.mjs +13 -0
- package/es/src/business/ap-summary/interface.d.ts +41 -0
- package/es/src/business/ap-summary/interface.mjs +1 -0
- package/es/src/business/ap-summary/style/css.d.ts +0 -0
- package/es/src/business/ap-summary/style/css.js +1 -0
- package/es/src/business/ap-summary/style/index.d.ts +0 -0
- package/es/src/business/ap-summary/style/index.js +1 -0
- package/es/src/business/ap-summary/utils.d.ts +12 -0
- package/es/src/business/ap-summary/utils.mjs +36 -0
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +16 -14
- package/es/src/editable-table/utils.mjs +51 -51
- package/es/src/hooks/useControllableValue.d.ts +8 -3
- package/es/src/hooks/useControllableValue.mjs +18 -13
- package/es/src/index.mjs +59 -52
- package/es/src/path-map.mjs +3 -1
- package/es/src/utils/slot.d.ts +9 -1
- package/es/src/utils/slot.mjs +10 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +6 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-text/style/css.d.ts +0 -1
- package/lib/src/ap-form/item-text/style/css.js +1 -1
- package/lib/src/ap-form/item-text/style/index.d.ts +0 -1
- package/lib/src/ap-form/item-text/style/index.js +1 -1
- package/lib/src/ap-form/item-text-group/style/css.d.ts +0 -0
- package/lib/src/ap-form/item-text-group/style/css.js +1 -0
- package/lib/src/ap-form/item-text-group/style/index.d.ts +0 -0
- package/lib/src/ap-form/item-text-group/style/index.js +1 -0
- package/lib/src/ap-form/items/interface.d.ts +11 -0
- package/lib/src/ap-form/items/text/group.vue.d.ts +42 -0
- package/lib/src/ap-form/items/text/group.vue.js +1 -0
- package/lib/src/ap-form/items/text/group.vue2.js +1 -0
- package/lib/src/ap-form/items/text/index.d.ts +3 -1
- package/lib/src/ap-form/items/text/index.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +20 -30
- package/lib/src/ap-table/utils.d.ts +35 -3
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +17 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/apUploadTypes.d.ts +6 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -2
- package/lib/src/business/ap-summary/ap-summary.vue.d.ts +30 -0
- package/lib/src/business/ap-summary/ap-summary.vue.js +1 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -0
- package/lib/src/business/ap-summary/index.d.ts +95 -0
- package/lib/src/business/ap-summary/index.js +1 -0
- package/lib/src/business/ap-summary/interface.d.ts +41 -0
- package/lib/src/business/ap-summary/interface.js +1 -0
- package/lib/src/business/ap-summary/style/css.d.ts +0 -0
- package/lib/src/business/ap-summary/style/css.js +1 -0
- package/lib/src/business/ap-summary/style/index.d.ts +0 -0
- package/lib/src/business/ap-summary/style/index.js +1 -0
- package/lib/src/business/ap-summary/utils.d.ts +12 -0
- package/lib/src/business/ap-summary/utils.js +1 -0
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.d.ts +8 -3
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/slot.d.ts +9 -1
- package/lib/src/utils/slot.js +1 -1
- package/package.json +4 -4
|
@@ -1,75 +1,83 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as K, inject as u, ref as R, watch as Q, nextTick as W, openBlock as h, createElementBlock as g, normalizeClass as X, unref as i, createElementVNode as d, Fragment as Y, renderList as Z, withDirectives as F, createVNode as C, createCommentVNode as $, vShow as ee, toDisplayString as U } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import { getPath as
|
|
4
|
-
import { CloseOutlined as
|
|
5
|
-
import { useOss as
|
|
6
|
-
import { fileMatchesAccept as
|
|
7
|
-
import { message as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
const
|
|
3
|
+
import { getPath as te, getName as ne, getReturnData as y } from "../utils/returnData.mjs";
|
|
4
|
+
import { CloseOutlined as ae, PlusOutlined as se } from "@ant-design/icons-vue";
|
|
5
|
+
import { useOss as oe, getOssInstance as T } from "../hooks/useOss.mjs";
|
|
6
|
+
import { fileMatchesAccept as ie, getAcceptText as ce } from "../utils/accept.mjs";
|
|
7
|
+
import { message as m, Progress as ue } from "ant-design-vue";
|
|
8
|
+
import { useLocale as re } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const pe = ["accept"], de = { class: "picture-context" }, me = { class: "picture-item-box" }, fe = ["src"], he = { class: "picture-item-shadow" }, ge = ["onClick"], ve = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "picture-item-uploading"
|
|
13
|
-
},
|
|
13
|
+
}, xe = { class: "picture-title" }, _e = { key: 0 }, ye = { key: 1 }, Ie = /* @__PURE__ */ K({
|
|
14
14
|
__name: "Picture",
|
|
15
|
-
setup(
|
|
16
|
-
const { t: r } =
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
|
|
15
|
+
setup(we, { expose: D }) {
|
|
16
|
+
const { t: r } = re(), { b: A } = le("ap-upload-picture"), { put: E } = oe(), O = u("theme"), B = u("dirName"), w = u("accept") || "image/*", k = u("maxSize") ?? 5, N = u("title"), l = u("maxCount") ?? 10, v = u("uploadingCount"), P = u("beforeUpload"), S = u("customRequest"), b = u("getOssAccess"), _ = R(null), c = u("value"), x = u("needName");
|
|
17
|
+
let s = R([]);
|
|
18
|
+
const f = [];
|
|
19
|
+
Q(
|
|
20
20
|
() => c == null ? void 0 : c.value,
|
|
21
21
|
async function(e) {
|
|
22
22
|
var a;
|
|
23
|
-
|
|
24
|
-
const n = [];
|
|
25
|
-
for (let t of e) {
|
|
26
|
-
const s = F(v, t), m = ee(v, t), I = await D(b), G = await I.getSignatureUrl(s), H = {
|
|
27
|
-
...new File([t], m, {}),
|
|
28
|
-
uid: `${(/* @__PURE__ */ new Date()).getTime()}-${Math.random()}`,
|
|
29
|
-
thumbUrl: G,
|
|
30
|
-
status: "success",
|
|
31
|
-
percent: 100,
|
|
32
|
-
path: s
|
|
33
|
-
};
|
|
34
|
-
n.push(H), I.destroy();
|
|
35
|
-
}
|
|
36
|
-
if (l && n.length > l) {
|
|
37
|
-
d.warning(
|
|
38
|
-
r("ap.apUpload.fileInitializationException", {
|
|
39
|
-
maxCount: l
|
|
40
|
-
})
|
|
41
|
-
);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
n.forEach((t) => {
|
|
45
|
-
o.value.push(t), _.push({
|
|
46
|
-
uid: t.uid,
|
|
47
|
-
path: t.path
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}
|
|
23
|
+
!((a = s == null ? void 0 : s.value) != null && a.length) && e && z(e);
|
|
51
24
|
},
|
|
52
25
|
{ immediate: !0 }
|
|
53
26
|
);
|
|
54
|
-
function
|
|
27
|
+
function z(e) {
|
|
28
|
+
if (!e) {
|
|
29
|
+
c.value = void 0, f.splice(0, f.length), s.value = [];
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
W(async () => {
|
|
33
|
+
const a = [];
|
|
34
|
+
for (let t of e) {
|
|
35
|
+
const n = te(x, t), o = ne(x, t), p = await T(b), H = await p.getSignatureUrl(n), J = {
|
|
36
|
+
...new File([t], o, {}),
|
|
37
|
+
uid: `${(/* @__PURE__ */ new Date()).getTime()}-${Math.random()}`,
|
|
38
|
+
thumbUrl: H,
|
|
39
|
+
status: "success",
|
|
40
|
+
percent: 100,
|
|
41
|
+
path: n
|
|
42
|
+
};
|
|
43
|
+
a.push(J), p.destroy();
|
|
44
|
+
}
|
|
45
|
+
if (l && a.length > l) {
|
|
46
|
+
m.warning(
|
|
47
|
+
r("ap.apUpload.fileInitializationException", {
|
|
48
|
+
maxCount: l
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
a.forEach((t) => {
|
|
54
|
+
s.value.push(t), f.push({
|
|
55
|
+
uid: t.uid,
|
|
56
|
+
path: t.path
|
|
57
|
+
});
|
|
58
|
+
}), c.value = e;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
D({ setValue: z });
|
|
62
|
+
function q() {
|
|
55
63
|
var e;
|
|
56
|
-
(e =
|
|
64
|
+
(e = _.value) == null || e.click();
|
|
57
65
|
}
|
|
58
|
-
function
|
|
66
|
+
function L(e) {
|
|
59
67
|
const a = e.target;
|
|
60
|
-
|
|
68
|
+
M(a == null ? void 0 : a.files);
|
|
61
69
|
}
|
|
62
|
-
function
|
|
70
|
+
function M(e) {
|
|
63
71
|
if (e != null && e.length)
|
|
64
72
|
for (let a = 0; a < e.length; a++)
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
V(e[a]);
|
|
74
|
+
_.value && (_.value.value = "");
|
|
67
75
|
}
|
|
68
|
-
let
|
|
69
|
-
function
|
|
70
|
-
if (l && l > 1 &&
|
|
71
|
-
return clearTimeout(
|
|
72
|
-
|
|
76
|
+
let I;
|
|
77
|
+
function V(e) {
|
|
78
|
+
if (l && l > 1 && s.value.length >= l)
|
|
79
|
+
return clearTimeout(I), I = setTimeout(() => {
|
|
80
|
+
m.warning(
|
|
73
81
|
r("ap.apUpload.maxUploadPicture", { maxCount: l })
|
|
74
82
|
);
|
|
75
83
|
}), !1;
|
|
@@ -78,134 +86,134 @@ const re = ["accept"], le = { class: "picture-context" }, pe = { class: "picture
|
|
|
78
86
|
return !1;
|
|
79
87
|
} else {
|
|
80
88
|
if (e.size > k * 1024 * 1024)
|
|
81
|
-
return
|
|
89
|
+
return m.warning(
|
|
82
90
|
r("ap.apUpload.maxUploadFileSize", { maxSize: k })
|
|
83
91
|
), !1;
|
|
84
|
-
if (!/image\/\w+/.test(e.type) || !
|
|
85
|
-
return
|
|
92
|
+
if (!/image\/\w+/.test(e.type) || !ie(e, w))
|
|
93
|
+
return m.warning(r("ap.apUpload.pictureFormatNotSupported")), !1;
|
|
86
94
|
}
|
|
87
95
|
const a = new FileReader();
|
|
88
96
|
a.readAsDataURL(e), a.onload = function() {
|
|
89
|
-
const
|
|
97
|
+
const t = {
|
|
90
98
|
...e,
|
|
91
99
|
uid: `${(/* @__PURE__ */ new Date()).getTime()}-${Math.random()}`,
|
|
92
100
|
thumbUrl: this.result,
|
|
93
101
|
status: "uploading",
|
|
94
102
|
percent: 0
|
|
95
103
|
};
|
|
96
|
-
|
|
104
|
+
j(t, e);
|
|
97
105
|
}, a.onerror = function() {
|
|
98
|
-
|
|
106
|
+
m.warning(r("ap.apUpload.imageParsingFailed"));
|
|
99
107
|
};
|
|
100
108
|
}
|
|
101
|
-
async function
|
|
102
|
-
if (
|
|
109
|
+
async function j(e, a) {
|
|
110
|
+
if (v.value++, typeof S == "function") {
|
|
103
111
|
S({
|
|
104
|
-
onProgress: (
|
|
105
|
-
const
|
|
106
|
-
|
|
112
|
+
onProgress: (t) => {
|
|
113
|
+
const n = s.value.find((o) => o.uid === e.uid);
|
|
114
|
+
n && (n.percent = t);
|
|
107
115
|
},
|
|
108
|
-
onError: (
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
(
|
|
116
|
+
onError: (t) => {
|
|
117
|
+
m.warning(t || r("ap.apUpload.networkAnomaly"));
|
|
118
|
+
const n = s.value.findIndex(
|
|
119
|
+
(o) => o.uid === e.uid
|
|
112
120
|
);
|
|
113
|
-
|
|
121
|
+
n > -1 && s.value.splice(n, 1), v.value--;
|
|
114
122
|
},
|
|
115
|
-
onSuccess: (
|
|
116
|
-
const
|
|
117
|
-
|
|
123
|
+
onSuccess: (t) => {
|
|
124
|
+
const n = s.value.find((o) => o.uid === e.uid);
|
|
125
|
+
n && (n.status = "success", n.path = t), c.value ? c.value.push(y(x, t, a.name)) : c.value = [y(x, t, a.name)], f.push({
|
|
118
126
|
uid: e.uid,
|
|
119
|
-
path:
|
|
120
|
-
}),
|
|
127
|
+
path: t
|
|
128
|
+
}), v.value--;
|
|
121
129
|
},
|
|
122
130
|
file: a
|
|
123
131
|
});
|
|
124
132
|
return;
|
|
125
133
|
}
|
|
126
134
|
try {
|
|
127
|
-
const
|
|
128
|
-
e.oss =
|
|
135
|
+
const t = await T(b);
|
|
136
|
+
e.oss = t, s.value.push(e), E({
|
|
129
137
|
file: a,
|
|
130
|
-
dirName:
|
|
131
|
-
oss:
|
|
132
|
-
successCallBack(
|
|
133
|
-
const
|
|
134
|
-
|
|
138
|
+
dirName: B,
|
|
139
|
+
oss: t,
|
|
140
|
+
successCallBack(n) {
|
|
141
|
+
const o = s.value.find((p) => p.uid === e.uid);
|
|
142
|
+
o && (o.status = "success", o.path = n), c.value ? c.value.push(y(x, n, a.name)) : c.value = [y(x, n, a.name)], f.push({
|
|
135
143
|
uid: e.uid,
|
|
136
|
-
path:
|
|
137
|
-
}),
|
|
144
|
+
path: n
|
|
145
|
+
}), v.value--;
|
|
138
146
|
},
|
|
139
|
-
errorCallBack(
|
|
140
|
-
|
|
141
|
-
const
|
|
142
|
-
(
|
|
147
|
+
errorCallBack(n) {
|
|
148
|
+
m.warning(n || r("ap.apUpload.networkAnomaly"));
|
|
149
|
+
const o = s.value.findIndex(
|
|
150
|
+
(p) => p.uid === e.uid
|
|
143
151
|
);
|
|
144
|
-
|
|
152
|
+
o > -1 && s.value.splice(o, 1), v.value--;
|
|
145
153
|
},
|
|
146
|
-
progressCallBack(
|
|
147
|
-
const
|
|
148
|
-
|
|
154
|
+
progressCallBack(n) {
|
|
155
|
+
const o = s.value.find((p) => p.uid === e.uid);
|
|
156
|
+
o && (o.percent = n);
|
|
149
157
|
}
|
|
150
158
|
});
|
|
151
|
-
} catch (
|
|
152
|
-
|
|
153
|
-
typeof (
|
|
159
|
+
} catch (t) {
|
|
160
|
+
m.warning(
|
|
161
|
+
typeof (t == null ? void 0 : t.message) == "string" ? t.message : r("ap.apUpload.networkAnomaly")
|
|
154
162
|
);
|
|
155
|
-
const
|
|
156
|
-
|
|
163
|
+
const n = s.value.findIndex((o) => o.uid === e.uid);
|
|
164
|
+
n > -1 && s.value.splice(n, 1), v.value--;
|
|
157
165
|
}
|
|
158
166
|
}
|
|
159
|
-
function
|
|
160
|
-
var
|
|
167
|
+
function G(e) {
|
|
168
|
+
var t;
|
|
161
169
|
if (e.path) {
|
|
162
170
|
if (Array.isArray(c.value)) {
|
|
163
|
-
const
|
|
164
|
-
(
|
|
171
|
+
const n = f.findIndex(
|
|
172
|
+
(o) => o.uid === e.uid
|
|
165
173
|
);
|
|
166
|
-
|
|
174
|
+
n >= 0 && (c == null || c.value.splice(n, 1), f.splice(n, 1)), c.value.length === 0 && (c.value = void 0);
|
|
167
175
|
}
|
|
168
176
|
} else
|
|
169
|
-
(
|
|
170
|
-
const a =
|
|
171
|
-
(
|
|
177
|
+
(t = e == null ? void 0 : e.oss) == null || t.pauseUpload();
|
|
178
|
+
const a = s.value.findIndex(
|
|
179
|
+
(n) => n.uid === e.uid
|
|
172
180
|
);
|
|
173
|
-
return
|
|
181
|
+
return s.value.splice(a, 1), Promise.resolve(!0);
|
|
174
182
|
}
|
|
175
|
-
return (e, a) => (
|
|
176
|
-
class:
|
|
183
|
+
return (e, a) => (h(), g("div", {
|
|
184
|
+
class: X({
|
|
177
185
|
[i(A)()]: !0,
|
|
178
186
|
[i(A)("admin")]: i(O) === "admin"
|
|
179
187
|
})
|
|
180
188
|
}, [
|
|
181
|
-
|
|
189
|
+
d("input", {
|
|
182
190
|
style: { display: "none" },
|
|
183
191
|
type: "file",
|
|
184
192
|
ref_key: "fileRef",
|
|
185
|
-
ref:
|
|
186
|
-
accept: i(
|
|
187
|
-
onChange:
|
|
188
|
-
}, null, 40,
|
|
189
|
-
|
|
190
|
-
(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
ref: _,
|
|
194
|
+
accept: i(w),
|
|
195
|
+
onChange: L
|
|
196
|
+
}, null, 40, pe),
|
|
197
|
+
d("div", de, [
|
|
198
|
+
(h(!0), g(Y, null, Z(i(s), (t) => (h(), g("div", {
|
|
199
|
+
key: t.uid,
|
|
200
|
+
class: "picture-item"
|
|
193
201
|
}, [
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
src:
|
|
202
|
+
d("div", me, [
|
|
203
|
+
d("img", {
|
|
204
|
+
src: t.thumbUrl,
|
|
197
205
|
alt: ""
|
|
198
|
-
}, null, 8,
|
|
199
|
-
|
|
200
|
-
|
|
206
|
+
}, null, 8, fe),
|
|
207
|
+
F(d("div", he, [
|
|
208
|
+
d("div", {
|
|
201
209
|
class: "picture-item-close",
|
|
202
|
-
onClick: (
|
|
210
|
+
onClick: (n) => G(t)
|
|
203
211
|
}, [
|
|
204
|
-
C(i(
|
|
205
|
-
], 8,
|
|
206
|
-
|
|
207
|
-
C(i(
|
|
208
|
-
percent:
|
|
212
|
+
C(i(ae))
|
|
213
|
+
], 8, ge),
|
|
214
|
+
t.status === "uploading" ? (h(), g("div", ve, [
|
|
215
|
+
C(i(ue), {
|
|
216
|
+
percent: t.percent,
|
|
209
217
|
strokeColor: "#ffffff",
|
|
210
218
|
trailColor: "rgba(255, 255, 255, 0.3)",
|
|
211
219
|
size: 4,
|
|
@@ -213,21 +221,21 @@ const re = ["accept"], le = { class: "picture-context" }, pe = { class: "picture
|
|
|
213
221
|
}, null, 8, ["percent"])
|
|
214
222
|
])) : $("", !0)
|
|
215
223
|
], 512), [
|
|
216
|
-
[
|
|
224
|
+
[ee, t.status === "uploading"]
|
|
217
225
|
])
|
|
218
226
|
])
|
|
219
227
|
]))), 128)),
|
|
220
|
-
i(l) === void 0 || i(
|
|
228
|
+
i(l) === void 0 || i(s).length < i(l) ? (h(), g("div", {
|
|
221
229
|
key: 0,
|
|
222
230
|
class: "picture-upload",
|
|
223
|
-
onClick:
|
|
231
|
+
onClick: q
|
|
224
232
|
}, [
|
|
225
|
-
C(i(
|
|
226
|
-
|
|
233
|
+
C(i(se)),
|
|
234
|
+
d("div", null, U(i(r)("ap.apUpload.update")), 1)
|
|
227
235
|
])) : $("", !0)
|
|
228
236
|
]),
|
|
229
|
-
|
|
230
|
-
i(N) ? (
|
|
237
|
+
d("div", xe, [
|
|
238
|
+
i(N) ? (h(), g("div", _e, U(i(N)), 1)) : (h(), g("div", ye, U(`${i(r)("ap.apUpload.supportExtension")}:${i(ce)(i(w))},${i(r)(
|
|
231
239
|
"ap.apUpload.maxUploadPictureSize",
|
|
232
240
|
{ maxSize: i(k) }
|
|
233
241
|
)}`), 1))
|
|
@@ -236,5 +244,5 @@ const re = ["accept"], le = { class: "picture-context" }, pe = { class: "picture
|
|
|
236
244
|
}
|
|
237
245
|
});
|
|
238
246
|
export {
|
|
239
|
-
|
|
247
|
+
Ie as default
|
|
240
248
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare function setValue(val?: string | Record<string, any>): void;
|
|
3
|
+
declare const _default: DefineComponent<{}, {
|
|
4
|
+
setValue: typeof setValue;
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
3
6
|
export default _default;
|