@aplus-frontend/ui 7.12.3 → 7.12.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/ag-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ag-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.mjs +33 -31
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-table-modal/index.d.ts +5 -17
- package/es/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +38 -30
- package/es/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +101 -101
- package/es/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/batch-input-group/index.vue.mjs +67 -72
- package/es/src/business/batch-input-group/interface.d.ts +3 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +65 -43
- package/es/src/business/batch-input-group/style/index.mjs +9 -9
- package/es/src/check-card/style/index.mjs +1 -1
- package/es/src/config-provider/config-provider.mjs +33 -32
- package/es/src/config-provider/hooks/use-global-config.mjs +40 -37
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/cssinjs/utils.d.ts +1 -0
- package/es/src/utils/cssinjs/utils.mjs +9 -9
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ag-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +3 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -3
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/cssinjs/utils.d.ts +1 -0
- package/lib/src/utils/cssinjs/utils.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { UploadOutlined as
|
|
3
|
-
import { message as p, Upload as
|
|
4
|
-
import { IconApAdLineDownload as
|
|
5
|
-
import { ApFilePreview as
|
|
1
|
+
import { defineComponent as oe, inject as s, ref as te, watch as se, nextTick as ae, createElementBlock as N, openBlock as y, normalizeClass as ne, unref as a, createVNode as k, withCtx as U, createElementVNode as D, createTextVNode as re, toDisplayString as L, withModifiers as ie, createCommentVNode as le, createBlock as ce, resolveDynamicComponent as ue } from "vue";
|
|
2
|
+
import { UploadOutlined as pe } from "@ant-design/icons-vue";
|
|
3
|
+
import { message as p, Upload as de, Button as me } from "@aplus-frontend/antdv";
|
|
4
|
+
import { IconApAdLineDownload as fe } from "@aplus-frontend/icon";
|
|
5
|
+
import { ApFilePreview as ge } from "../../ap-file-preview/index.mjs";
|
|
6
6
|
import "../../../config-provider/index.mjs";
|
|
7
|
-
import { useOss as
|
|
8
|
-
import
|
|
9
|
-
import { fileMatchesAccept as ve, getAcceptText as
|
|
10
|
-
import { getPath as
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
import { useLocale as
|
|
13
|
-
import { useNamespace as
|
|
14
|
-
const
|
|
7
|
+
import { useOss as we, getOssInstance as S } from "../hooks/useOss.mjs";
|
|
8
|
+
import he from "../style/index.mjs";
|
|
9
|
+
import { fileMatchesAccept as ve, getAcceptText as xe } from "../utils/accept.mjs";
|
|
10
|
+
import { getPath as ye, getName as ke, getReturnData as z } from "../utils/returnData.mjs";
|
|
11
|
+
import { useGlobalConfig as be } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
import { useLocale as Ce } from "../../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useNamespace as Ne } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 }, qe = /* @__PURE__ */ oe({
|
|
15
15
|
__name: "MultipleFile",
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
16
|
+
setup(Fe, { expose: B }) {
|
|
17
|
+
const E = be(
|
|
18
18
|
"downloadCenterTriggerConfig"
|
|
19
|
-
), { t: i } =
|
|
20
|
-
|
|
19
|
+
), { t: i } = Ce(), { b: O } = Ne("ap-upload-multiple-file"), V = he("ap-upload"), { put: q } = we(), j = s("dirName"), $ = s("baseDirName"), b = s("accept") || "*", _ = s("maxSize") ?? 500, G = s("title") || i("ap.apUpload.uploadFile"), f = s("subTitle"), l = s("maxCount") ?? 10, d = s("uploadingCount"), F = s("beforeUpload"), A = s("customRequest"), g = s("getOssAccess"), W = s("maxSizeErrorMsg"), H = s("maxCountErrorMsg"), J = s("acceptErrorMsg"), P = s("onRemove"), C = s("showUploadErrorMsg"), T = s("bucket"), K = s("showDownload") ?? !0, w = s("showPreview") ?? !0, r = s("value"), c = [], h = s("needName"), m = te(null);
|
|
20
|
+
se(
|
|
21
21
|
() => r?.value,
|
|
22
22
|
function(e) {
|
|
23
|
-
!
|
|
23
|
+
!m?.value?.fileList?.length && e && I(e);
|
|
24
24
|
},
|
|
25
25
|
{ immediate: !0 }
|
|
26
26
|
);
|
|
27
27
|
function I(e) {
|
|
28
28
|
if (!e) {
|
|
29
|
-
u = [],
|
|
29
|
+
u = [], m.value.fileList = [], r.value = void 0, c.splice(0, c.length);
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
ae(() => {
|
|
33
33
|
const o = e.map((t) => {
|
|
34
|
-
const
|
|
34
|
+
const n = ye(h, t), M = ke(h, t), x = new File(
|
|
35
35
|
[t],
|
|
36
36
|
M,
|
|
37
37
|
{}
|
|
38
38
|
);
|
|
39
|
-
return
|
|
39
|
+
return x.response = n, x.uid = n, x.status = "done", x;
|
|
40
40
|
});
|
|
41
41
|
if (l && o.length > l) {
|
|
42
42
|
p.warning(
|
|
@@ -51,44 +51,44 @@ const Ce = { class: "multiple-file-context" }, Ne = { key: 0 }, Ue = { key: 1 },
|
|
|
51
51
|
uid: t.uid,
|
|
52
52
|
path: t.response
|
|
53
53
|
});
|
|
54
|
-
}),
|
|
54
|
+
}), m.value.fileList = o, r.value = e;
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
B({ setValue: I });
|
|
58
58
|
let u = [], R;
|
|
59
|
-
function
|
|
59
|
+
function v(e) {
|
|
60
60
|
setTimeout(() => {
|
|
61
|
-
const o =
|
|
61
|
+
const o = m.value.fileList.findIndex(
|
|
62
62
|
(t) => t.uid === e.uid
|
|
63
63
|
);
|
|
64
|
-
o >= 0 &&
|
|
64
|
+
o >= 0 && m.value.fileList.splice(o, 1);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
async function
|
|
67
|
+
async function Q(e) {
|
|
68
68
|
if (l && l > 1 && u.length >= l)
|
|
69
69
|
return clearTimeout(R), R = setTimeout(() => {
|
|
70
70
|
p.warning(
|
|
71
|
-
|
|
71
|
+
H || i("ap.apUpload.maxUploadFiles", {
|
|
72
72
|
maxCount: l
|
|
73
73
|
})
|
|
74
74
|
);
|
|
75
|
-
}),
|
|
76
|
-
if (e.size >
|
|
75
|
+
}), v(e), !1;
|
|
76
|
+
if (e.size > _ * 1024 * 1024)
|
|
77
77
|
return p.warning(
|
|
78
|
-
|
|
79
|
-
maxSize:
|
|
78
|
+
W || i("ap.apUpload.maxUploadFileSize", {
|
|
79
|
+
maxSize: _
|
|
80
80
|
})
|
|
81
|
-
),
|
|
82
|
-
if (!ve(e,
|
|
81
|
+
), v(e), !1;
|
|
82
|
+
if (!ve(e, b))
|
|
83
83
|
return p.warning(
|
|
84
|
-
|
|
85
|
-
),
|
|
84
|
+
J || i("ap.apUpload.fileFormatNotSupported")
|
|
85
|
+
), v(e), !1;
|
|
86
86
|
if (typeof F == "function" && await F(e) === !1)
|
|
87
|
-
return
|
|
87
|
+
return v(e), !1;
|
|
88
88
|
l && l === 1 && (u = [], r.value = void 0), u.push(e);
|
|
89
89
|
}
|
|
90
|
-
async function
|
|
91
|
-
if (
|
|
90
|
+
async function X(e) {
|
|
91
|
+
if (d.value++, typeof A == "function") {
|
|
92
92
|
A({
|
|
93
93
|
onProgress: (o) => {
|
|
94
94
|
setTimeout(() => {
|
|
@@ -98,23 +98,23 @@ const Ce = { class: "multiple-file-context" }, Ne = { key: 0 }, Ue = { key: 1 },
|
|
|
98
98
|
});
|
|
99
99
|
},
|
|
100
100
|
onError: (o) => {
|
|
101
|
-
|
|
101
|
+
C && p.warning(o || i("ap.apUpload.networkAnomaly")), setTimeout(() => {
|
|
102
102
|
e.onError({
|
|
103
103
|
name: o,
|
|
104
104
|
message: o
|
|
105
105
|
});
|
|
106
|
-
}),
|
|
106
|
+
}), d.value--;
|
|
107
107
|
},
|
|
108
108
|
onSuccess: (o) => {
|
|
109
109
|
setTimeout(() => {
|
|
110
110
|
e.onSuccess(o);
|
|
111
111
|
}), r.value = [
|
|
112
112
|
...r.value || [],
|
|
113
|
-
|
|
113
|
+
z(h, o, e.file.name)
|
|
114
114
|
], c.push({
|
|
115
115
|
uid: e.file.uid,
|
|
116
116
|
path: o
|
|
117
|
-
}),
|
|
117
|
+
}), d.value--;
|
|
118
118
|
},
|
|
119
119
|
file: e.file
|
|
120
120
|
});
|
|
@@ -122,46 +122,46 @@ const Ce = { class: "multiple-file-context" }, Ne = { key: 0 }, Ue = { key: 1 },
|
|
|
122
122
|
}
|
|
123
123
|
try {
|
|
124
124
|
const o = await (T ? g(T) : g()), t = await S(async () => o);
|
|
125
|
-
e.file.oss = t,
|
|
125
|
+
e.file.oss = t, q({
|
|
126
126
|
file: e.file,
|
|
127
|
-
dirName:
|
|
127
|
+
dirName: j,
|
|
128
128
|
oss: t,
|
|
129
|
-
successCallBack(
|
|
130
|
-
e.onSuccess(
|
|
129
|
+
successCallBack(n) {
|
|
130
|
+
e.onSuccess(n), r.value = [
|
|
131
131
|
...r.value || [],
|
|
132
|
-
|
|
132
|
+
z(h, n, e.file.name)
|
|
133
133
|
], c.push({
|
|
134
134
|
uid: e.file.uid,
|
|
135
|
-
path:
|
|
136
|
-
}),
|
|
135
|
+
path: n
|
|
136
|
+
}), d.value--;
|
|
137
137
|
},
|
|
138
|
-
errorCallBack(
|
|
139
|
-
|
|
140
|
-
name:
|
|
141
|
-
message:
|
|
142
|
-
}),
|
|
138
|
+
errorCallBack(n) {
|
|
139
|
+
C && p.warning(n || i("ap.apUpload.networkAnomaly")), e.onError({
|
|
140
|
+
name: n,
|
|
141
|
+
message: n
|
|
142
|
+
}), d.value--;
|
|
143
143
|
},
|
|
144
|
-
progressCallBack(
|
|
144
|
+
progressCallBack(n) {
|
|
145
145
|
e.onProgress({
|
|
146
|
-
percent:
|
|
146
|
+
percent: n
|
|
147
147
|
});
|
|
148
148
|
},
|
|
149
|
-
baseDirName:
|
|
149
|
+
baseDirName: $,
|
|
150
150
|
bucket: o?.bucket
|
|
151
151
|
});
|
|
152
152
|
} catch (o) {
|
|
153
|
-
|
|
153
|
+
C && p.warning(
|
|
154
154
|
typeof o?.message == "string" ? o.message : i("ap.apUpload.networkAnomaly")
|
|
155
155
|
), e.onError({
|
|
156
156
|
name: o?.message || i("ap.apUpload.networkAnomaly"),
|
|
157
157
|
message: o?.message || i("ap.apUpload.networkAnomaly")
|
|
158
|
-
}),
|
|
158
|
+
}), d.value--;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
161
|
+
function Y(e) {
|
|
162
|
+
if (P && P?.(e), e.response) {
|
|
163
163
|
if (Array.isArray(r.value)) {
|
|
164
|
-
const t = c.findIndex((
|
|
164
|
+
const t = c.findIndex((n) => n.uid === e.uid);
|
|
165
165
|
t >= 0 && (r?.value.splice(t, 1), c.splice(t, 1)), r.value.length === 0 && (r.value = void 0);
|
|
166
166
|
}
|
|
167
167
|
} else
|
|
@@ -171,86 +171,86 @@ const Ce = { class: "multiple-file-context" }, Ne = { key: 0 }, Ue = { key: 1 },
|
|
|
171
171
|
);
|
|
172
172
|
return u.splice(o, 1), Promise.resolve(!0);
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
174
|
+
const Z = async (e) => {
|
|
175
|
+
if (E.value?.trigger) {
|
|
176
176
|
let o = [e].map((t) => ({
|
|
177
177
|
objectName: t.response,
|
|
178
178
|
fileName: t.name
|
|
179
179
|
}));
|
|
180
|
-
|
|
180
|
+
E.value?.trigger?.(o);
|
|
181
181
|
} else {
|
|
182
|
-
const o = e.response?.match(/^([^:]+):(.*)$/), t = o?.[1],
|
|
182
|
+
const o = e.response?.match(/^([^:]+):(.*)$/), t = o?.[1], n = o?.[2] ?? e.response;
|
|
183
183
|
(await S(
|
|
184
184
|
() => t ? g?.(t) : g?.()
|
|
185
185
|
)).downloadFile([
|
|
186
186
|
{
|
|
187
|
-
path:
|
|
187
|
+
path: n,
|
|
188
188
|
fileName: e.name
|
|
189
189
|
}
|
|
190
190
|
]);
|
|
191
191
|
}
|
|
192
|
-
},
|
|
193
|
-
|
|
192
|
+
}, ee = (e) => {
|
|
193
|
+
(typeof w == "function" ? w(e) : w) && ge.createFilePreviewModal({
|
|
194
194
|
src: e.response,
|
|
195
195
|
fileName: e.name
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
return (e, o) => (
|
|
199
|
-
class:
|
|
200
|
-
[
|
|
201
|
-
[
|
|
198
|
+
return (e, o) => (y(), N("div", {
|
|
199
|
+
class: ne({
|
|
200
|
+
[a(O)()]: !0,
|
|
201
|
+
[a(V) ?? ""]: !0
|
|
202
202
|
})
|
|
203
203
|
}, [
|
|
204
|
-
|
|
204
|
+
k(a(de), {
|
|
205
205
|
ref_key: "uploadRef",
|
|
206
|
-
ref:
|
|
207
|
-
accept:
|
|
206
|
+
ref: m,
|
|
207
|
+
accept: a(b),
|
|
208
208
|
multiple: "",
|
|
209
|
-
"max-count":
|
|
209
|
+
"max-count": a(l),
|
|
210
210
|
progress: {
|
|
211
211
|
strokeWidth: 3,
|
|
212
212
|
showInfo: !1,
|
|
213
213
|
strokeColor: "#0070FF"
|
|
214
214
|
},
|
|
215
|
-
"before-upload":
|
|
216
|
-
"custom-request":
|
|
215
|
+
"before-upload": Q,
|
|
216
|
+
"custom-request": X,
|
|
217
217
|
"show-upload-list": {
|
|
218
|
-
showDownloadIcon:
|
|
218
|
+
showDownloadIcon: a(K),
|
|
219
219
|
showRemoveIcon: !0,
|
|
220
|
-
showPreviewIcon:
|
|
220
|
+
showPreviewIcon: a(w)
|
|
221
221
|
},
|
|
222
|
-
onPreview:
|
|
223
|
-
onRemove:
|
|
224
|
-
onDownload:
|
|
222
|
+
onPreview: ee,
|
|
223
|
+
onRemove: Y,
|
|
224
|
+
onDownload: Z
|
|
225
225
|
}, {
|
|
226
|
-
downloadIcon:
|
|
227
|
-
|
|
226
|
+
downloadIcon: U(() => [
|
|
227
|
+
k(a(fe), { class: "anticon anticon-vertical-align-bottom" })
|
|
228
228
|
]),
|
|
229
|
-
default:
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
default:
|
|
233
|
-
|
|
234
|
-
|
|
229
|
+
default: U(() => [
|
|
230
|
+
D("div", Ue, [
|
|
231
|
+
k(a(me), { class: "file-btn" }, {
|
|
232
|
+
default: U(() => [
|
|
233
|
+
k(a(pe)),
|
|
234
|
+
re(" " + L(a(G)), 1)
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
237
|
}),
|
|
238
|
-
|
|
238
|
+
D("div", {
|
|
239
239
|
class: "sub-title",
|
|
240
|
-
onClick: o[0] || (o[0] =
|
|
240
|
+
onClick: o[0] || (o[0] = ie(() => {
|
|
241
241
|
}, ["stop"]))
|
|
242
242
|
}, [
|
|
243
|
-
typeof
|
|
244
|
-
(
|
|
245
|
-
])) :
|
|
243
|
+
typeof a(f) == "string" ? (y(), N("div", Ee, L(a(f) || `${a(i)("ap.apUpload.supportExtension")}:${a(xe)(a(b))}`), 1)) : a(f) ? (y(), N("div", _e, [
|
|
244
|
+
(y(), ce(ue(a(f))))
|
|
245
|
+
])) : le("", !0)
|
|
246
246
|
])
|
|
247
247
|
])
|
|
248
248
|
]),
|
|
249
249
|
_: 1
|
|
250
|
-
}, 8, ["accept", "max-count"])
|
|
250
|
+
}, 8, ["accept", "max-count", "show-upload-list"])
|
|
251
251
|
], 2));
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
export {
|
|
255
|
-
|
|
255
|
+
qe as default
|
|
256
256
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
|
|
@@ -45,7 +45,9 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
|
|
|
45
45
|
(e: "remove", key: string | number): void;
|
|
46
46
|
(e: "highlight", keys: (string | number)[]): void;
|
|
47
47
|
};
|
|
48
|
-
}>) => VNode
|
|
48
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}> & {
|
|
49
51
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
52
|
};
|
|
51
53
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -109,7 +110,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
109
110
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
110
111
|
readonly initialValues?: Recordable | undefined;
|
|
111
112
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
112
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
113
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
113
114
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
114
115
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
115
116
|
$attrs: {
|
|
@@ -242,7 +243,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
242
243
|
};
|
|
243
244
|
lg: {
|
|
244
245
|
type: PropType<string | number | ColSize>;
|
|
245
|
-
default: string | number |
|
|
246
|
+
default: string | number | ColSize;
|
|
246
247
|
};
|
|
247
248
|
xl: {
|
|
248
249
|
type: PropType<string | number | ColSize>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ViewListModel } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
|
|
@@ -110,7 +111,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
110
111
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
111
112
|
readonly initialValues?: Recordable | undefined;
|
|
112
113
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
113
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
114
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
114
115
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
115
116
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
116
117
|
$attrs: {
|