@aplus-frontend/ui 7.12.5 → 7.12.6
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/editable/form-item.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/form-item.vue.mjs +21 -20
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.mjs +9 -8
- package/es/src/ag-grid/editable/interface.d.ts +2 -1
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/items/number/index.vue.d.ts +4 -5
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- 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 +3 -4
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/constants.d.ts +11 -11
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/style/single-file.mjs +2 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +2 -2
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -4
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +2 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/items/number/index.vue.d.ts +4 -5
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- 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 +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +11 -11
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -4
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableAgGridFormItemExpose, EditableAgGridFormItemProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableAgGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableAgGridFormItemExpose<RecordType>>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -11,7 +11,7 @@ import { useEditableFormItemApi as se } from "../hooks/use-editable-form-item-ap
|
|
|
11
11
|
import "../index.vue2.mjs";
|
|
12
12
|
import ie from "../style/editable.mjs";
|
|
13
13
|
import { getShadowName as me } from "../utils.mjs";
|
|
14
|
-
import { getColumnTransformOptions as ue, arrayToObject as
|
|
14
|
+
import { getColumnTransformOptions as ue, arrayToObject as b } from "./utils.mjs";
|
|
15
15
|
import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
|
|
16
16
|
import { useGlobalConfig as pe } from "../../config-provider/hooks/use-global-config.mjs";
|
|
17
17
|
import ce from "../index.vue.mjs";
|
|
@@ -131,13 +131,13 @@ const _e = /* @__PURE__ */ A({
|
|
|
131
131
|
name: {},
|
|
132
132
|
formItem: {}
|
|
133
133
|
},
|
|
134
|
-
setup(
|
|
134
|
+
setup(C, {
|
|
135
135
|
expose: R
|
|
136
136
|
}) {
|
|
137
|
-
const B = L(), o =
|
|
137
|
+
const B = L(), o = C, {
|
|
138
138
|
b: v
|
|
139
|
-
} = de("editable-aggrid"), x = ie("editable-aggrid"),
|
|
140
|
-
internalInstance:
|
|
139
|
+
} = de("editable-aggrid"), x = ie("editable-aggrid"), l = g(), {
|
|
140
|
+
internalInstance: r
|
|
141
141
|
} = te();
|
|
142
142
|
function I(e) {
|
|
143
143
|
const t = ue(o.columns || []);
|
|
@@ -151,12 +151,12 @@ const _e = /* @__PURE__ */ A({
|
|
|
151
151
|
const i = me(o.name);
|
|
152
152
|
let c = [];
|
|
153
153
|
P(() => {
|
|
154
|
-
const e = o.formItem?.initialValue ?? ne(
|
|
155
|
-
e && (
|
|
154
|
+
const e = o.formItem?.initialValue ?? ne(r?.getInitialValues() ?? {}, o.name);
|
|
155
|
+
e && (r?.updateInitialModel(i, b(u(e), o.rowKey)), c = u(e), _(u(e), "suffix", !0));
|
|
156
156
|
});
|
|
157
|
-
const
|
|
157
|
+
const s = g([]), S = ae(o.name);
|
|
158
158
|
G(() => S.value, (e) => {
|
|
159
|
-
ee(e,
|
|
159
|
+
ee(e, s.value) || f(e ?? u(c));
|
|
160
160
|
}, {
|
|
161
161
|
deep: !0,
|
|
162
162
|
flush: "post"
|
|
@@ -172,9 +172,9 @@ const _e = /* @__PURE__ */ A({
|
|
|
172
172
|
setRowData: O,
|
|
173
173
|
clear: H,
|
|
174
174
|
refreshRowIds: d
|
|
175
|
-
} = se(o,
|
|
175
|
+
} = se(o, r, s, i);
|
|
176
176
|
function K() {
|
|
177
|
-
const e =
|
|
177
|
+
const e = l.value?._internalGridApi;
|
|
178
178
|
if (!d.value?.length || !e)
|
|
179
179
|
return;
|
|
180
180
|
const t = d.value.map((a) => e.getRowNode(a)).filter((a) => !!a);
|
|
@@ -184,16 +184,16 @@ const _e = /* @__PURE__ */ A({
|
|
|
184
184
|
}), d.value = [];
|
|
185
185
|
}
|
|
186
186
|
function f(e) {
|
|
187
|
-
|
|
188
|
-
const t =
|
|
189
|
-
|
|
187
|
+
s.value = [...e];
|
|
188
|
+
const t = b(e, o.rowKey);
|
|
189
|
+
r?.setFieldValue(o.name, [...e]), r?.setFieldValue(i, t);
|
|
190
190
|
}
|
|
191
191
|
function w(e, t) {
|
|
192
|
-
const a = e === "end" ?
|
|
193
|
-
|
|
192
|
+
const a = e === "end" ? s.value.length - 1 : e;
|
|
193
|
+
l.value?.scrollToRow(a, t);
|
|
194
194
|
}
|
|
195
195
|
function M(e, t) {
|
|
196
|
-
|
|
196
|
+
l.value?.scrollToColumn(e, t);
|
|
197
197
|
}
|
|
198
198
|
return R({
|
|
199
199
|
add: F,
|
|
@@ -207,7 +207,8 @@ const _e = /* @__PURE__ */ A({
|
|
|
207
207
|
setTableData: f,
|
|
208
208
|
scrollTo: w,
|
|
209
209
|
scrollToRow: w,
|
|
210
|
-
scrollToColumn: M
|
|
210
|
+
scrollToColumn: M,
|
|
211
|
+
table: l
|
|
211
212
|
}), (e, t) => (U(), W($, null, [p(n(y).FormItem, {
|
|
212
213
|
hidden: "",
|
|
213
214
|
name: e.name,
|
|
@@ -218,11 +219,11 @@ const _e = /* @__PURE__ */ A({
|
|
|
218
219
|
}, {
|
|
219
220
|
default: h(() => [p(ce, q(n(oe)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
220
221
|
ref_key: "tableRef",
|
|
221
|
-
ref:
|
|
222
|
+
ref: l,
|
|
222
223
|
class: [n(v)(), n(x)],
|
|
223
224
|
size: "mini",
|
|
224
225
|
columns: n(E),
|
|
225
|
-
"data-source":
|
|
226
|
+
"data-source": s.value,
|
|
226
227
|
"search-form": !1,
|
|
227
228
|
onUpdate: K
|
|
228
229
|
}), J({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableAgGridExpose, EditableAgGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as M, useSlots as $, ref as
|
|
2
|
-
import { isEqual as te, isArray as
|
|
1
|
+
import { defineComponent as M, useSlots as $, ref as b, watch as q, unref as l, createBlock as J, openBlock as Q, withCtx as m, createVNode as v, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as ee, normalizeProps as oe, guardReactiveProps as ae } from "vue";
|
|
2
|
+
import { isEqual as te, isArray as R, omit as ne } from "lodash-unified";
|
|
3
3
|
import { ApForm as c } from "../../ap-form/index.mjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
@@ -137,10 +137,10 @@ const Fe = /* @__PURE__ */ M({
|
|
|
137
137
|
}) {
|
|
138
138
|
const S = $(), a = C, {
|
|
139
139
|
b: T
|
|
140
|
-
} = de("editable-aggrid"), F = se("editable-aggrid"), _ = B, i =
|
|
140
|
+
} = de("editable-aggrid"), F = se("editable-aggrid"), _ = B, i = b(), {
|
|
141
141
|
value: s,
|
|
142
142
|
updateValue: y
|
|
143
|
-
} = ue(a, _), r =
|
|
143
|
+
} = ue(a, _), r = b(), E = c.useWatch(a.name, r);
|
|
144
144
|
q(s, (e) => {
|
|
145
145
|
const o = f(e, a.rowKey);
|
|
146
146
|
te(o, l(E)) || r.value?.setFieldValue(a.name, o);
|
|
@@ -172,7 +172,7 @@ const Fe = /* @__PURE__ */ M({
|
|
|
172
172
|
r.value?.resetFields();
|
|
173
173
|
}
|
|
174
174
|
function w(e) {
|
|
175
|
-
return e ? (
|
|
175
|
+
return e ? (R(e) ? e : [e]).map((t) => R(t) ? [a.name, ...t] : [a.name, t]) : void 0;
|
|
176
176
|
}
|
|
177
177
|
function g(e) {
|
|
178
178
|
try {
|
|
@@ -217,7 +217,8 @@ const Fe = /* @__PURE__ */ M({
|
|
|
217
217
|
setTableData: U,
|
|
218
218
|
scrollTo: h,
|
|
219
219
|
scrollToRow: h,
|
|
220
|
-
scrollToColumn: W
|
|
220
|
+
scrollToColumn: W,
|
|
221
|
+
table: i
|
|
221
222
|
}), (e, o) => (Q(), J(l(c), {
|
|
222
223
|
ref_key: "formRef",
|
|
223
224
|
ref: r,
|
|
@@ -228,11 +229,11 @@ const Fe = /* @__PURE__ */ M({
|
|
|
228
229
|
height: "100%"
|
|
229
230
|
}
|
|
230
231
|
}, {
|
|
231
|
-
default: m(() => [
|
|
232
|
+
default: m(() => [v(l(c).FormItem, {
|
|
232
233
|
name: e.name,
|
|
233
234
|
"no-style": ""
|
|
234
235
|
}, {
|
|
235
|
-
default: m(() => [
|
|
236
|
+
default: m(() => [v(me, X(l(ne)(a, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
|
|
236
237
|
ref_key: "tableRef",
|
|
237
238
|
ref: i,
|
|
238
239
|
class: [l(T)(), l(F)],
|
|
@@ -5,7 +5,7 @@ import { ApFormItemProps } from '../../ap-form';
|
|
|
5
5
|
import { ApTableValueFields, ApTableValueTypes, CommonFieldReturnType, FieldPropsType } from '../../ap-table/interface';
|
|
6
6
|
import { EditableTableExpose } from '../../editable-table';
|
|
7
7
|
import { Recordable } from '../../type';
|
|
8
|
-
import { AgGridColumnType, AgGridProps } from '../interface';
|
|
8
|
+
import { AgGridColumnType, AgGridExpose, AgGridProps } from '../interface';
|
|
9
9
|
export type EditableAgGridColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<AgGridColumnType<RecordType, ExtraValueType, ValueType>, 'children' | 'customRender' | 'hideInSearch' | 'customRenderFormItem' | 'fieldProps'> & {
|
|
10
10
|
children?: EditableAgGridColumnType<RecordType, ExtraValueType, ValueType>[];
|
|
11
11
|
/**
|
|
@@ -85,6 +85,7 @@ export type EditableAgGridExpose<RecordType = any, ModelType = RecordType[]> = O
|
|
|
85
85
|
scrollToColumn: (key: string, position?: 'auto' | 'start' | 'middle' | 'end') => void;
|
|
86
86
|
remove: (data: RecordType | RecordType[]) => void;
|
|
87
87
|
validateFieldsReturnTransformed: EditableTableExpose<ModelType, RecordType>['validateFields'];
|
|
88
|
+
table: AgGridExpose;
|
|
88
89
|
};
|
|
89
90
|
export type EditableAgGridFormItemExpose<RecordType = any, ModelType = RecordType[]> = Omit<EditableAgGridExpose<RecordType, ModelType>, 'resetFields' | 'validateFields' | 'validateFieldsReturnTransformed'>;
|
|
90
91
|
export type EditableAgGridFormItemProps<RecordType = any> = Omit<EditableAgGridProps<RecordType>, 'name' | 'value' | 'onUpdate:value'> & {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Recordable } from '../type';
|
|
2
2
|
import { AgGridExpose, AgGridProps, AgGridSlots } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & AgGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<AgGridExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<AgGridSlots<RecordType>> & AgGridSlots<RecordType>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
|
|
|
6
6
|
options: Ref<{
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
label?: any;
|
|
9
|
-
value?:
|
|
9
|
+
value?: string | number | null | undefined;
|
|
10
10
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
}[], DefaultOptionType[] | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
label?: any;
|
|
15
|
-
value?:
|
|
15
|
+
value?: string | number | null | undefined;
|
|
16
16
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
17
17
|
disabled?: boolean | undefined;
|
|
18
18
|
}[]>;
|
|
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
checkable?: boolean | undefined;
|
|
10
10
|
disableCheckbox?: boolean | undefined;
|
|
11
|
-
children?: any[] | undefined;
|
|
11
|
+
children?: /*elided*/ any[] | undefined;
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
value?: RawValueType | undefined;
|
|
15
15
|
title?: any;
|
|
16
16
|
label?: any;
|
|
17
17
|
key?: Key | undefined;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
checkable?: boolean | undefined;
|
|
21
21
|
disableCheckbox?: boolean | undefined;
|
|
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
checkable?: boolean | undefined;
|
|
26
26
|
disableCheckbox?: boolean | undefined;
|
|
27
|
-
children?: any[] | undefined;
|
|
27
|
+
children?: /*elided*/ any[] | undefined;
|
|
28
28
|
} | {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
value?: RawValueType | undefined;
|
|
31
31
|
title?: any;
|
|
32
32
|
label?: any;
|
|
33
33
|
key?: Key | undefined;
|
|
34
|
-
children?: any[] | undefined;
|
|
34
|
+
children?: /*elided*/ any[] | undefined;
|
|
35
35
|
disabled?: boolean | undefined;
|
|
36
36
|
checkable?: boolean | undefined;
|
|
37
37
|
disableCheckbox?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign,
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
3
|
import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
@@ -7,7 +7,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
declare function __VLS_template(): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/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 { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -7,7 +7,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';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -119,7 +118,7 @@ declare function __VLS_template(): {
|
|
|
119
118
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
120
119
|
readonly initialValues?: Recordable | undefined;
|
|
121
120
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
122
|
-
readonly syncToUrl?:
|
|
121
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
123
122
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
124
123
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
125
124
|
$attrs: {
|
|
@@ -1087,7 +1086,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1087
1086
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1088
1087
|
readonly initialValues?: Recordable | undefined;
|
|
1089
1088
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1090
|
-
readonly syncToUrl?:
|
|
1089
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1091
1090
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1092
1091
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1093
1092
|
$attrs: {
|
|
@@ -4,7 +4,6 @@ import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, Component
|
|
|
4
4
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
5
5
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
6
6
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
-
import { InputNumberProps } from '@aplus-frontend/antdv';
|
|
8
7
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
8
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
9
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -44,10 +43,10 @@ declare function __VLS_template(): {
|
|
|
44
43
|
readonly value?: ValueType | undefined;
|
|
45
44
|
readonly disabled?: boolean | undefined;
|
|
46
45
|
readonly placeholder?: string | undefined;
|
|
46
|
+
readonly id?: string | undefined;
|
|
47
47
|
readonly prefixCls?: string | undefined;
|
|
48
48
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
49
49
|
readonly name?: string | undefined;
|
|
50
|
-
readonly id?: string | undefined;
|
|
51
50
|
readonly readonly?: boolean | undefined;
|
|
52
51
|
readonly autofocus?: boolean | undefined;
|
|
53
52
|
readonly bordered?: boolean | undefined;
|
|
@@ -79,7 +78,7 @@ declare function __VLS_template(): {
|
|
|
79
78
|
offset: ValueType;
|
|
80
79
|
type: "up" | "down";
|
|
81
80
|
}) => void) | undefined;
|
|
82
|
-
readonly inputMode?:
|
|
81
|
+
readonly inputMode?: "input" | "spinner" | undefined;
|
|
83
82
|
readonly emptyText?: string | undefined;
|
|
84
83
|
readonly thousands?: boolean | undefined;
|
|
85
84
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
@@ -565,10 +564,10 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
565
564
|
readonly value?: ValueType | undefined;
|
|
566
565
|
readonly disabled?: boolean | undefined;
|
|
567
566
|
readonly placeholder?: string | undefined;
|
|
567
|
+
readonly id?: string | undefined;
|
|
568
568
|
readonly prefixCls?: string | undefined;
|
|
569
569
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
570
570
|
readonly name?: string | undefined;
|
|
571
|
-
readonly id?: string | undefined;
|
|
572
571
|
readonly readonly?: boolean | undefined;
|
|
573
572
|
readonly autofocus?: boolean | undefined;
|
|
574
573
|
readonly bordered?: boolean | undefined;
|
|
@@ -600,7 +599,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
600
599
|
offset: ValueType;
|
|
601
600
|
type: "up" | "down";
|
|
602
601
|
}) => void) | undefined;
|
|
603
|
-
readonly inputMode?:
|
|
602
|
+
readonly inputMode?: "input" | "spinner" | undefined;
|
|
604
603
|
readonly emptyText?: string | undefined;
|
|
605
604
|
readonly thousands?: boolean | undefined;
|
|
606
605
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
@@ -67,12 +67,12 @@ declare function __VLS_template(): {
|
|
|
67
67
|
readonly animation?: string | undefined;
|
|
68
68
|
readonly children?: VueNode[] | undefined;
|
|
69
69
|
readonly placeholder?: any;
|
|
70
|
+
readonly id?: string | undefined;
|
|
70
71
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
71
72
|
readonly prefixCls?: string | undefined;
|
|
72
73
|
readonly virtual?: boolean | undefined;
|
|
73
74
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
74
75
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
75
|
-
readonly id?: string | undefined;
|
|
76
76
|
readonly autofocus?: boolean | undefined;
|
|
77
77
|
readonly loading?: boolean | undefined;
|
|
78
78
|
readonly bordered?: boolean | undefined;
|
|
@@ -130,12 +130,12 @@ declare function __VLS_template(): {
|
|
|
130
130
|
readonly emptyText?: string | undefined;
|
|
131
131
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
132
132
|
readonly multiple?: boolean | undefined;
|
|
133
|
-
readonly value?:
|
|
133
|
+
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
134
134
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
135
|
-
readonly searchMode?:
|
|
135
|
+
readonly searchMode?: "filter" | "request" | undefined;
|
|
136
136
|
readonly refetchOnFocus?: boolean | undefined;
|
|
137
137
|
readonly lazy?: boolean | undefined;
|
|
138
|
-
readonly addAll?:
|
|
138
|
+
readonly addAll?: boolean | number | undefined;
|
|
139
139
|
readonly params?: Recordable | undefined;
|
|
140
140
|
readonly searchDelay?: number | undefined;
|
|
141
141
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -725,12 +725,12 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
725
725
|
readonly animation?: string | undefined;
|
|
726
726
|
readonly children?: VueNode[] | undefined;
|
|
727
727
|
readonly placeholder?: any;
|
|
728
|
+
readonly id?: string | undefined;
|
|
728
729
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
729
730
|
readonly prefixCls?: string | undefined;
|
|
730
731
|
readonly virtual?: boolean | undefined;
|
|
731
732
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
732
733
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
733
|
-
readonly id?: string | undefined;
|
|
734
734
|
readonly autofocus?: boolean | undefined;
|
|
735
735
|
readonly loading?: boolean | undefined;
|
|
736
736
|
readonly bordered?: boolean | undefined;
|
|
@@ -788,12 +788,12 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
788
788
|
readonly emptyText?: string | undefined;
|
|
789
789
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
790
790
|
readonly multiple?: boolean | undefined;
|
|
791
|
-
readonly value?:
|
|
791
|
+
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
792
792
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
793
|
-
readonly searchMode?:
|
|
793
|
+
readonly searchMode?: "filter" | "request" | undefined;
|
|
794
794
|
readonly refetchOnFocus?: boolean | undefined;
|
|
795
795
|
readonly lazy?: boolean | undefined;
|
|
796
|
-
readonly addAll?:
|
|
796
|
+
readonly addAll?: boolean | number | undefined;
|
|
797
797
|
readonly params?: Recordable | undefined;
|
|
798
798
|
readonly searchDelay?: number | undefined;
|
|
799
799
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -47,10 +47,10 @@ declare function __VLS_template(): {
|
|
|
47
47
|
readonly value?: string | number | undefined;
|
|
48
48
|
readonly disabled?: boolean | undefined;
|
|
49
49
|
readonly placeholder?: string | number | undefined;
|
|
50
|
+
readonly id?: string | undefined;
|
|
50
51
|
readonly prefixCls?: string | undefined;
|
|
51
52
|
readonly name?: string | undefined;
|
|
52
53
|
readonly focused?: boolean | undefined;
|
|
53
|
-
readonly id?: string | undefined;
|
|
54
54
|
readonly readonly?: boolean | undefined;
|
|
55
55
|
readonly autofocus?: boolean | undefined;
|
|
56
56
|
readonly autocomplete?: string | undefined;
|
|
@@ -204,10 +204,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
204
204
|
readonly value?: string | number | undefined;
|
|
205
205
|
readonly disabled?: boolean | undefined;
|
|
206
206
|
readonly placeholder?: string | number | undefined;
|
|
207
|
+
readonly id?: string | undefined;
|
|
207
208
|
readonly prefixCls?: string | undefined;
|
|
208
209
|
readonly name?: string | undefined;
|
|
209
210
|
readonly focused?: boolean | undefined;
|
|
210
|
-
readonly id?: string | undefined;
|
|
211
211
|
readonly readonly?: boolean | undefined;
|
|
212
212
|
readonly autofocus?: boolean | undefined;
|
|
213
213
|
readonly autocomplete?: string | undefined;
|
|
@@ -48,10 +48,10 @@ declare function __VLS_template(): {
|
|
|
48
48
|
readonly value?: string | number | undefined;
|
|
49
49
|
readonly disabled?: boolean | undefined;
|
|
50
50
|
readonly placeholder?: string | number | undefined;
|
|
51
|
+
readonly id?: string | undefined;
|
|
51
52
|
readonly prefixCls?: string | undefined;
|
|
52
53
|
readonly name?: string | undefined;
|
|
53
54
|
readonly focused?: boolean | undefined;
|
|
54
|
-
readonly id?: string | undefined;
|
|
55
55
|
readonly readonly?: boolean | undefined;
|
|
56
56
|
readonly autofocus?: boolean | undefined;
|
|
57
57
|
readonly autocomplete?: string | undefined;
|
|
@@ -211,10 +211,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
211
211
|
readonly value?: string | number | undefined;
|
|
212
212
|
readonly disabled?: boolean | undefined;
|
|
213
213
|
readonly placeholder?: string | number | undefined;
|
|
214
|
+
readonly id?: string | undefined;
|
|
214
215
|
readonly prefixCls?: string | undefined;
|
|
215
216
|
readonly name?: string | undefined;
|
|
216
217
|
readonly focused?: boolean | undefined;
|
|
217
|
-
readonly id?: string | undefined;
|
|
218
218
|
readonly readonly?: boolean | undefined;
|
|
219
219
|
readonly autofocus?: boolean | undefined;
|
|
220
220
|
readonly autocomplete?: string | undefined;
|
|
@@ -71,12 +71,12 @@ declare function __VLS_template(): {
|
|
|
71
71
|
readonly animation?: string | undefined;
|
|
72
72
|
readonly children?: VueNode[] | undefined;
|
|
73
73
|
readonly placeholder?: any;
|
|
74
|
+
readonly id?: string | undefined;
|
|
74
75
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
75
76
|
readonly prefixCls?: string | undefined;
|
|
76
77
|
readonly virtual?: boolean | undefined;
|
|
77
78
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
78
79
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
79
|
-
readonly id?: string | undefined;
|
|
80
80
|
readonly autofocus?: boolean | undefined;
|
|
81
81
|
readonly loading?: boolean | undefined;
|
|
82
82
|
readonly bordered?: boolean | undefined;
|
|
@@ -875,12 +875,12 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
875
875
|
readonly animation?: string | undefined;
|
|
876
876
|
readonly children?: VueNode[] | undefined;
|
|
877
877
|
readonly placeholder?: any;
|
|
878
|
+
readonly id?: string | undefined;
|
|
878
879
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
879
880
|
readonly prefixCls?: string | undefined;
|
|
880
881
|
readonly virtual?: boolean | undefined;
|
|
881
882
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
882
883
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
883
|
-
readonly id?: string | undefined;
|
|
884
884
|
readonly autofocus?: boolean | undefined;
|
|
885
885
|
readonly loading?: boolean | undefined;
|
|
886
886
|
readonly bordered?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/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, RendererNode, RendererElement, CSSProperties } from 'vue';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
import { ApFormModalFormProps } from '../interface';
|
|
@@ -7,7 +7,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -121,7 +120,7 @@ declare function __VLS_template(): {
|
|
|
121
120
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
122
121
|
readonly initialValues?: Recordable | undefined;
|
|
123
122
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
124
|
-
readonly syncToUrl?:
|
|
123
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
125
124
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
126
125
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
127
126
|
$attrs: {
|
|
@@ -1324,7 +1323,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1324
1323
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1325
1324
|
readonly initialValues?: Recordable | undefined;
|
|
1326
1325
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1327
|
-
readonly syncToUrl?:
|
|
1326
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1328
1327
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1329
1328
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1330
1329
|
$attrs: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath,
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
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';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
@@ -119,7 +118,7 @@ declare function __VLS_template(): {
|
|
|
119
118
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
120
119
|
readonly initialValues?: Recordable | undefined;
|
|
121
120
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
122
|
-
readonly syncToUrl?:
|
|
121
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
123
122
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
124
123
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
125
124
|
$attrs: {
|
|
@@ -1107,7 +1106,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1107
1106
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1108
1107
|
readonly initialValues?: Recordable | undefined;
|
|
1109
1108
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1110
|
-
readonly syncToUrl?:
|
|
1109
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1111
1110
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1112
1111
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1113
1112
|
$attrs: {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|