@aplus-frontend/ui 0.6.0-beta.16 → 0.6.0-beta.18
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 +118 -109
- package/es/src/ap-field/date-range/index.vue.mjs +8 -7
- package/es/src/ap-field/number/index.vue.d.ts +2 -4
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +2 -4
- package/es/src/ap-field/select/index.vue.d.ts +3 -6
- package/es/src/ap-field/slider/index.vue.d.ts +2 -4
- package/es/src/ap-field/text/index.vue2.mjs +42 -44
- package/es/src/ap-field/text/password.vue.mjs +15 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
- package/es/src/ap-form/ap-form.vue2.mjs +18 -17
- package/es/src/ap-form/dependency/index.vue.mjs +24 -23
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +2 -2
- package/es/src/ap-form/item/index.vue.d.ts +5 -10
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- package/es/src/ap-form/items/text/password.vue.mjs +9 -9
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
- package/es/src/ap-form/provider/index.vue.mjs +6 -5
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
- package/es/src/ap-form/search-form/index.vue.mjs +50 -50
- package/es/src/ap-form/set/index.vue.mjs +7 -6
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
- package/es/src/ap-grid/index.vue.mjs +79 -75
- package/es/src/ap-grid/interface.d.ts +13 -0
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +116 -106
- package/es/src/ap-list/interface.d.ts +20 -0
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +87 -83
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +12 -11
- package/es/src/ap-table/constants.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +113 -105
- package/es/src/ap-table/interface.d.ts +14 -1
- package/es/src/ap-table/utils.d.ts +3 -3
- package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
- package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
- package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/es/src/business/ap-keep-alive/hook.mjs +31 -0
- package/es/src/business/ap-keep-alive/index.d.ts +101 -0
- package/es/src/business/ap-keep-alive/index.mjs +13 -0
- package/es/src/business/ap-keep-alive/interface.d.ts +35 -0
- package/es/src/business/ap-keep-alive/interface.mjs +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.d.ts +51 -0
- package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/es/src/business/ap-keep-alive/keeper/index.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/es/src/business/ap-keep-alive/utils.mjs +41 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/index.d.ts +32 -5
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
- package/es/src/business/batch-input-group/index.vue.mjs +10 -9
- package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +18 -16
- package/es/src/editable-table/form-item.vue.mjs +23 -23
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +199 -190
- package/es/src/mask/index.vue.mjs +21 -20
- package/es/src/resize-observer/interface.d.ts +2 -3
- package/es/src/scroll-bar/interface.d.ts +7 -7
- package/es/src/scroll-view/interface.d.ts +2 -3
- package/es/src/splitter/SplitBar.vue2.mjs +1 -0
- package/es/src/splitter/Splitter.vue2.mjs +1 -0
- package/es/src/text/group.vue.mjs +7 -6
- package/es/src/text/index.vue.mjs +20 -19
- 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 +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +2 -4
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
- package/lib/src/ap-field/select/index.vue.d.ts +3 -6
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +2 -2
- package/lib/src/ap-form/item/index.vue.d.ts +5 -10
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -8
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +13 -0
- package/lib/src/ap-list/index.vue.d.ts +2 -9
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +20 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +14 -1
- package/lib/src/ap-table/utils.d.ts +3 -3
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
- package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/hook.js +1 -0
- package/lib/src/business/ap-keep-alive/index.d.ts +101 -0
- package/lib/src/business/ap-keep-alive/index.js +1 -0
- package/lib/src/business/ap-keep-alive/interface.d.ts +35 -0
- package/lib/src/business/ap-keep-alive/interface.js +1 -0
- package/lib/src/business/ap-keep-alive/keep-alive.d.ts +51 -0
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/index.d.ts +32 -5
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/full-screen/interface.d.ts +5 -6
- package/lib/src/index.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/interface.d.ts +2 -3
- package/lib/src/scroll-bar/interface.d.ts +7 -7
- package/lib/src/scroll-view/interface.d.ts +2 -3
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -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 +1 -1
- package/package.json +7 -6
- package/theme/antd-global-overwrite/admin/field.css +12 -0
- package/theme/antd-global-overwrite/admin/field.less +16 -0
- package/theme/antd-global-overwrite/admin/index.css +12 -0
- package/theme/antd-global-overwrite/aplus/field.css +12 -0
- package/theme/antd-global-overwrite/aplus/field.less +16 -0
- package/theme/antd-global-overwrite/aplus/index.css +12 -0
- package/theme/ap-action/item.css +1 -1
- package/theme/ap-action/item.less +1 -1
- package/theme/ap-card/ap-card.css +1 -1
- package/theme/ap-card/ap-card.less +1 -1
- package/theme/ap-grid/index.css +6 -1
- package/theme/ap-grid/index.less +5 -0
- package/theme/ap-table/ap-table.css +6 -1
- package/theme/ap-table/ap-table.less +5 -0
- package/theme/ap-table-modal/index.css +6 -1
- package/theme/editable-table/index.css +1 -1
- package/theme/index.css +14 -2
- package/theme/ui-mode.css +2 -0
- package/theme/ui-mode.less +4 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { isVNode as K, defineComponent as Q, useSlots as Y, ref as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { isVNode as K, defineComponent as Q, useSlots as Y, ref as h, computed as V, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b, createElementBlock as N, openBlock as F, Fragment as ee, createBlock as M, createCommentVNode as S, withCtx as g, renderSlot as _, withModifiers as te, normalizeClass as ie, resolveDynamicComponent as L, createTextVNode as ne, toDisplayString as oe } from "vue";
|
|
2
|
+
import { Button as w, Flex as ae, Space as le, Drawer as se } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { getSingleVNode as re } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { isBoolean as ue, isUndefined as de, omit as
|
|
8
|
-
import { convertReactiveToRaw as
|
|
7
|
+
import { isBoolean as ue, isUndefined as de, omit as me } from "lodash-unified";
|
|
8
|
+
import { convertReactiveToRaw as ce } from "../../utils/index.mjs";
|
|
9
9
|
import { useControllableValue as fe } from "../../hooks/useControllableValue.mjs";
|
|
10
10
|
import { useLocale as pe } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
13
|
-
function U(
|
|
14
|
-
return typeof
|
|
11
|
+
import { useNamespace as ve } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import he from "../ap-form.vue2.mjs";
|
|
13
|
+
function U(c) {
|
|
14
|
+
return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !K(c);
|
|
15
15
|
}
|
|
16
16
|
const je = /* @__PURE__ */ Q({
|
|
17
|
+
name: "ApFormDrawerForm",
|
|
17
18
|
__name: "index",
|
|
18
19
|
props: {
|
|
19
20
|
layout: {
|
|
@@ -94,17 +95,17 @@ const je = /* @__PURE__ */ Q({
|
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
emits: ["update:open"],
|
|
97
|
-
setup(
|
|
98
|
+
setup(c, {
|
|
98
99
|
expose: j,
|
|
99
100
|
emit: E
|
|
100
101
|
}) {
|
|
101
|
-
const n =
|
|
102
|
+
const n = c, y = Y(), D = E, a = h(), p = h(), u = h(!1), {
|
|
102
103
|
value: C,
|
|
103
|
-
updateValue:
|
|
104
|
+
updateValue: v
|
|
104
105
|
} = fe(n, D, {
|
|
105
106
|
valuePropName: "open",
|
|
106
107
|
defaultValue: !1
|
|
107
|
-
}),
|
|
108
|
+
}), m = V(() => {
|
|
108
109
|
var t, i, s, r;
|
|
109
110
|
const e = {
|
|
110
111
|
onResize: () => {
|
|
@@ -119,47 +120,47 @@ const je = /* @__PURE__ */ Q({
|
|
|
119
120
|
onResize: ((s = n.resize) == null ? void 0 : s.onResize) ?? e.onResize,
|
|
120
121
|
resizeOnOpen: de((r = n.resize) == null ? void 0 : r.resizeOnOpen) ? e.onResize : n.resize.resizeOnOpen
|
|
121
122
|
};
|
|
122
|
-
}), f =
|
|
123
|
+
}), f = h(W()), {
|
|
123
124
|
t: z
|
|
124
125
|
} = pe(), {
|
|
125
126
|
e: $,
|
|
126
|
-
em:
|
|
127
|
-
} =
|
|
128
|
-
[
|
|
127
|
+
em: T
|
|
128
|
+
} = ve("ap-form-drawer-form"), q = V(() => [$("resize-bar"), {
|
|
129
|
+
[T("resize-bar", "min-disabled")]: l(f) === l(m).minWidth
|
|
129
130
|
}, {
|
|
130
|
-
[
|
|
131
|
+
[T("resize-bar", "max-disabled")]: l(f) === l(m).maxWidth
|
|
131
132
|
}]);
|
|
132
133
|
P(() => a.value, (e) => {
|
|
133
134
|
var t;
|
|
134
135
|
e && p.value && ((t = e.setFieldsValue) == null || t.call(e, p.value), p.value = void 0);
|
|
135
136
|
}), P(() => l(C), (e) => {
|
|
136
137
|
var t;
|
|
137
|
-
e && (t = l(
|
|
138
|
+
e && (t = l(m)) != null && t.resizeOnOpen && (f.value = W());
|
|
138
139
|
});
|
|
139
|
-
function
|
|
140
|
+
function W() {
|
|
140
141
|
var t;
|
|
141
|
-
const e = (t = l(
|
|
142
|
+
const e = (t = l(m)) == null ? void 0 : t.minWidth;
|
|
142
143
|
return !e || e && e < n.width ? n.width : e;
|
|
143
144
|
}
|
|
144
|
-
const
|
|
145
|
+
const B = re(y.trigger), x = B ? Z(B, {
|
|
145
146
|
onClick: () => {
|
|
146
|
-
|
|
147
|
+
v(!0);
|
|
147
148
|
}
|
|
148
|
-
}) : null,
|
|
149
|
+
}) : null, A = V(() => {
|
|
149
150
|
var t, i, s, r;
|
|
150
151
|
const e = [];
|
|
151
152
|
if (n.submitter === !1)
|
|
152
153
|
return null;
|
|
153
154
|
if (n.showCancel) {
|
|
154
155
|
let o;
|
|
155
|
-
e.push(d(
|
|
156
|
-
onClick:
|
|
156
|
+
e.push(d(w, {
|
|
157
|
+
onClick: O,
|
|
157
158
|
disabled: u.value
|
|
158
159
|
}, U(o = z("ap.common.cancelText")) ? o : {
|
|
159
160
|
default: () => [o]
|
|
160
161
|
}));
|
|
161
162
|
}
|
|
162
|
-
return ((t = n.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(d(
|
|
163
|
+
return ((t = n.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(d(w, b(((i = n.submitter) == null ? void 0 : i.resetButtonProps) || {}, {
|
|
163
164
|
key: "submit",
|
|
164
165
|
disabled: u.value,
|
|
165
166
|
onClick: X
|
|
@@ -168,7 +169,7 @@ const je = /* @__PURE__ */ Q({
|
|
|
168
169
|
var o;
|
|
169
170
|
return [((o = n.submitter) == null ? void 0 : o.resetText) || z("ap.common.resetText")];
|
|
170
171
|
}
|
|
171
|
-
})), ((s = n.submitter) == null ? void 0 : s.submitButtonProps) !== !1 && e.push(d(
|
|
172
|
+
})), ((s = n.submitter) == null ? void 0 : s.submitButtonProps) !== !1 && e.push(d(w, b({
|
|
172
173
|
type: "primary",
|
|
173
174
|
key: "submit"
|
|
174
175
|
}, ((r = n.submitter) == null ? void 0 : r.submitButtonProps) || {}, {
|
|
@@ -179,25 +180,25 @@ const je = /* @__PURE__ */ Q({
|
|
|
179
180
|
var o;
|
|
180
181
|
return [((o = n.submitter) == null ? void 0 : o.submitText) || z("ap.common.okText")];
|
|
181
182
|
}
|
|
182
|
-
})), d(
|
|
183
|
+
})), d(ae, {
|
|
183
184
|
justify: "flex-end"
|
|
184
185
|
}, {
|
|
185
|
-
default: () => [
|
|
186
|
+
default: () => [y.submitter ? y.submitter(e) : d(le, null, U(e) ? e : {
|
|
186
187
|
default: () => [e]
|
|
187
188
|
})]
|
|
188
189
|
});
|
|
189
190
|
});
|
|
190
|
-
function
|
|
191
|
+
function I() {
|
|
191
192
|
var e, t;
|
|
192
|
-
(t = (e =
|
|
193
|
+
(t = (e = m.value) == null ? void 0 : e.onResize) == null || t.call(e), document.addEventListener("mousemove", R), document.addEventListener("mouseup", k);
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
const t = l(
|
|
195
|
+
function R(e) {
|
|
196
|
+
const t = l(m), i = (document.body.offsetWidth || 1e3) - (e.clientX - document.body.offsetLeft), s = (t == null ? void 0 : t.minWidth) ?? (n.width || 800), r = (t == null ? void 0 : t.maxWidth) ?? window.innerWidth * 0.8;
|
|
196
197
|
let o = i;
|
|
197
198
|
i < s && (o = s), i > r && (o = r), f.value = o;
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
-
document.removeEventListener("mousemove",
|
|
200
|
+
function k() {
|
|
201
|
+
document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", k);
|
|
201
202
|
}
|
|
202
203
|
function X() {
|
|
203
204
|
var e, t, i;
|
|
@@ -209,26 +210,26 @@ const je = /* @__PURE__ */ Q({
|
|
|
209
210
|
try {
|
|
210
211
|
const r = await ((e = a.value) == null ? void 0 : e.validateFieldsReturnTransformed());
|
|
211
212
|
(i = (t = n.submitter) == null ? void 0 : t.onSubmit) == null || i.call(t), u.value = !0;
|
|
212
|
-
const o = (s = n.onFinish) == null ? void 0 : s.call(n,
|
|
213
|
+
const o = (s = n.onFinish) == null ? void 0 : s.call(n, ce(r));
|
|
213
214
|
if (n.submitTimeout && o instanceof Promise) {
|
|
214
215
|
const J = setTimeout(() => u.value = !1, n.submitTimeout);
|
|
215
216
|
o.finally(() => {
|
|
216
217
|
clearTimeout(J), u.value = !1;
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
|
-
await o &&
|
|
220
|
+
await o && v(!1);
|
|
220
221
|
} finally {
|
|
221
222
|
u.value = !1;
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
-
l(u) ||
|
|
225
|
+
function O() {
|
|
226
|
+
l(u) || v(!1);
|
|
226
227
|
}
|
|
227
228
|
function H(e) {
|
|
228
|
-
!e && l(u) ||
|
|
229
|
+
!e && l(u) || v(e);
|
|
229
230
|
}
|
|
230
231
|
return j({
|
|
231
|
-
resetFields: () => {
|
|
232
|
+
resetFields: async () => {
|
|
232
233
|
var e;
|
|
233
234
|
(e = a.value) == null || e.resetFields();
|
|
234
235
|
},
|
|
@@ -267,28 +268,36 @@ const je = /* @__PURE__ */ Q({
|
|
|
267
268
|
getInternalInstance: (e) => {
|
|
268
269
|
var t;
|
|
269
270
|
return (t = a.value) == null ? void 0 : t.getInternalInstance(e);
|
|
271
|
+
},
|
|
272
|
+
getFieldsValueTransformed: (e) => {
|
|
273
|
+
var t;
|
|
274
|
+
return (t = a.value) == null ? void 0 : t.getFieldsValueTransformed(e);
|
|
275
|
+
},
|
|
276
|
+
validateFieldsReturnTransformed: (e) => {
|
|
277
|
+
var t;
|
|
278
|
+
return (t = a.value) == null ? void 0 : t.validateFieldsReturnTransformed(e);
|
|
270
279
|
}
|
|
271
|
-
}), (e, t) => (
|
|
280
|
+
}), (e, t) => (F(), N(ee, null, [d(l(se), b(e.drawerProps, {
|
|
272
281
|
open: l(C),
|
|
273
282
|
width: f.value,
|
|
274
283
|
"onUpdate:open": H,
|
|
275
|
-
onCancel:
|
|
284
|
+
onCancel: O
|
|
276
285
|
}), {
|
|
277
286
|
title: g(() => [_(e.$slots, "title", {}, () => [ne(oe(n.title), 1)])]),
|
|
278
|
-
footer: g(() => [(
|
|
279
|
-
default: g(() => [d(
|
|
287
|
+
footer: g(() => [(F(), M(L(A.value)))]),
|
|
288
|
+
default: g(() => [d(he, b({
|
|
280
289
|
ref_key: "formRef",
|
|
281
290
|
ref: a
|
|
282
|
-
}, l(
|
|
291
|
+
}, l(me)(n, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
|
|
283
292
|
default: g(() => [_(e.$slots, "default")]),
|
|
284
293
|
_: 3
|
|
285
|
-
}, 16), e.resize ? (
|
|
294
|
+
}, 16), e.resize ? (F(), N("div", {
|
|
286
295
|
key: 0,
|
|
287
296
|
class: ie(q.value),
|
|
288
|
-
onMousedown: te(
|
|
297
|
+
onMousedown: te(I, ["stop", "prevent"])
|
|
289
298
|
}, null, 34)) : S("", !0)]),
|
|
290
299
|
_: 3
|
|
291
|
-
}, 16, ["open", "width"]), l(x) ? (
|
|
300
|
+
}, 16, ["open", "width"]), l(x) ? (F(), M(L(l(x)), {
|
|
292
301
|
key: 0
|
|
293
302
|
})) : S("", !0)], 64));
|
|
294
303
|
}
|
|
@@ -241,8 +241,8 @@ export type ApFormDrawerFormProps = Omit<ApFormProps, 'onFinish'> & {
|
|
|
241
241
|
*/
|
|
242
242
|
resize?: CustomizeResizeType | boolean;
|
|
243
243
|
};
|
|
244
|
-
export type ApFormModalFormExpose = ApFormExpose
|
|
245
|
-
export type ApFormDrawerFormExpose =
|
|
244
|
+
export type ApFormModalFormExpose = Omit<ApFormExpose, 'registerWatch'>;
|
|
245
|
+
export type ApFormDrawerFormExpose = ApFormModalFormExpose;
|
|
246
246
|
/**
|
|
247
247
|
* ApFormItem支持的插槽
|
|
248
248
|
*/
|
|
@@ -6,11 +6,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
|
6
6
|
import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
|
|
7
7
|
import { CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
8
|
import { OnCleanup } from '@vue/reactivity';
|
|
9
|
-
declare function onFieldBlur(): void;
|
|
10
|
-
declare function onFieldChange(): void;
|
|
11
|
-
declare function clearValidate(): void;
|
|
12
|
-
declare function resetField(): void;
|
|
13
|
-
declare function getFieldValue(shouldFormat?: boolean): any;
|
|
14
9
|
declare function __VLS_template(): {
|
|
15
10
|
attrs: Partial<{}>;
|
|
16
11
|
slots: Readonly<ApFormItemSlots> & ApFormItemSlots;
|
|
@@ -795,11 +790,11 @@ declare function __VLS_template(): {
|
|
|
795
790
|
};
|
|
796
791
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
797
792
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
798
|
-
onFieldBlur:
|
|
799
|
-
onFieldChange:
|
|
800
|
-
clearValidate:
|
|
801
|
-
resetField:
|
|
802
|
-
getFieldValue:
|
|
793
|
+
onFieldBlur: () => void;
|
|
794
|
+
onFieldChange: () => void;
|
|
795
|
+
clearValidate: () => void;
|
|
796
|
+
resetField: () => void;
|
|
797
|
+
getFieldValue: (shouldFormat?: boolean) => any;
|
|
803
798
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
804
799
|
hasFeedback: boolean;
|
|
805
800
|
colon: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B,
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as g, computed as S, createBlock as k, openBlock as F, normalizeProps as d, guardReactiveProps as n, unref as l, createSlots as f, withCtx as i, createVNode as C, mergeProps as P, renderList as u, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as m, pick as $ } from "lodash-unified";
|
|
@@ -54,8 +54,16 @@ const E = /* @__PURE__ */ B({
|
|
|
54
54
|
disabled: { type: Boolean, default: void 0 }
|
|
55
55
|
},
|
|
56
56
|
setup(_, { expose: v }) {
|
|
57
|
-
const o = _,
|
|
58
|
-
|
|
57
|
+
const o = _, p = x(), t = g(), h = S(() => {
|
|
58
|
+
var e, a;
|
|
59
|
+
return {
|
|
60
|
+
placeholder: o.placeholder,
|
|
61
|
+
disabled: o.disabled,
|
|
62
|
+
...o.field || {},
|
|
63
|
+
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
return v({
|
|
59
67
|
focus: () => {
|
|
60
68
|
var e;
|
|
61
69
|
(e = t.value) == null || e.focus();
|
|
@@ -68,17 +76,7 @@ const E = /* @__PURE__ */ B({
|
|
|
68
76
|
var e;
|
|
69
77
|
(e = t.value) == null || e.request();
|
|
70
78
|
}
|
|
71
|
-
})
|
|
72
|
-
const p = g(), h = S(() => {
|
|
73
|
-
var e, a;
|
|
74
|
-
return {
|
|
75
|
-
placeholder: o.placeholder,
|
|
76
|
-
disabled: o.disabled,
|
|
77
|
-
...o.field || {},
|
|
78
|
-
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
return (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
|
|
79
|
+
}), (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
|
|
82
80
|
default: i(() => [
|
|
83
81
|
C(l(R), P(h.value, {
|
|
84
82
|
ref_key: "selectRef",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as P, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as u, pick as
|
|
3
|
+
import { ApField as S } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as u, pick as w } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
|
-
import
|
|
6
|
+
import C from "../../item/index.vue.mjs";
|
|
7
7
|
const z = /* @__PURE__ */ B({
|
|
8
|
-
name: "
|
|
8
|
+
name: "ApFormItemPassword",
|
|
9
9
|
__name: "password",
|
|
10
10
|
props: {
|
|
11
11
|
htmlFor: {},
|
|
@@ -53,7 +53,7 @@ const z = /* @__PURE__ */ B({
|
|
|
53
53
|
disabled: { type: Boolean, default: void 0 }
|
|
54
54
|
},
|
|
55
55
|
setup(c, { expose: b }) {
|
|
56
|
-
const { Text: h } =
|
|
56
|
+
const { Text: h } = S, p = _(), v = c, a = g();
|
|
57
57
|
return b({
|
|
58
58
|
focus: () => {
|
|
59
59
|
var e;
|
|
@@ -63,9 +63,9 @@ const z = /* @__PURE__ */ B({
|
|
|
63
63
|
var e;
|
|
64
64
|
(e = a.value) == null || e.blur();
|
|
65
65
|
}
|
|
66
|
-
}), (e, R) => (k(), x(
|
|
66
|
+
}), (e, R) => (k(), x(C, t(s(o(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
67
67
|
default: d(() => [
|
|
68
|
-
F(o(h).Password,
|
|
68
|
+
F(o(h).Password, P({
|
|
69
69
|
ref_key: "inputRef",
|
|
70
70
|
ref: a,
|
|
71
71
|
disabled: e.disabled,
|
|
@@ -81,7 +81,7 @@ const z = /* @__PURE__ */ B({
|
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
83
83
|
}, [
|
|
84
|
-
i(o(
|
|
84
|
+
i(o(w)(p, o(m)), (y, l) => ({
|
|
85
85
|
name: l,
|
|
86
86
|
fn: d((r) => [
|
|
87
87
|
f(e.$slots, l, t(s(r || {})))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemTextAreaProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormItemSlots } from '../../interface';
|
|
4
|
-
import { CreateComponentPublicInstanceWithMixins,
|
|
4
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ExtractPropTypes, PropType, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
5
|
import { ApFieldTextAreaProps, FieldMode } from '../../..';
|
|
6
6
|
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
7
7
|
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
@@ -19,7 +19,7 @@ declare function __VLS_template(): {
|
|
|
19
19
|
}>, {
|
|
20
20
|
focus: (options?: InputFocusOptions) => void;
|
|
21
21
|
blur: () => void;
|
|
22
|
-
resizableTextArea:
|
|
22
|
+
resizableTextArea: any;
|
|
23
23
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
24
|
"update:value": (...args: any[]) => void;
|
|
25
25
|
}, PublicProps, {
|
|
@@ -301,7 +301,7 @@ declare function __VLS_template(): {
|
|
|
301
301
|
}>, {
|
|
302
302
|
focus: (options?: InputFocusOptions) => void;
|
|
303
303
|
blur: () => void;
|
|
304
|
-
resizableTextArea:
|
|
304
|
+
resizableTextArea: any;
|
|
305
305
|
}, {}, {}, {}, {
|
|
306
306
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
307
307
|
mode: FieldMode;
|
|
@@ -333,7 +333,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
333
333
|
}>, {
|
|
334
334
|
focus: (options?: InputFocusOptions) => void;
|
|
335
335
|
blur: () => void;
|
|
336
|
-
resizableTextArea:
|
|
336
|
+
resizableTextArea: any;
|
|
337
337
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
338
338
|
"update:value": (...args: any[]) => void;
|
|
339
339
|
}, PublicProps, {
|
|
@@ -615,7 +615,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
615
615
|
}>, {
|
|
616
616
|
focus: (options?: InputFocusOptions) => void;
|
|
617
617
|
blur: () => void;
|
|
618
|
-
resizableTextArea:
|
|
618
|
+
resizableTextArea: any;
|
|
619
619
|
}, {}, {}, {}, {
|
|
620
620
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
621
621
|
mode: FieldMode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B,
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as g, createBlock as k, openBlock as F, normalizeProps as n, guardReactiveProps as i, unref as l, createSlots as u, withCtx as p, createVNode as C, mergeProps as P, renderList as c, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as b, pick as $ } from "lodash-unified";
|
|
@@ -54,8 +54,16 @@ const E = /* @__PURE__ */ B({
|
|
|
54
54
|
disabled: { type: Boolean, default: void 0 }
|
|
55
55
|
},
|
|
56
56
|
setup(v, { expose: h }) {
|
|
57
|
-
const o = v,
|
|
58
|
-
|
|
57
|
+
const o = v, f = x(), a = S(), y = g(() => {
|
|
58
|
+
var e, r;
|
|
59
|
+
return {
|
|
60
|
+
placeholder: o.placeholder,
|
|
61
|
+
disabled: o.disabled,
|
|
62
|
+
...o.field || {},
|
|
63
|
+
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (r = o.field) == null ? void 0 : r.bordered
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
return h({
|
|
59
67
|
focus: () => {
|
|
60
68
|
var e;
|
|
61
69
|
(e = a.value) == null || e.focus();
|
|
@@ -68,17 +76,7 @@ const E = /* @__PURE__ */ B({
|
|
|
68
76
|
var d;
|
|
69
77
|
(d = a.value) == null || d.request(e, r);
|
|
70
78
|
}
|
|
71
|
-
})
|
|
72
|
-
const f = S(), y = g(() => {
|
|
73
|
-
var e, r;
|
|
74
|
-
return {
|
|
75
|
-
placeholder: o.placeholder,
|
|
76
|
-
disabled: o.disabled,
|
|
77
|
-
...o.field || {},
|
|
78
|
-
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (r = o.field) == null ? void 0 : r.bordered
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
return (e, r) => (F(), k(N, n(i(l(b)(o, ["field", "placeholder", "disabled"]))), u({
|
|
79
|
+
}), (e, r) => (F(), k(N, n(i(l(b)(o, ["field", "placeholder", "disabled"]))), u({
|
|
82
80
|
default: p(() => [
|
|
83
81
|
C(l(R), P(y.value, {
|
|
84
82
|
ref_key: "treeSelectRef",
|
|
@@ -818,7 +818,7 @@ declare function __VLS_template(): {
|
|
|
818
818
|
hideRequiredMark: boolean;
|
|
819
819
|
validateOnRuleChange: boolean;
|
|
820
820
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
821
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
821
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
822
822
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
823
823
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
824
824
|
resetFields: () => Promise<void>;
|
|
@@ -841,15 +841,17 @@ declare function __VLS_template(): {
|
|
|
841
841
|
};
|
|
842
842
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
843
843
|
declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
844
|
-
|
|
844
|
+
validate: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
845
|
+
setFieldsValue: (fields: Partial<any>) => void;
|
|
846
|
+
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
847
|
+
resetFields: () => Promise<void>;
|
|
845
848
|
clearValidate: (name?: NamePath) => void;
|
|
846
849
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
847
850
|
getFieldsValue: (nameList?: true | InternalNamePath[]) => Partial<any> | undefined;
|
|
848
|
-
|
|
849
|
-
scrollToField: (name: NamePath, options?: {}) => void;
|
|
850
|
-
setFieldValue: (key: string, newValue: any) => void;
|
|
851
|
-
setFieldsValue: (values: Record<string, any>) => void;
|
|
851
|
+
scrollToField: (name: NamePath, options?: any) => void;
|
|
852
852
|
getInternalInstance: (mark: string) => ApFormInternalInstance | undefined;
|
|
853
|
+
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
854
|
+
getFieldsValueTransformed: (nameList?: true | InternalNamePath[]) => Partial<any> | undefined;
|
|
853
855
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
854
856
|
"update:open": (...args: any[]) => void;
|
|
855
857
|
}, string, PublicProps, Readonly<ApFormModalFormProps> & Readonly<{
|
|
@@ -1948,7 +1950,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1948
1950
|
hideRequiredMark: boolean;
|
|
1949
1951
|
validateOnRuleChange: boolean;
|
|
1950
1952
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1951
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
1953
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
1952
1954
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
1953
1955
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
1954
1956
|
resetFields: () => Promise<void>;
|