@aplus-frontend/ui 0.4.1 → 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 +64 -66
- 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.mjs +20 -18
- 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.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 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
|
|
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
|
|
7
|
+
import { omit as se } from "lodash-unified";
|
|
8
8
|
import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
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
13
|
function S(c) {
|
|
14
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,13 +91,13 @@ const _e = /* @__PURE__ */ L({
|
|
|
91
91
|
},
|
|
92
92
|
emits: ["update:open"],
|
|
93
93
|
setup(c, {
|
|
94
|
-
expose:
|
|
95
|
-
emit:
|
|
94
|
+
expose: x,
|
|
95
|
+
emit: _
|
|
96
96
|
}) {
|
|
97
|
-
const o = c, y = A(),
|
|
98
|
-
value:
|
|
97
|
+
const o = c, y = A(), M = _, a = p(), C = p(0), m = p(), i = p(!1), {
|
|
98
|
+
value: R,
|
|
99
99
|
updateValue: f
|
|
100
|
-
} = ne(o,
|
|
100
|
+
} = ne(o, M, {
|
|
101
101
|
valuePropName: "open",
|
|
102
102
|
defaultValue: !1,
|
|
103
103
|
beforeUpdateValue(e) {
|
|
@@ -105,15 +105,15 @@ const _e = /* @__PURE__ */ L({
|
|
|
105
105
|
}
|
|
106
106
|
}), {
|
|
107
107
|
t: v
|
|
108
|
-
} =
|
|
108
|
+
} = ie(), U = re("uiMode", "aplus"), {
|
|
109
109
|
b: j,
|
|
110
|
-
e:
|
|
111
|
-
} =
|
|
110
|
+
e: h
|
|
111
|
+
} = ue("ap-form-modal-form");
|
|
112
112
|
G(() => a.value, (e) => {
|
|
113
113
|
var t;
|
|
114
114
|
e && m.value && ((t = e.setFieldsValue) == null || t.call(e, m.value), m.value = void 0);
|
|
115
115
|
});
|
|
116
|
-
const
|
|
116
|
+
const T = ae(y.trigger), B = T ? I(T, {
|
|
117
117
|
onClick: () => {
|
|
118
118
|
f(!0);
|
|
119
119
|
}
|
|
@@ -123,12 +123,12 @@ const _e = /* @__PURE__ */ L({
|
|
|
123
123
|
if (o.submitter === !1)
|
|
124
124
|
return null;
|
|
125
125
|
if (o.showCancel) {
|
|
126
|
-
let
|
|
126
|
+
let n;
|
|
127
127
|
e.push(u(V, {
|
|
128
|
-
onClick:
|
|
128
|
+
onClick: k,
|
|
129
129
|
disabled: i.value
|
|
130
|
-
}, S(
|
|
131
|
-
default: () => [
|
|
130
|
+
}, S(n = v("ap.common.cancelText")) ? n : {
|
|
131
|
+
default: () => [n]
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
134
134
|
return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, b(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
|
|
@@ -138,8 +138,8 @@ const _e = /* @__PURE__ */ L({
|
|
|
138
138
|
htmlType: "reset"
|
|
139
139
|
}), {
|
|
140
140
|
default: () => {
|
|
141
|
-
var
|
|
142
|
-
return [((
|
|
141
|
+
var n;
|
|
142
|
+
return [((n = o.submitter) == null ? void 0 : n.resetText) || v("ap.common.resetText")];
|
|
143
143
|
}
|
|
144
144
|
})), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, b({
|
|
145
145
|
type: "primary",
|
|
@@ -149,15 +149,15 @@ const _e = /* @__PURE__ */ L({
|
|
|
149
149
|
loading: i.value
|
|
150
150
|
}), {
|
|
151
151
|
default: () => {
|
|
152
|
-
var
|
|
153
|
-
return [((
|
|
152
|
+
var n;
|
|
153
|
+
return [((n = o.submitter) == null ? void 0 : n.submitText) || v("ap.common.okText")];
|
|
154
154
|
}
|
|
155
|
-
})), u(
|
|
155
|
+
})), u(te, {
|
|
156
156
|
justify: "flex-end",
|
|
157
|
-
key:
|
|
158
|
-
class:
|
|
157
|
+
key: s(C),
|
|
158
|
+
class: [h("footer"), s(U) === "admin" ? h("footer-admin") : null]
|
|
159
159
|
}, {
|
|
160
|
-
default: () => [y.submitter ? y.submitter(e) : u(
|
|
160
|
+
default: () => [y.submitter ? y.submitter(e) : u(le, null, S(e) ? e : {
|
|
161
161
|
default: () => [e]
|
|
162
162
|
})]
|
|
163
163
|
});
|
|
@@ -183,13 +183,13 @@ const _e = /* @__PURE__ */ L({
|
|
|
183
183
|
i.value = !1;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
186
|
+
function k() {
|
|
187
|
+
s(i) || f(!1);
|
|
188
188
|
}
|
|
189
189
|
function $(e) {
|
|
190
|
-
!e &&
|
|
190
|
+
!e && s(i) || f(e);
|
|
191
191
|
}
|
|
192
|
-
return
|
|
192
|
+
return x({
|
|
193
193
|
resetFields: () => {
|
|
194
194
|
var e;
|
|
195
195
|
(e = a.value) == null || e.resetFields();
|
|
@@ -230,41 +230,39 @@ const _e = /* @__PURE__ */ L({
|
|
|
230
230
|
var t;
|
|
231
231
|
return (t = a.value) == null ? void 0 : t.getInternalInstance(e);
|
|
232
232
|
}
|
|
233
|
-
}), (e, t) => {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|
|
248
250
|
}), {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}),
|
|
256
|
-
default: F(() => [X("div", {
|
|
257
|
-
class: Y(n(T)(n(h) === "admin" ? "content-admin" : "content"))
|
|
258
|
-
}, [w(e.$slots, "default")], 2), (g(), x(N(O.value)))]),
|
|
259
|
-
_: 3
|
|
260
|
-
}, 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
|
+
}),
|
|
261
258
|
_: 3
|
|
262
|
-
}, 16
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
259
|
+
}, 16)]),
|
|
260
|
+
_: 3
|
|
261
|
+
}, 16, ["open", "width", "class"]), s(B) ? (g(), w(N(s(B)), {
|
|
262
|
+
key: 0
|
|
263
|
+
})) : ee("", !0)], 64));
|
|
266
264
|
}
|
|
267
265
|
});
|
|
268
266
|
export {
|
|
269
|
-
|
|
267
|
+
Me as default
|
|
270
268
|
};
|