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