@aplus-frontend/ui 0.3.12 → 0.3.13
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 +29 -27
- package/es/src/ap-field/radio/style/index.js +1 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +48 -53
- package/es/src/business/ap-ladder/style/index.js +1 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +6 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +101 -0
- package/es/src/business/batch-input-group/form-item.vue2.mjs +4 -0
- package/es/src/business/batch-input-group/index.d.ts +2 -1
- package/es/src/business/batch-input-group/index.mjs +1 -0
- package/es/src/business/batch-input-group/index.vue.mjs +46 -44
- package/es/src/business/batch-input-group/interface.d.ts +8 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +43 -38
- package/es/src/config-provider/config-provider.d.ts +1 -0
- package/es/src/config-provider/css-var.d.ts +1 -0
- package/es/src/config-provider/css-var.mjs +14 -12
- package/es/src/config-provider/index.d.ts +5 -0
- package/es/src/index.mjs +12 -10
- package/lib/index.js +1 -1
- package/lib/src/ap-field/radio/style/index.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/style/index.d.ts +1 -0
- package/lib/src/ap-form/render/style/index.js +1 -0
- package/lib/src/business/ap-ladder/style/index.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +6 -0
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue2.js +1 -0
- package/lib/src/business/batch-input-group/index.d.ts +2 -1
- package/lib/src/business/batch-input-group/index.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +8 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/config-provider/config-provider.d.ts +1 -0
- package/lib/src/config-provider/css-var.d.ts +1 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +5 -0
- package/lib/src/index.js +1 -1
- package/package.json +4 -4
- /package/es/src/ap-field/radio/style/{style.d.ts → index.d.ts} +0 -0
- /package/es/src/ap-form/render/style/{style.d.ts → index.d.ts} +0 -0
- /package/{lib/src/ap-form/render/style/style.d.ts → es/src/ap-form/render/style/index.js} +0 -0
- /package/es/src/business/ap-ladder/style/{style.d.ts → index.d.ts} +0 -0
- /package/lib/src/ap-field/radio/style/{style.d.ts → index.d.ts} +0 -0
- /package/lib/src/business/ap-ladder/style/{style.d.ts → index.d.ts} +0 -0
package/es/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as e from "./src/index.mjs";
|
|
|
2
2
|
import { default as l } from "./src/path-map.mjs";
|
|
3
3
|
import "./src/hooks/index.mjs";
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
|
-
import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as s, configProviderContextKey as
|
|
5
|
+
import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as s, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
7
|
import { buildLocaleContext as T, buildTranslator as C, localeContextKey as D, translate as g, useLocale as S } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as G, namespaceContextKey as P, useGetDerivedNamespace as E, useNamespace as L } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
@@ -24,7 +24,7 @@ import { default as fo } from "./src/ap-form/item-group/index.vue.mjs";
|
|
|
24
24
|
import { default as lo } from "./src/ap-form/list/index.vue.mjs";
|
|
25
25
|
import { default as uo } from "./src/ap-form/search-form/index.vue.mjs";
|
|
26
26
|
import { default as so } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as io } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
28
|
import { default as Fo } from "./src/ap-form/set/index.vue.mjs";
|
|
29
29
|
import { default as bo } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
30
|
import { default as Co } from "./src/ap-form/render/control.vue.mjs";
|
|
@@ -50,7 +50,7 @@ import { default as fe } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
|
50
50
|
import { default as le } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
51
51
|
import { default as de } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
52
52
|
import { default as Ae } from "./src/ap-action/group/index.vue.mjs";
|
|
53
|
-
import { DictCode as
|
|
53
|
+
import { DictCode as ne, langMap as ie } from "./src/work-order-modal/interfaces.mjs";
|
|
54
54
|
import { createWorkOrderModal as Fe } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
55
55
|
import { default as be } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
56
56
|
import { default as Ce } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
@@ -77,7 +77,7 @@ import { ApBatchActionGroup as mr } from "./src/business/ap-batch-action-group/i
|
|
|
77
77
|
import { ApButtonGroup as xr } from "./src/business/ap-button-group/index.mjs";
|
|
78
78
|
import { ApCard as ur } from "./src/business/ap-card/index.mjs";
|
|
79
79
|
import { ApExpandAlert as sr } from "./src/business/ap-expand-alert/index.mjs";
|
|
80
|
-
import { ApExportGroupActionType as
|
|
80
|
+
import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
|
|
81
81
|
import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
|
|
82
82
|
import { handleExportDownload as br } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
83
83
|
import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
@@ -98,15 +98,16 @@ import { ApAppendix as ot } from "./src/business/ap-appendix/index.mjs";
|
|
|
98
98
|
import { ApExtensionSelect as rt, ApGroupSearch as tt, ApPopoverSelect as pt } from "./src/business/ap-group-search/index.mjs";
|
|
99
99
|
import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
100
100
|
import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import { default as It } from "./src/editable-table/
|
|
106
|
-
import { default as Tt } from "./src/
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
101
|
+
import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
102
|
+
import { ApSizeInput as At } from "./src/business/ap-size-input/index.mjs";
|
|
103
|
+
import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
104
|
+
import { ApTable as ct } from "./src/ap-table/index.mjs";
|
|
105
|
+
import { default as It } from "./src/editable-table/index.vue.mjs";
|
|
106
|
+
import { default as Tt } from "./src/editable-table/form-item.vue.mjs";
|
|
107
|
+
import { default as Dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
108
|
+
import { ApScrollBar as St } from "./src/ap-scroll-bar/index.mjs";
|
|
109
|
+
import { useMessage as Gt } from "./src/hooks/useMessage.mjs";
|
|
110
|
+
import { useControllableValue as Et } from "./src/hooks/useControllableValue.mjs";
|
|
110
111
|
const a = {
|
|
111
112
|
install: (r) => {
|
|
112
113
|
for (const t in e) {
|
|
@@ -130,13 +131,13 @@ export {
|
|
|
130
131
|
ze as ApButton,
|
|
131
132
|
xr as ApButtonGroup,
|
|
132
133
|
ur as ApCard,
|
|
133
|
-
|
|
134
|
+
Dt as ApDescriptions,
|
|
134
135
|
Ne as ApDownLoadNeedNameKeyDefault,
|
|
135
136
|
we as ApDownload,
|
|
136
137
|
je as ApDrawer,
|
|
137
138
|
sr as ApExpandAlert,
|
|
138
139
|
Fr as ApExportGroup,
|
|
139
|
-
|
|
140
|
+
ir as ApExportGroupActionType,
|
|
140
141
|
rt as ApExtensionSelect,
|
|
141
142
|
Po as ApField,
|
|
142
143
|
No as ApFieldCheckbox,
|
|
@@ -154,9 +155,10 @@ export {
|
|
|
154
155
|
Wo as ApFieldTextArea,
|
|
155
156
|
ro as ApForm,
|
|
156
157
|
Co as ApFormControlRender,
|
|
157
|
-
|
|
158
|
+
io as ApFormDependency,
|
|
158
159
|
bo as ApFormDrawerForm,
|
|
159
160
|
po as ApFormItem,
|
|
161
|
+
dt as ApFormItemBatchInput,
|
|
160
162
|
Y as ApFormItemCheckbox,
|
|
161
163
|
_ as ApFormItemDate,
|
|
162
164
|
H as ApFormItemDateRange,
|
|
@@ -185,13 +187,13 @@ export {
|
|
|
185
187
|
Ue as ApModal,
|
|
186
188
|
Yr as ApNeedNameKeyDefault,
|
|
187
189
|
pt as ApPopoverSelect,
|
|
188
|
-
|
|
190
|
+
St as ApScrollBar,
|
|
189
191
|
Rr as ApSelectLayout,
|
|
190
|
-
|
|
192
|
+
At as ApSizeInput,
|
|
191
193
|
vr as ApStatus,
|
|
192
194
|
Br as ApStatusGroup,
|
|
193
195
|
Qr as ApSummary,
|
|
194
|
-
|
|
196
|
+
ct as ApTable,
|
|
195
197
|
Xe as ApTableModal,
|
|
196
198
|
Ce as ApTag,
|
|
197
199
|
ge as ApTagGroup,
|
|
@@ -205,9 +207,9 @@ export {
|
|
|
205
207
|
N as ConfigProvider,
|
|
206
208
|
A as DEFAULT_NAMESPACE,
|
|
207
209
|
s as DEFAULT_UIMODE,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
ne as DictCode,
|
|
211
|
+
It as EditableTable,
|
|
212
|
+
Tt as EditableTableFormItem,
|
|
211
213
|
Pe as NeedNameKeyDefault,
|
|
212
214
|
be as WorkOrderModal,
|
|
213
215
|
ee as adminToken,
|
|
@@ -215,7 +217,7 @@ export {
|
|
|
215
217
|
T as buildLocaleContext,
|
|
216
218
|
C as buildTranslator,
|
|
217
219
|
Vr as computedRecords,
|
|
218
|
-
|
|
220
|
+
n as configProviderContextKey,
|
|
219
221
|
d as configProviderProps,
|
|
220
222
|
Cr as convertExportField,
|
|
221
223
|
Fe as createWorkOrderModal,
|
|
@@ -227,22 +229,22 @@ export {
|
|
|
227
229
|
y as globalConfigCached,
|
|
228
230
|
br as handleExportDownload,
|
|
229
231
|
c as keysOf,
|
|
230
|
-
|
|
232
|
+
ie as langMap,
|
|
231
233
|
D as localeContextKey,
|
|
232
234
|
Mr as locales,
|
|
233
235
|
P as namespaceContextKey,
|
|
234
236
|
l as pathMap,
|
|
235
237
|
F as provideGlobalConfig,
|
|
236
238
|
g as translate,
|
|
237
|
-
|
|
239
|
+
Et as useControllableValue,
|
|
238
240
|
E as useGetDerivedNamespace,
|
|
239
241
|
I as useGlobalConfig,
|
|
240
242
|
S as useLocale,
|
|
241
|
-
|
|
243
|
+
Gt as useMessage,
|
|
242
244
|
L as useNamespace,
|
|
243
245
|
Wr as usePageListApTable,
|
|
244
246
|
Ze as useTableModal,
|
|
245
|
-
|
|
247
|
+
nt as useTablePaging,
|
|
246
248
|
zr as useTableRefresh,
|
|
247
249
|
er as useTableSelectModal
|
|
248
250
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-field/radio.less';
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { isVNode as q, defineComponent as D, useSlots as L, ref as
|
|
1
|
+
import { isVNode as q, defineComponent as D, useSlots as L, ref as h, watch as A, cloneVNode as G, computed as I, createVNode as u, mergeProps as p, unref as n, openBlock as g, createElementBlock as W, Fragment as H, withCtx as F, renderSlot as P, createTextVNode as J, toDisplayString as K, createElementVNode as Q, normalizeClass as X, createBlock as w, resolveDynamicComponent as x, createCommentVNode as Y } from "vue";
|
|
2
2
|
import { Button as V, Flex as Z, Space as ee, Modal as te } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { getSingleVNode as le } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { omit as oe } from "lodash-unified";
|
|
8
|
-
import "../item/index.vue2.mjs";
|
|
9
8
|
import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs";
|
|
10
9
|
import { useLocale as ne } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
import { useNamespace as
|
|
10
|
+
import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
12
|
import re from "../ap-form.vue2.mjs";
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !q(m);
|
|
13
|
+
function N(c) {
|
|
14
|
+
return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !q(c);
|
|
17
15
|
}
|
|
18
|
-
const
|
|
16
|
+
const Se = /* @__PURE__ */ D({
|
|
19
17
|
__name: "index",
|
|
20
18
|
props: {
|
|
21
19
|
layout: {
|
|
@@ -92,27 +90,27 @@ const Re = /* @__PURE__ */ D({
|
|
|
92
90
|
submitTimeout: {}
|
|
93
91
|
},
|
|
94
92
|
emits: ["update:open"],
|
|
95
|
-
setup(
|
|
96
|
-
expose:
|
|
97
|
-
emit:
|
|
93
|
+
setup(c, {
|
|
94
|
+
expose: S,
|
|
95
|
+
emit: _
|
|
98
96
|
}) {
|
|
99
|
-
const o =
|
|
97
|
+
const o = c, b = L(), M = _, a = h(), m = h(), i = h(!1), {
|
|
100
98
|
value: R,
|
|
101
99
|
updateValue: f
|
|
102
100
|
} = ae(o, M, {
|
|
103
101
|
valuePropName: "open",
|
|
104
102
|
defaultValue: !1
|
|
105
103
|
}), {
|
|
106
|
-
t:
|
|
107
|
-
} = ne(),
|
|
104
|
+
t: v
|
|
105
|
+
} = ne(), y = se("uiMode", "aplus"), {
|
|
108
106
|
b: j,
|
|
109
107
|
e: C
|
|
110
|
-
} =
|
|
108
|
+
} = ie("ap-form-modal-form");
|
|
111
109
|
A(() => a.value, (e) => {
|
|
112
110
|
var t;
|
|
113
|
-
e &&
|
|
111
|
+
e && m.value && ((t = e.setFieldsValue) == null || t.call(e, m.value), m.value = void 0);
|
|
114
112
|
});
|
|
115
|
-
const T = le(
|
|
113
|
+
const T = le(b.trigger), B = T ? G(T, {
|
|
116
114
|
onClick: () => {
|
|
117
115
|
f(!0);
|
|
118
116
|
}
|
|
@@ -122,40 +120,40 @@ const Re = /* @__PURE__ */ D({
|
|
|
122
120
|
if (o.submitter === !1)
|
|
123
121
|
return null;
|
|
124
122
|
if (o.showCancel) {
|
|
125
|
-
let
|
|
123
|
+
let s;
|
|
126
124
|
e.push(u(V, {
|
|
127
125
|
onClick: k,
|
|
128
|
-
disabled:
|
|
129
|
-
}, N(
|
|
130
|
-
default: () => [
|
|
126
|
+
disabled: i.value
|
|
127
|
+
}, N(s = v("ap.common.cancelText")) ? s : {
|
|
128
|
+
default: () => [s]
|
|
131
129
|
}));
|
|
132
130
|
}
|
|
133
131
|
return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, p(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
|
|
134
132
|
key: "reset",
|
|
135
|
-
disabled:
|
|
133
|
+
disabled: i.value,
|
|
136
134
|
onClick: U,
|
|
137
135
|
htmlType: "reset"
|
|
138
136
|
}), {
|
|
139
137
|
default: () => {
|
|
140
|
-
var
|
|
141
|
-
return [((
|
|
138
|
+
var s;
|
|
139
|
+
return [((s = o.submitter) == null ? void 0 : s.resetText) || v("ap.common.resetText")];
|
|
142
140
|
}
|
|
143
141
|
})), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, p({
|
|
144
142
|
type: "primary",
|
|
145
143
|
key: "submit",
|
|
146
144
|
htmlType: "submit"
|
|
147
145
|
}, ((d = o.submitter) == null ? void 0 : d.submitButtonProps) || {}, {
|
|
148
|
-
loading:
|
|
146
|
+
loading: i.value
|
|
149
147
|
}), {
|
|
150
148
|
default: () => {
|
|
151
|
-
var
|
|
152
|
-
return [((
|
|
149
|
+
var s;
|
|
150
|
+
return [((s = o.submitter) == null ? void 0 : s.submitText) || v("ap.common.okText")];
|
|
153
151
|
}
|
|
154
152
|
})), u(Z, {
|
|
155
153
|
justify: "flex-end",
|
|
156
|
-
class: C(n(
|
|
154
|
+
class: C(n(y) === "admin" ? "footer-admin" : "footer")
|
|
157
155
|
}, {
|
|
158
|
-
default: () => [
|
|
156
|
+
default: () => [b.submitter ? b.submitter(e) : u(ee, null, N(e) ? e : {
|
|
159
157
|
default: () => [e]
|
|
160
158
|
})]
|
|
161
159
|
});
|
|
@@ -164,30 +162,30 @@ const Re = /* @__PURE__ */ D({
|
|
|
164
162
|
var e, t, l;
|
|
165
163
|
o.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (l = (t = o.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
|
|
166
164
|
}
|
|
167
|
-
async function
|
|
165
|
+
async function z(e) {
|
|
168
166
|
var t, l, r;
|
|
169
167
|
if (o.submitter !== !1)
|
|
170
168
|
try {
|
|
171
|
-
(l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t),
|
|
169
|
+
(l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), i.value = !0;
|
|
172
170
|
const d = (r = o.onFinish) == null ? void 0 : r.call(o, e);
|
|
173
171
|
if (o.submitTimeout && d instanceof Promise) {
|
|
174
|
-
const
|
|
172
|
+
const $ = setTimeout(() => i.value = !1, o.submitTimeout);
|
|
175
173
|
d.finally(() => {
|
|
176
|
-
clearTimeout(
|
|
174
|
+
clearTimeout($), i.value = !1;
|
|
177
175
|
});
|
|
178
176
|
}
|
|
179
177
|
await d && f(!1);
|
|
180
178
|
} finally {
|
|
181
|
-
|
|
179
|
+
i.value = !1;
|
|
182
180
|
}
|
|
183
181
|
}
|
|
184
182
|
function k() {
|
|
185
|
-
n(
|
|
183
|
+
n(i) || f(!1);
|
|
186
184
|
}
|
|
187
|
-
function
|
|
188
|
-
!e && n(
|
|
185
|
+
function E(e) {
|
|
186
|
+
!e && n(i) || f(e);
|
|
189
187
|
}
|
|
190
|
-
return
|
|
188
|
+
return S({
|
|
191
189
|
resetFields: () => {
|
|
192
190
|
var e;
|
|
193
191
|
(e = a.value) == null || e.resetFields();
|
|
@@ -219,7 +217,7 @@ const Re = /* @__PURE__ */ D({
|
|
|
219
217
|
setFieldsValue: (e) => {
|
|
220
218
|
var t, l;
|
|
221
219
|
if (!a.value) {
|
|
222
|
-
|
|
220
|
+
m.value = e;
|
|
223
221
|
return;
|
|
224
222
|
}
|
|
225
223
|
(l = (t = a.value) == null ? void 0 : t.setFieldsValue) == null || l.call(t, e);
|
|
@@ -230,42 +228,39 @@ const Re = /* @__PURE__ */ D({
|
|
|
230
228
|
}
|
|
231
229
|
}), (e, t) => {
|
|
232
230
|
var l;
|
|
233
|
-
return
|
|
231
|
+
return g(), W(H, null, [u(n(te), p(e.modalProps, {
|
|
234
232
|
open: n(R),
|
|
235
233
|
footer: null,
|
|
236
234
|
width: e.width,
|
|
237
235
|
class: n(j)(),
|
|
238
236
|
"body-style": {
|
|
239
237
|
...((l = e.modalProps) == null ? void 0 : l.bodyStyle) || {},
|
|
240
|
-
padding: n(
|
|
238
|
+
padding: n(y) === "admin" ? "0px !important" : "20px !important"
|
|
241
239
|
// 这里使用内联样式目的是为了使用最高优先级覆盖设置的全局样式
|
|
242
240
|
// 使用ModalForm你可能无法再自定义body的样式
|
|
243
241
|
},
|
|
244
|
-
"onUpdate:open":
|
|
242
|
+
"onUpdate:open": E,
|
|
245
243
|
onCancel: k
|
|
246
244
|
}), {
|
|
247
|
-
title:
|
|
248
|
-
default:
|
|
245
|
+
title: F(() => [P(e.$slots, "title", {}, () => [J(K(o.title), 1)])]),
|
|
246
|
+
default: F(() => [u(re, p({
|
|
249
247
|
ref_key: "formRef",
|
|
250
248
|
ref: a
|
|
251
249
|
}, n(oe)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
|
|
252
|
-
onFinish:
|
|
250
|
+
onFinish: z
|
|
253
251
|
}), {
|
|
254
|
-
default:
|
|
255
|
-
class: X(n(C)(n(
|
|
256
|
-
}, [P(e.$slots, "default")], 2),
|
|
257
|
-
default: b(() => [(F(), w(x(O.value)))]),
|
|
258
|
-
_: 1
|
|
259
|
-
})]),
|
|
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)))]),
|
|
260
255
|
_: 3
|
|
261
256
|
}, 16)]),
|
|
262
257
|
_: 3
|
|
263
|
-
}, 16, ["open", "width", "class", "body-style"]), n(B) ? (
|
|
258
|
+
}, 16, ["open", "width", "class", "body-style"]), n(B) ? (g(), w(x(n(B)), {
|
|
264
259
|
key: 0
|
|
265
260
|
})) : Y("", !0)], 64);
|
|
266
261
|
};
|
|
267
262
|
}
|
|
268
263
|
});
|
|
269
264
|
export {
|
|
270
|
-
|
|
265
|
+
Se as default
|
|
271
266
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-ladder/ap-ladder.less';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApFormItemBatchInputProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
|
|
4
|
+
trim: boolean;
|
|
5
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineComponent as B, computed as n, openBlock as b, createBlock as _, mergeProps as u, unref as f, withCtx as g, createVNode as x } from "vue";
|
|
2
|
+
import "./index.vue2.mjs";
|
|
3
|
+
import "../../ap-form/item/index.vue2.mjs";
|
|
4
|
+
import { isValid as d } from "@aplus-frontend/utils";
|
|
5
|
+
import { omit as p } from "lodash-unified";
|
|
6
|
+
import V from "../../ap-form/item/index.vue.mjs";
|
|
7
|
+
import k from "./index.vue.mjs";
|
|
8
|
+
const A = /* @__PURE__ */ B({
|
|
9
|
+
__name: "form-item",
|
|
10
|
+
props: {
|
|
11
|
+
htmlFor: {},
|
|
12
|
+
prefixCls: {},
|
|
13
|
+
label: {},
|
|
14
|
+
help: {},
|
|
15
|
+
extra: {},
|
|
16
|
+
labelCol: {},
|
|
17
|
+
wrapperCol: {},
|
|
18
|
+
hasFeedback: { type: Boolean },
|
|
19
|
+
colon: { type: Boolean },
|
|
20
|
+
labelAlign: {},
|
|
21
|
+
prop: {},
|
|
22
|
+
name: {},
|
|
23
|
+
rules: {},
|
|
24
|
+
autoLink: { type: Boolean },
|
|
25
|
+
required: { type: Boolean },
|
|
26
|
+
validateFirst: { type: Boolean },
|
|
27
|
+
validateStatus: {},
|
|
28
|
+
validateTrigger: {},
|
|
29
|
+
messageVariables: {},
|
|
30
|
+
hidden: { type: Boolean },
|
|
31
|
+
noStyle: { type: Boolean },
|
|
32
|
+
tooltip: {},
|
|
33
|
+
span: {},
|
|
34
|
+
order: {},
|
|
35
|
+
offset: {},
|
|
36
|
+
push: {},
|
|
37
|
+
pull: {},
|
|
38
|
+
xs: {},
|
|
39
|
+
sm: {},
|
|
40
|
+
md: {},
|
|
41
|
+
lg: {},
|
|
42
|
+
xl: {},
|
|
43
|
+
xxl: {},
|
|
44
|
+
flex: {},
|
|
45
|
+
bordered: { type: Boolean },
|
|
46
|
+
valuePropName: {},
|
|
47
|
+
initialValue: {},
|
|
48
|
+
_signal: {},
|
|
49
|
+
transform: {},
|
|
50
|
+
field: {},
|
|
51
|
+
disabled: { type: Boolean },
|
|
52
|
+
placeholer: {},
|
|
53
|
+
trim: { type: Boolean, default: !0 }
|
|
54
|
+
},
|
|
55
|
+
setup(c) {
|
|
56
|
+
const l = c, y = n(() => (l == null ? void 0 : l.transform) || {
|
|
57
|
+
flat: !1,
|
|
58
|
+
transformer: (e) => {
|
|
59
|
+
var o, a, i, r, m, s;
|
|
60
|
+
if (e)
|
|
61
|
+
return !(e != null && e.value) || ((o = e == null ? void 0 : e.value) == null ? void 0 : o.length) < 1 ? void 0 : (a = l == null ? void 0 : l.field) != null && a.options ? {
|
|
62
|
+
...e,
|
|
63
|
+
value: (r = (i = e == null ? void 0 : e.value) == null ? void 0 : i.filter((t) => d(t == null ? void 0 : t.trim()))) == null ? void 0 : r.map((t) => l.trim ? t == null ? void 0 : t.trim() : t)
|
|
64
|
+
} : (s = (m = e == null ? void 0 : e.value) == null ? void 0 : m.filter((t) => d(t == null ? void 0 : t.trim()))) == null ? void 0 : s.map((t) => l.trim ? t == null ? void 0 : t.trim() : t);
|
|
65
|
+
}
|
|
66
|
+
}), v = n(() => {
|
|
67
|
+
var e;
|
|
68
|
+
return ((e = l.field) == null ? void 0 : e.style) || "width:auto";
|
|
69
|
+
}), h = n(() => {
|
|
70
|
+
var e, o;
|
|
71
|
+
return (l == null ? void 0 : l.initialValue) || {
|
|
72
|
+
key: (o = (e = l == null ? void 0 : l.field) == null ? void 0 : e.options) == null ? void 0 : o.map((a) => a.value)
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
return (e, o) => (b(), _(V, u(
|
|
76
|
+
f(p)(l, [
|
|
77
|
+
"field",
|
|
78
|
+
"initialValue",
|
|
79
|
+
"transform",
|
|
80
|
+
"placeholder",
|
|
81
|
+
"disabled"
|
|
82
|
+
]),
|
|
83
|
+
{
|
|
84
|
+
"initial-value": h.value,
|
|
85
|
+
transform: y.value
|
|
86
|
+
}
|
|
87
|
+
), {
|
|
88
|
+
default: g(() => [
|
|
89
|
+
x(k, u(f(p)(l.field, ["style"]), {
|
|
90
|
+
style: v.value,
|
|
91
|
+
disabled: e.disabled,
|
|
92
|
+
placeholer: e.placeholer
|
|
93
|
+
}), null, 16, ["style", "disabled", "placeholer"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 16, ["initial-value", "transform"]));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
A as default
|
|
101
|
+
};
|