@aplus-frontend/ui 0.4.0 → 0.4.2
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/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/es/src/ap-field/select/index.vue.d.ts +423 -1
- package/es/src/ap-field/select/index.vue.mjs +4 -3
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +77 -75
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2260 -26
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1168 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +444 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/es/src/business/hooks/usePageListApTable.mjs +35 -33
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/lib/src/ap-field/select/index.vue.d.ts +423 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2260 -26
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1168 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +444 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- package/theme/index.css +3 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Button as V, Flex as
|
|
1
|
+
import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s, openBlock as g, createElementBlock as W, Fragment as H, withCtx as F, renderSlot as P, createTextVNode as J, toDisplayString as Q, createElementVNode as X, normalizeStyle as Y, normalizeClass as Z, createBlock as w, resolveDynamicComponent as N, createCommentVNode as ee } from "vue";
|
|
2
|
+
import { Button as V, Flex as te, Space as le, Modal as oe } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { getSingleVNode as
|
|
5
|
+
import { getSingleVNode as ae } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { omit as
|
|
8
|
-
import { useControllableValue as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
13
|
-
function
|
|
14
|
-
return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !
|
|
7
|
+
import { omit as se } from "lodash-unified";
|
|
8
|
+
import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
|
|
9
|
+
import { useLocale as ie } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useGlobalConfig as re } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import de from "../ap-form.vue2.mjs";
|
|
13
|
+
function S(c) {
|
|
14
|
+
return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !D(c);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Me = /* @__PURE__ */ L({
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
19
19
|
layout: {
|
|
@@ -91,54 +91,57 @@ const Se = /* @__PURE__ */ D({
|
|
|
91
91
|
},
|
|
92
92
|
emits: ["update:open"],
|
|
93
93
|
setup(c, {
|
|
94
|
-
expose:
|
|
94
|
+
expose: x,
|
|
95
95
|
emit: _
|
|
96
96
|
}) {
|
|
97
|
-
const o = c,
|
|
97
|
+
const o = c, y = A(), M = _, a = p(), C = p(0), m = p(), i = p(!1), {
|
|
98
98
|
value: R,
|
|
99
99
|
updateValue: f
|
|
100
|
-
} =
|
|
100
|
+
} = ne(o, M, {
|
|
101
101
|
valuePropName: "open",
|
|
102
|
-
defaultValue: !1
|
|
102
|
+
defaultValue: !1,
|
|
103
|
+
beforeUpdateValue(e) {
|
|
104
|
+
return e && (C.value += 1), !0;
|
|
105
|
+
}
|
|
103
106
|
}), {
|
|
104
107
|
t: v
|
|
105
|
-
} =
|
|
108
|
+
} = ie(), U = re("uiMode", "aplus"), {
|
|
106
109
|
b: j,
|
|
107
|
-
e:
|
|
108
|
-
} =
|
|
109
|
-
|
|
110
|
+
e: h
|
|
111
|
+
} = ue("ap-form-modal-form");
|
|
112
|
+
G(() => a.value, (e) => {
|
|
110
113
|
var t;
|
|
111
114
|
e && m.value && ((t = e.setFieldsValue) == null || t.call(e, m.value), m.value = void 0);
|
|
112
115
|
});
|
|
113
|
-
const T =
|
|
116
|
+
const T = ae(y.trigger), B = T ? I(T, {
|
|
114
117
|
onClick: () => {
|
|
115
118
|
f(!0);
|
|
116
119
|
}
|
|
117
|
-
}) : null, O =
|
|
120
|
+
}) : null, O = K(() => {
|
|
118
121
|
var t, l, r, d;
|
|
119
122
|
const e = [];
|
|
120
123
|
if (o.submitter === !1)
|
|
121
124
|
return null;
|
|
122
125
|
if (o.showCancel) {
|
|
123
|
-
let
|
|
126
|
+
let n;
|
|
124
127
|
e.push(u(V, {
|
|
125
128
|
onClick: k,
|
|
126
129
|
disabled: i.value
|
|
127
|
-
},
|
|
128
|
-
default: () => [
|
|
130
|
+
}, S(n = v("ap.common.cancelText")) ? n : {
|
|
131
|
+
default: () => [n]
|
|
129
132
|
}));
|
|
130
133
|
}
|
|
131
|
-
return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V,
|
|
134
|
+
return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, b(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
|
|
132
135
|
key: "reset",
|
|
133
136
|
disabled: i.value,
|
|
134
|
-
onClick:
|
|
137
|
+
onClick: z,
|
|
135
138
|
htmlType: "reset"
|
|
136
139
|
}), {
|
|
137
140
|
default: () => {
|
|
138
|
-
var
|
|
139
|
-
return [((
|
|
141
|
+
var n;
|
|
142
|
+
return [((n = o.submitter) == null ? void 0 : n.resetText) || v("ap.common.resetText")];
|
|
140
143
|
}
|
|
141
|
-
})), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V,
|
|
144
|
+
})), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, b({
|
|
142
145
|
type: "primary",
|
|
143
146
|
key: "submit",
|
|
144
147
|
htmlType: "submit"
|
|
@@ -146,32 +149,33 @@ const Se = /* @__PURE__ */ D({
|
|
|
146
149
|
loading: i.value
|
|
147
150
|
}), {
|
|
148
151
|
default: () => {
|
|
149
|
-
var
|
|
150
|
-
return [((
|
|
152
|
+
var n;
|
|
153
|
+
return [((n = o.submitter) == null ? void 0 : n.submitText) || v("ap.common.okText")];
|
|
151
154
|
}
|
|
152
|
-
})), u(
|
|
155
|
+
})), u(te, {
|
|
153
156
|
justify: "flex-end",
|
|
154
|
-
|
|
157
|
+
key: s(C),
|
|
158
|
+
class: [h("footer"), s(U) === "admin" ? h("footer-admin") : null]
|
|
155
159
|
}, {
|
|
156
|
-
default: () => [
|
|
160
|
+
default: () => [y.submitter ? y.submitter(e) : u(le, null, S(e) ? e : {
|
|
157
161
|
default: () => [e]
|
|
158
162
|
})]
|
|
159
163
|
});
|
|
160
164
|
});
|
|
161
|
-
function
|
|
165
|
+
function z() {
|
|
162
166
|
var e, t, l;
|
|
163
167
|
o.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (l = (t = o.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
|
|
164
168
|
}
|
|
165
|
-
async function
|
|
169
|
+
async function E(e) {
|
|
166
170
|
var t, l, r;
|
|
167
171
|
if (o.submitter !== !1)
|
|
168
172
|
try {
|
|
169
173
|
(l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), i.value = !0;
|
|
170
174
|
const d = (r = o.onFinish) == null ? void 0 : r.call(o, e);
|
|
171
175
|
if (o.submitTimeout && d instanceof Promise) {
|
|
172
|
-
const
|
|
176
|
+
const q = setTimeout(() => i.value = !1, o.submitTimeout);
|
|
173
177
|
d.finally(() => {
|
|
174
|
-
clearTimeout(
|
|
178
|
+
clearTimeout(q), i.value = !1;
|
|
175
179
|
});
|
|
176
180
|
}
|
|
177
181
|
await d && f(!1);
|
|
@@ -180,12 +184,12 @@ const Se = /* @__PURE__ */ D({
|
|
|
180
184
|
}
|
|
181
185
|
}
|
|
182
186
|
function k() {
|
|
183
|
-
|
|
187
|
+
s(i) || f(!1);
|
|
184
188
|
}
|
|
185
|
-
function
|
|
186
|
-
!e &&
|
|
189
|
+
function $(e) {
|
|
190
|
+
!e && s(i) || f(e);
|
|
187
191
|
}
|
|
188
|
-
return
|
|
192
|
+
return x({
|
|
189
193
|
resetFields: () => {
|
|
190
194
|
var e;
|
|
191
195
|
(e = a.value) == null || e.resetFields();
|
|
@@ -226,41 +230,39 @@ const Se = /* @__PURE__ */ D({
|
|
|
226
230
|
var t;
|
|
227
231
|
return (t = a.value) == null ? void 0 : t.getInternalInstance(e);
|
|
228
232
|
}
|
|
229
|
-
}), (e, t) => {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
233
|
+
}), (e, t) => (g(), W(H, null, [u(s(oe), b(e.modalProps, {
|
|
234
|
+
open: s(R),
|
|
235
|
+
footer: null,
|
|
236
|
+
width: e.width,
|
|
237
|
+
class: s(j)(),
|
|
238
|
+
"body-style": {
|
|
239
|
+
padding: "0px !important"
|
|
240
|
+
},
|
|
241
|
+
"onUpdate:open": $,
|
|
242
|
+
onCancel: k
|
|
243
|
+
}), {
|
|
244
|
+
title: F(() => [P(e.$slots, "title", {}, () => [J(Q(o.title), 1)])]),
|
|
245
|
+
default: F(() => [u(de, b({
|
|
246
|
+
ref_key: "formRef",
|
|
247
|
+
ref: a
|
|
248
|
+
}, s(se)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
|
|
249
|
+
onFinish: E
|
|
244
250
|
}), {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}),
|
|
252
|
-
default: F(() => [Q("div", {
|
|
253
|
-
class: X(n(C)(n(y) === "admin" ? "content-admin" : "content"))
|
|
254
|
-
}, [P(e.$slots, "default")], 2), (g(), w(x(O.value)))]),
|
|
255
|
-
_: 3
|
|
256
|
-
}, 16)]),
|
|
251
|
+
default: F(() => {
|
|
252
|
+
var l;
|
|
253
|
+
return [X("div", {
|
|
254
|
+
style: Y((l = e.modalProps) == null ? void 0 : l.bodyStyle),
|
|
255
|
+
class: Z(s(h)("content"))
|
|
256
|
+
}, [P(e.$slots, "default")], 6), (g(), w(N(O.value)))];
|
|
257
|
+
}),
|
|
257
258
|
_: 3
|
|
258
|
-
}, 16
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
}, 16)]),
|
|
260
|
+
_: 3
|
|
261
|
+
}, 16, ["open", "width", "class"]), s(B) ? (g(), w(N(s(B)), {
|
|
262
|
+
key: 0
|
|
263
|
+
})) : ee("", !0)], 64));
|
|
262
264
|
}
|
|
263
265
|
});
|
|
264
266
|
export {
|
|
265
|
-
|
|
267
|
+
Me as default
|
|
266
268
|
};
|