@aplus-frontend/ui 6.35.1 → 6.36.0
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/index.vue.mjs +17 -16
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ap-field/date/index.vue.mjs +6 -5
- package/es/src/ap-field/date/read.vue2.mjs +8 -7
- package/es/src/ap-field/date-range/index.vue.mjs +20 -17
- package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
- package/es/src/ap-field/index.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
- package/es/src/ap-form/interface.d.ts +12 -1
- package/es/src/ap-form/item/index.vue.d.ts +34 -34
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
- package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
- package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
- package/es/src/ap-form/search-form/index.vue.mjs +94 -88
- package/es/src/ap-modal/utils/createModal.mjs +38 -35
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +77 -77
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
- package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
- package/es/src/business/ap-attachment/constans.d.ts +4 -0
- package/es/src/business/ap-attachment/constans.mjs +4 -0
- package/es/src/business/ap-attachment/index.d.ts +15 -0
- package/es/src/business/ap-attachment/interface.d.ts +1 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
- package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +16 -1
- package/es/src/utils/config-provider-preset.d.ts +3 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
- package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
- package/lib/src/ap-form/interface.d.ts +12 -1
- package/lib/src/ap-form/item/index.vue.d.ts +34 -34
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +77 -77
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/constans.d.ts +4 -0
- package/lib/src/business/ap-attachment/constans.js +1 -1
- package/lib/src/business/ap-attachment/index.d.ts +15 -0
- package/lib/src/business/ap-attachment/interface.d.ts +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +16 -1
- package/lib/src/utils/config-provider-preset.d.ts +3 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
- package/theme/ag-grid/index.css +3 -0
- package/theme/ag-grid/index.less +3 -0
- package/theme/ap-attachment/ap-attachment.css +8 -4
- package/theme/ap-attachment/ap-attachment.less +8 -4
- package/theme/ap-upload/index.css +6 -0
- package/theme/ap-upload/multiple-file.css +6 -0
- package/theme/ap-upload/multiple-file.less +7 -0
- package/theme/index.css +17 -4
|
@@ -17,8 +17,8 @@ import { useTheme as ko } from "./theme.mjs";
|
|
|
17
17
|
import { useColumns as xo } from "./hooks/use-columns.mjs";
|
|
18
18
|
import { useColumnsDef as Io } from "./hooks/use-columns-def.mjs";
|
|
19
19
|
import { isDef as To } from "../utils/index.mjs";
|
|
20
|
-
import { getValidVNodeList as
|
|
21
|
-
import { useSearchForm as
|
|
20
|
+
import { getValidVNodeList as Do } from "../utils/slot.mjs";
|
|
21
|
+
import { useSearchForm as No } from "./hooks/use-search-form.mjs";
|
|
22
22
|
import "./components/empty/index.vue.mjs";
|
|
23
23
|
import Eo from "./hooks/use-virtual-config.mjs";
|
|
24
24
|
import { usePinnedRow as Ko } from "./hooks/use-pinned-row.mjs";
|
|
@@ -105,7 +105,7 @@ const mt = /* @__PURE__ */ oo({
|
|
|
105
105
|
T(o, "summary")
|
|
106
106
|
), ge = Ao("apGrid"), s = I(), [, we] = Fo();
|
|
107
107
|
let p = !!o.dataSource;
|
|
108
|
-
const L =
|
|
108
|
+
const L = No(o), { shownColumns: f, columns: U, columnKeys: Se, getTargetColumnByKey: ye } = xo(o), { defaultColDef: Ce, columnDefs: he, gridWrapperRef: ve } = Io(U, o, fe), x = I({});
|
|
109
109
|
vo({
|
|
110
110
|
sorter: x,
|
|
111
111
|
setSorter(e) {
|
|
@@ -143,10 +143,10 @@ const mt = /* @__PURE__ */ oo({
|
|
|
143
143
|
return;
|
|
144
144
|
const r = e.getColumnState()?.map((a) => ({ ...a, sort: null }));
|
|
145
145
|
e.applyColumnState({ state: r });
|
|
146
|
-
}, ke = l(() => To(o.manual) ? o.manual :
|
|
146
|
+
}, ke = l(() => To(o.manual) ? o.manual : Do(W.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
|
|
147
147
|
formRef: g,
|
|
148
|
-
submit:
|
|
149
|
-
reset:
|
|
148
|
+
submit: D,
|
|
149
|
+
reset: N,
|
|
150
150
|
data: w,
|
|
151
151
|
tableProps: j,
|
|
152
152
|
handleTableChangeOptional: $,
|
|
@@ -186,7 +186,7 @@ const mt = /* @__PURE__ */ oo({
|
|
|
186
186
|
...ie,
|
|
187
187
|
...e
|
|
188
188
|
};
|
|
189
|
-
}),
|
|
189
|
+
}), De = Po(o, f), Ne = l(
|
|
190
190
|
() => F(o.dataSource) ? w.records : o.dataSource
|
|
191
191
|
), {
|
|
192
192
|
select: Ee,
|
|
@@ -197,7 +197,7 @@ const mt = /* @__PURE__ */ oo({
|
|
|
197
197
|
selectMultiByKeys: Ae
|
|
198
198
|
} = ho({
|
|
199
199
|
...S,
|
|
200
|
-
dataSource:
|
|
200
|
+
dataSource: Ne,
|
|
201
201
|
rowKey: o.rowKey
|
|
202
202
|
}), Ve = {
|
|
203
203
|
checkbox: "multiRow",
|
|
@@ -209,7 +209,8 @@ const mt = /* @__PURE__ */ oo({
|
|
|
209
209
|
const { type: r = "checkbox", disabled: a } = e;
|
|
210
210
|
return {
|
|
211
211
|
mode: Ve[r],
|
|
212
|
-
isRowSelectable: (d) => a ? !a(d.data) : !0
|
|
212
|
+
isRowSelectable: (d) => a ? !a(d.data) : !0,
|
|
213
|
+
hideDisabledCheckboxes: e.hideDisabled ?? !1
|
|
213
214
|
};
|
|
214
215
|
});
|
|
215
216
|
function K(e) {
|
|
@@ -315,9 +316,9 @@ const mt = /* @__PURE__ */ oo({
|
|
|
315
316
|
dataSource: l(() => t(w).records),
|
|
316
317
|
getSearchFormValues: X,
|
|
317
318
|
setSearchFormValues: Y,
|
|
318
|
-
submit:
|
|
319
|
+
submit: D,
|
|
319
320
|
submitWith: q,
|
|
320
|
-
reset:
|
|
321
|
+
reset: N,
|
|
321
322
|
refresh: J,
|
|
322
323
|
getSearchFormSorterItems: Z,
|
|
323
324
|
setSearchFormSorterItems: _,
|
|
@@ -382,8 +383,8 @@ const mt = /* @__PURE__ */ oo({
|
|
|
382
383
|
o.onLoadingChange?.(e);
|
|
383
384
|
}
|
|
384
385
|
), ue({
|
|
385
|
-
submit:
|
|
386
|
-
reset:
|
|
386
|
+
submit: D,
|
|
387
|
+
reset: N,
|
|
387
388
|
refresh: J,
|
|
388
389
|
submitWith: q,
|
|
389
390
|
setSearchFormValues: Y,
|
|
@@ -418,8 +419,8 @@ const mt = /* @__PURE__ */ oo({
|
|
|
418
419
|
ref: g,
|
|
419
420
|
"custom-reset": "",
|
|
420
421
|
"submit-loading": t(j).loading,
|
|
421
|
-
onSubmit: t(
|
|
422
|
-
onReset: t(
|
|
422
|
+
onSubmit: t(D),
|
|
423
|
+
onReset: t(N)
|
|
423
424
|
}), ao({
|
|
424
425
|
default: ne(() => [
|
|
425
426
|
(b(!0), A(no, null, lo(t(L), (a) => (b(), le(so(a.renderNode), {
|
|
@@ -464,7 +465,7 @@ const mt = /* @__PURE__ */ oo({
|
|
|
464
465
|
"default-col-def": t(Ce),
|
|
465
466
|
"suppress-loading-overlay": "",
|
|
466
467
|
"row-selection": Me.value,
|
|
467
|
-
"selection-column-def": t(
|
|
468
|
+
"selection-column-def": t(De),
|
|
468
469
|
"get-row-id": qe,
|
|
469
470
|
theme: t(me),
|
|
470
471
|
"tooltip-show-delay": 500,
|
|
@@ -119,6 +119,10 @@ export type AgGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
|
|
|
119
119
|
* 行选择列自定义tooltip
|
|
120
120
|
*/
|
|
121
121
|
tooltip?: string | ((checked: boolean, disabled: boolean, rowNode: IRowNode) => string | any);
|
|
122
|
+
/**
|
|
123
|
+
* 是否隐藏不可选中的元素
|
|
124
|
+
*/
|
|
125
|
+
hideDisabled?: boolean;
|
|
122
126
|
};
|
|
123
127
|
export type AgGridVirtualConfig = {
|
|
124
128
|
row?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as
|
|
1
|
+
import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
|
|
2
2
|
import u from "dayjs";
|
|
3
|
-
import { InputGroup as
|
|
3
|
+
import { InputGroup as G, Select as L, SelectOption as Y, DatePicker as Z } from "@aplus-frontend/antdv";
|
|
4
4
|
import { ApFieldDatePresetFormats as q, PRESET_FORMAT_MAP as b, PRESET_FORMAT_PICK_MAP as J, PRESET_FORMAT_TIME_MAP as Q } from "./constant.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
6
|
import { isNil as C, omit as X } from "lodash-unified";
|
|
@@ -56,6 +56,7 @@ const ye = /* @__PURE__ */ z({
|
|
|
56
56
|
prefixCls: {},
|
|
57
57
|
defaultPickerValue: {},
|
|
58
58
|
disabledDate: {},
|
|
59
|
+
showWeek: { type: Boolean },
|
|
59
60
|
dateRender: {},
|
|
60
61
|
monthCellRender: {},
|
|
61
62
|
renderExtraFooter: {},
|
|
@@ -151,7 +152,7 @@ const ye = /* @__PURE__ */ z({
|
|
|
151
152
|
}
|
|
152
153
|
return (o, n) => o.mode === "read" ? (i(), B(g, { key: 0 }, [
|
|
153
154
|
k(w(c.value ? t(u)(c.value).format(s.value) : o.emptyText), 1)
|
|
154
|
-
], 64)) : (i(), y(t(
|
|
155
|
+
], 64)) : (i(), y(t(G), {
|
|
155
156
|
key: 1,
|
|
156
157
|
compact: "",
|
|
157
158
|
style: E({
|
|
@@ -159,7 +160,7 @@ const ye = /* @__PURE__ */ z({
|
|
|
159
160
|
})
|
|
160
161
|
}, {
|
|
161
162
|
default: p(() => [
|
|
162
|
-
Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(
|
|
163
|
+
Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(L), {
|
|
163
164
|
key: 0,
|
|
164
165
|
value: t(d),
|
|
165
166
|
"onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
|
|
@@ -192,7 +193,7 @@ const ye = /* @__PURE__ */ z({
|
|
|
192
193
|
P(o.$slots, (a, m) => ({
|
|
193
194
|
name: m,
|
|
194
195
|
fn: p((x) => [
|
|
195
|
-
K(o.$slots, m, $(
|
|
196
|
+
K(o.$slots, m, W($(x || {})))
|
|
196
197
|
])
|
|
197
198
|
}))
|
|
198
199
|
]), 1040, ["value", "format", "picker"])
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, computed as t, toDisplayString as u, unref as d } from "vue";
|
|
2
2
|
import n from "dayjs";
|
|
3
3
|
import { isNil as m } from "lodash-unified";
|
|
4
4
|
import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
|
|
5
5
|
import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
|
|
6
6
|
import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
|
|
7
|
-
const T = /* @__PURE__ */
|
|
7
|
+
const T = /* @__PURE__ */ i({
|
|
8
8
|
name: "ApFieldDateRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -51,6 +51,7 @@ const T = /* @__PURE__ */ s({
|
|
|
51
51
|
prefixCls: {},
|
|
52
52
|
defaultPickerValue: {},
|
|
53
53
|
disabledDate: {},
|
|
54
|
+
showWeek: { type: Boolean },
|
|
54
55
|
dateRender: {},
|
|
55
56
|
monthCellRender: {},
|
|
56
57
|
renderExtraFooter: {},
|
|
@@ -84,18 +85,18 @@ const T = /* @__PURE__ */ s({
|
|
|
84
85
|
formatBegins: { type: Boolean },
|
|
85
86
|
timezone: {}
|
|
86
87
|
},
|
|
87
|
-
setup(
|
|
88
|
-
const e =
|
|
88
|
+
setup(l) {
|
|
89
|
+
const e = l, { currentTimezone: r } = f(e), p = t(
|
|
89
90
|
() => y.indexOf(e.format) > -1
|
|
90
|
-
),
|
|
91
|
+
), s = t(
|
|
91
92
|
() => p.value ? B[e.format] : e.format
|
|
92
93
|
), a = t(() => {
|
|
93
94
|
if (m(e.value))
|
|
94
95
|
return;
|
|
95
96
|
let o = n(e.value);
|
|
96
|
-
return e.timezone && (o = n(c(e.value,
|
|
97
|
+
return e.timezone && (o = n(c(e.value, r.value))), o;
|
|
97
98
|
});
|
|
98
|
-
return (o, h) => u(a.value ? d(n)(a.value).format(
|
|
99
|
+
return (o, h) => u(a.value ? d(n)(a.value).format(s.value) : o.emptyText);
|
|
99
100
|
}
|
|
100
101
|
});
|
|
101
102
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as
|
|
1
|
+
import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
|
|
2
|
+
import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as T, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
|
|
5
5
|
import d from "dayjs";
|
|
@@ -11,8 +11,8 @@ import { getTimeFormatToZone as A } from "@aplus-frontend/utils";
|
|
|
11
11
|
import { useDefaultPlaceholder as ve } from "../hooks/use-default-placeholder.mjs";
|
|
12
12
|
import { useDefaultPresets as he } from "../hooks/use-default-presets.mjs";
|
|
13
13
|
import { useDateTimezone as ge } from "../hooks/use-date-timezone.mjs";
|
|
14
|
-
import { useControllableValue as
|
|
15
|
-
const ze = /* @__PURE__ */
|
|
14
|
+
import { useControllableValue as ke } from "../../hooks/useControllableValue.mjs";
|
|
15
|
+
const ze = /* @__PURE__ */ L({
|
|
16
16
|
name: "ApFieldDateRange",
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
@@ -91,6 +91,9 @@ const ze = /* @__PURE__ */ W({
|
|
|
91
91
|
picker: {},
|
|
92
92
|
prefixCls: {},
|
|
93
93
|
disabledDate: {},
|
|
94
|
+
showWeek: {
|
|
95
|
+
type: Boolean
|
|
96
|
+
},
|
|
94
97
|
monthCellRender: {},
|
|
95
98
|
locale: {},
|
|
96
99
|
size: {},
|
|
@@ -160,10 +163,10 @@ const ze = /* @__PURE__ */ W({
|
|
|
160
163
|
setup(R, {
|
|
161
164
|
emit: F
|
|
162
165
|
}) {
|
|
163
|
-
const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ?
|
|
166
|
+
const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? T[o.format] : o.format), {
|
|
164
167
|
value: v,
|
|
165
168
|
updateValue: O
|
|
166
|
-
} =
|
|
169
|
+
} = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? T[o.format] : o.format), x = ve("DateRange", o), {
|
|
167
170
|
currentTimezone: l
|
|
168
171
|
} = ge(o), {
|
|
169
172
|
presets: E,
|
|
@@ -202,15 +205,15 @@ const ze = /* @__PURE__ */ W({
|
|
|
202
205
|
function K(e) {
|
|
203
206
|
e && V(), o.onOpenChange?.(e);
|
|
204
207
|
}
|
|
205
|
-
function
|
|
208
|
+
function W(e, a) {
|
|
206
209
|
if (M(e)) {
|
|
207
210
|
o.onChange?.(e, a);
|
|
208
211
|
return;
|
|
209
212
|
}
|
|
210
|
-
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null,
|
|
211
|
-
o.onChange?.([D,
|
|
213
|
+
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, G = e[1] ? p(r, f, !1) : null;
|
|
214
|
+
o.onChange?.([D, G], a);
|
|
212
215
|
}
|
|
213
|
-
const
|
|
216
|
+
const $ = s(() => {
|
|
214
217
|
const e = o.readModeSeparator;
|
|
215
218
|
if (e)
|
|
216
219
|
return Z(e) || de(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
|
|
@@ -221,27 +224,27 @@ const ze = /* @__PURE__ */ W({
|
|
|
221
224
|
key: 0
|
|
222
225
|
}, [h.value ? (u(), g(m, {
|
|
223
226
|
key: 0
|
|
224
|
-
}, [
|
|
227
|
+
}, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(q($.value))), S(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
|
|
225
228
|
key: 1
|
|
226
|
-
}, [
|
|
229
|
+
}, [S(C(e.emptyText), 1)], 64))], 64)) : (u(), k(t(ie), {
|
|
227
230
|
key: 1,
|
|
228
231
|
compact: "",
|
|
229
232
|
style: J({
|
|
230
233
|
display: Array.isArray(o.timezone) && o.timezone.length ? "flex" : "block"
|
|
231
234
|
})
|
|
232
235
|
}, {
|
|
233
|
-
default: B(() => [Array.isArray(o.timezone) && o.timezone.length ? (u(),
|
|
236
|
+
default: B(() => [Array.isArray(o.timezone) && o.timezone.length ? (u(), k(t(se), {
|
|
234
237
|
key: 0,
|
|
235
238
|
value: t(l),
|
|
236
239
|
"onUpdate:value": a[0] || (a[0] = (n) => X(l) ? l.value = n : null),
|
|
237
240
|
"default-active-first-option": "",
|
|
238
241
|
"dropdown-match-select-width": !1
|
|
239
242
|
}, {
|
|
240
|
-
default: B(() => [(u(!0), g(m, null,
|
|
243
|
+
default: B(() => [(u(!0), g(m, null, w(o.timezone, (n) => (u(), k(t(pe), {
|
|
241
244
|
key: n?.value,
|
|
242
245
|
value: n?.value
|
|
243
246
|
}, {
|
|
244
|
-
default: B(() => [
|
|
247
|
+
default: B(() => [S(C(n?.label ?? n?.value), 1)]),
|
|
245
248
|
_: 2
|
|
246
249
|
}, 1032, ["value"]))), 128))]),
|
|
247
250
|
_: 1
|
|
@@ -250,12 +253,12 @@ const ze = /* @__PURE__ */ W({
|
|
|
250
253
|
picker: I.value,
|
|
251
254
|
format: N.value,
|
|
252
255
|
"onUpdate:value": j,
|
|
253
|
-
onChange:
|
|
256
|
+
onChange: W,
|
|
254
257
|
onOk: H,
|
|
255
258
|
onOpenChange: K
|
|
256
259
|
}), oe({
|
|
257
260
|
_: 2
|
|
258
|
-
}, [
|
|
261
|
+
}, [w(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
|
|
259
262
|
name: r,
|
|
260
263
|
fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
|
|
261
264
|
}))]), 1040, ["value", "picker", "format"])]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as
|
|
1
|
+
import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as h, toDisplayString as p, resolveDynamicComponent as b } from "vue";
|
|
2
2
|
import { isNil as g } from "lodash-unified";
|
|
3
3
|
import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
|
|
4
4
|
import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
|
|
@@ -54,6 +54,7 @@ const M = /* @__PURE__ */ v({
|
|
|
54
54
|
picker: {},
|
|
55
55
|
prefixCls: {},
|
|
56
56
|
disabledDate: {},
|
|
57
|
+
showWeek: { type: Boolean },
|
|
57
58
|
monthCellRender: {},
|
|
58
59
|
locale: {},
|
|
59
60
|
size: {},
|
|
@@ -106,7 +107,7 @@ const M = /* @__PURE__ */ v({
|
|
|
106
107
|
);
|
|
107
108
|
return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
|
|
108
109
|
l(p(t.value[0]?.format(u.value)) + " ", 1),
|
|
109
|
-
(r(), b(
|
|
110
|
+
(r(), h(b(o.readModeSeparator))),
|
|
110
111
|
l(" " + p(t.value[1]?.format(u.value)), 1)
|
|
111
112
|
], 64)) : (r(), d(i, { key: 1 }, [
|
|
112
113
|
l(p(o.emptyText), 1)
|
|
@@ -33,7 +33,7 @@ export type FieldType = {
|
|
|
33
33
|
};
|
|
34
34
|
export declare const ApFieldRead: {
|
|
35
35
|
readonly Text: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextProps> & Readonly<{}>, {
|
|
36
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
36
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
37
37
|
mode: FieldMode;
|
|
38
38
|
disabled: boolean;
|
|
39
39
|
bordered: boolean;
|
|
@@ -42,7 +42,7 @@ export declare const ApFieldRead: {
|
|
|
42
42
|
allowClear: boolean;
|
|
43
43
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
44
44
|
readonly TextArea: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{}>, {
|
|
45
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
45
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
46
46
|
mode: FieldMode;
|
|
47
47
|
disabled: boolean;
|
|
48
48
|
bordered: boolean;
|
|
@@ -113,7 +113,7 @@ export declare const ApFieldRead: {
|
|
|
113
113
|
emptyText: string;
|
|
114
114
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
115
115
|
readonly Password: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextPasswordProps> & Readonly<{}>, {
|
|
116
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
116
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
117
117
|
mode: FieldMode;
|
|
118
118
|
visible: boolean;
|
|
119
119
|
disabled: boolean;
|
|
@@ -27,7 +27,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextProps, {
|
|
|
27
27
|
}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{
|
|
28
28
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
30
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
31
31
|
mode: FieldMode;
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
bordered: boolean;
|
|
@@ -26,7 +26,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
|
|
|
26
26
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
29
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
30
30
|
mode: FieldMode;
|
|
31
31
|
visible: boolean;
|
|
32
32
|
disabled: boolean;
|
|
@@ -2,7 +2,7 @@ import { ApFieldTextPasswordProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare const _default: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextPasswordProps> & Readonly<{}>, {
|
|
5
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
5
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
6
6
|
mode: FieldMode;
|
|
7
7
|
visible: boolean;
|
|
8
8
|
disabled: boolean;
|
|
@@ -2,7 +2,7 @@ import { ApFieldTextProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare const _default: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{}>, {
|
|
5
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
5
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
6
6
|
mode: FieldMode;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
bordered: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: DefineComponent<ApFieldTextAreaProps, {
|
|
|
17
17
|
}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{
|
|
18
18
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
20
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
21
21
|
mode: FieldMode;
|
|
22
22
|
disabled: boolean;
|
|
23
23
|
bordered: boolean;
|
|
@@ -2,7 +2,7 @@ import { ApFieldTextAreaProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare const _default: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{}>, {
|
|
5
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
5
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
6
6
|
mode: FieldMode;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
bordered: boolean;
|
|
@@ -680,9 +680,9 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
680
680
|
layout: string;
|
|
681
681
|
colon: boolean;
|
|
682
682
|
labelAlign: FormLabelAlign;
|
|
683
|
-
validateTrigger: string | string[];
|
|
684
683
|
hideRequiredMark: boolean;
|
|
685
684
|
validateOnRuleChange: boolean;
|
|
685
|
+
validateTrigger: string | string[];
|
|
686
686
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
687
687
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
688
688
|
formRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -2,8 +2,8 @@ import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
-
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
6
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
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';
|
|
@@ -31,7 +31,6 @@ declare function __VLS_template(): {
|
|
|
31
31
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
32
32
|
readonly layout?: string | undefined;
|
|
33
33
|
readonly disabled?: boolean | undefined;
|
|
34
|
-
readonly prefixCls?: string | undefined;
|
|
35
34
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
36
35
|
span: (StringConstructor | NumberConstructor)[];
|
|
37
36
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,17 +99,18 @@ declare function __VLS_template(): {
|
|
|
100
99
|
}>> & HTMLAttributes) | undefined;
|
|
101
100
|
readonly colon?: boolean | undefined;
|
|
102
101
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
103
|
-
readonly name?: string | undefined;
|
|
104
|
-
readonly rules?: {
|
|
105
|
-
[k: string]: RuleObject | RuleObject[];
|
|
106
|
-
} | undefined;
|
|
107
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
108
102
|
readonly labelWrap?: boolean | undefined;
|
|
103
|
+
readonly prefixCls?: string | undefined;
|
|
109
104
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
110
105
|
readonly hideRequiredMark?: boolean | undefined;
|
|
106
|
+
readonly rules?: {
|
|
107
|
+
[k: string]: RuleObject | RuleObject[];
|
|
108
|
+
} | undefined;
|
|
111
109
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
112
110
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
113
111
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
112
|
+
readonly name?: string | undefined;
|
|
113
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
114
114
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
115
115
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
116
116
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -797,9 +797,9 @@ declare function __VLS_template(): {
|
|
|
797
797
|
layout: string;
|
|
798
798
|
colon: boolean;
|
|
799
799
|
labelAlign: FormLabelAlign;
|
|
800
|
-
validateTrigger: string | string[];
|
|
801
800
|
hideRequiredMark: boolean;
|
|
802
801
|
validateOnRuleChange: boolean;
|
|
802
|
+
validateTrigger: string | string[];
|
|
803
803
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
804
804
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
805
805
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -825,11 +825,11 @@ declare function __VLS_template(): {
|
|
|
825
825
|
layout: string;
|
|
826
826
|
colon: boolean;
|
|
827
827
|
labelAlign: FormLabelAlign;
|
|
828
|
-
validateTrigger: string | string[];
|
|
829
828
|
hideRequiredMark: boolean;
|
|
830
829
|
validateOnRuleChange: boolean;
|
|
830
|
+
validateTrigger: string | string[];
|
|
831
831
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
832
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
832
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
833
833
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
834
834
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
835
835
|
resetFields: () => Promise<void>;
|
|
@@ -874,9 +874,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
874
874
|
open: boolean;
|
|
875
875
|
colon: boolean;
|
|
876
876
|
labelAlign: FormLabelAlign;
|
|
877
|
-
validateTrigger: string | string[];
|
|
878
877
|
hideRequiredMark: boolean;
|
|
879
878
|
validateOnRuleChange: boolean;
|
|
879
|
+
validateTrigger: string | string[];
|
|
880
880
|
submitter: false | ApFormSubmitterConfig;
|
|
881
881
|
showCancel: boolean;
|
|
882
882
|
drawerProps: Omit<Partial< ExtractPropTypes<{
|
|
@@ -990,7 +990,6 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
990
990
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
991
991
|
readonly layout?: string | undefined;
|
|
992
992
|
readonly disabled?: boolean | undefined;
|
|
993
|
-
readonly prefixCls?: string | undefined;
|
|
994
993
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
995
994
|
span: (StringConstructor | NumberConstructor)[];
|
|
996
995
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1059,17 +1058,18 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1059
1058
|
}>> & HTMLAttributes) | undefined;
|
|
1060
1059
|
readonly colon?: boolean | undefined;
|
|
1061
1060
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1062
|
-
readonly name?: string | undefined;
|
|
1063
|
-
readonly rules?: {
|
|
1064
|
-
[k: string]: RuleObject | RuleObject[];
|
|
1065
|
-
} | undefined;
|
|
1066
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
1067
1061
|
readonly labelWrap?: boolean | undefined;
|
|
1062
|
+
readonly prefixCls?: string | undefined;
|
|
1068
1063
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
1069
1064
|
readonly hideRequiredMark?: boolean | undefined;
|
|
1065
|
+
readonly rules?: {
|
|
1066
|
+
[k: string]: RuleObject | RuleObject[];
|
|
1067
|
+
} | undefined;
|
|
1070
1068
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
1071
1069
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
1072
1070
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
1071
|
+
readonly name?: string | undefined;
|
|
1072
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
1073
1073
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
1074
1074
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
1075
1075
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -1756,9 +1756,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1756
1756
|
layout: string;
|
|
1757
1757
|
colon: boolean;
|
|
1758
1758
|
labelAlign: FormLabelAlign;
|
|
1759
|
-
validateTrigger: string | string[];
|
|
1760
1759
|
hideRequiredMark: boolean;
|
|
1761
1760
|
validateOnRuleChange: boolean;
|
|
1761
|
+
validateTrigger: string | string[];
|
|
1762
1762
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1763
1763
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1764
1764
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -1784,11 +1784,11 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1784
1784
|
layout: string;
|
|
1785
1785
|
colon: boolean;
|
|
1786
1786
|
labelAlign: FormLabelAlign;
|
|
1787
|
-
validateTrigger: string | string[];
|
|
1788
1787
|
hideRequiredMark: boolean;
|
|
1789
1788
|
validateOnRuleChange: boolean;
|
|
1789
|
+
validateTrigger: string | string[];
|
|
1790
1790
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1791
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
1791
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
1792
1792
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
1793
1793
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
1794
1794
|
resetFields: () => Promise<void>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ButtonProps, ColProps, DrawerProps, FormItemProps, FormProps, ModalProps, RowProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { FormItemExpose } from '@aplus-frontend/antdv/es/form/FormItem';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
-
import { Recordable } from '../type';
|
|
4
|
+
import { LiteralUnion, Recordable } from '../type';
|
|
5
5
|
import { VNode } from 'vue';
|
|
6
|
+
import { BreakPointType } from './search-form/hooks/use-count-per-row';
|
|
6
7
|
export type { ApFormChangeInfo, ApFormFinishInfo } from './provider/interface';
|
|
7
8
|
export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
|
|
8
9
|
export type ApFormItemTransformFn = (value: any) => any;
|
|
@@ -147,6 +148,10 @@ export type ApFormItemExpose = FormItemExpose & {
|
|
|
147
148
|
*/
|
|
148
149
|
getFieldValue: (shouldFormat?: boolean) => any;
|
|
149
150
|
};
|
|
151
|
+
export type SearchFormResizeConfig = {
|
|
152
|
+
target?: LiteralUnion<'document' | 'form', string>;
|
|
153
|
+
breakPoint?: BreakPointType;
|
|
154
|
+
};
|
|
150
155
|
export type ApFormListProps = {
|
|
151
156
|
name: FormItemProps['name'];
|
|
152
157
|
/**
|
|
@@ -178,8 +183,14 @@ export type ApFormSearchFormProps = ApFormProps & {
|
|
|
178
183
|
sortable?: boolean;
|
|
179
184
|
/**
|
|
180
185
|
* 尺寸监听目标元素(用于响应式)
|
|
186
|
+
* @deprecated use `resize` instead.
|
|
181
187
|
*/
|
|
182
188
|
resizeTarget?: HTMLElement | null;
|
|
189
|
+
/**
|
|
190
|
+
* 尺寸变化配置项
|
|
191
|
+
* @since 6.35.3
|
|
192
|
+
*/
|
|
193
|
+
resize?: SearchFormResizeConfig;
|
|
183
194
|
/**
|
|
184
195
|
* 查询按钮loading延迟(默认300ms)
|
|
185
196
|
*/
|