@aplus-frontend/ui 6.35.2 → 6.37.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.d.ts +2 -30
- package/es/src/ag-grid/index.vue.mjs +1 -1
- package/es/src/ag-grid/interface.d.ts +15 -0
- package/es/src/ap-action/group/index.vue.mjs +41 -34
- package/es/src/ap-action/interface.d.ts +17 -0
- package/es/src/ap-action/item/index.vue2.mjs +34 -25
- package/es/src/ap-action/item-dropdown/index.vue.mjs +22 -20
- package/es/src/ap-action/item-modal/index.vue.mjs +14 -12
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +13 -11
- 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.d.ts +2 -30
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +15 -0
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +17 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- 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 +6 -0
- package/theme/ap-action/item.css +6 -0
- package/theme/ap-action/item.less +9 -0
- package/theme/ap-attachment/ap-attachment.css +8 -4
- package/theme/ap-attachment/ap-attachment.less +8 -4
- package/theme/ap-grid/index.css +6 -0
- package/theme/ap-table/ap-table.css +6 -0
- package/theme/ap-table-modal/index.css +6 -0
- 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/editable-table/index.css +6 -0
- package/theme/index.css +20 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as E, ref as d, unref as r, computed as G, h as H, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as U, createVNode as
|
|
2
|
-
import { message as
|
|
1
|
+
import { defineComponent as E, ref as d, unref as r, computed as G, h as H, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as U, createVNode as h, resolveDynamicComponent as q } from "vue";
|
|
2
|
+
import { message as R, Modal as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { ApTable as $ } from "../../ap-table/index.mjs";
|
|
5
5
|
import { cloneDeep as j, omit as T } from "lodash-unified";
|
|
@@ -35,6 +35,7 @@ const ue = /* @__PURE__ */ E({
|
|
|
35
35
|
"onUpdate:open": {},
|
|
36
36
|
onChange: {},
|
|
37
37
|
afterClose: {},
|
|
38
|
+
afterOpenChange: {},
|
|
38
39
|
centered: { type: Boolean, default: void 0 },
|
|
39
40
|
width: {},
|
|
40
41
|
footer: {},
|
|
@@ -59,7 +60,8 @@ const ue = /* @__PURE__ */ E({
|
|
|
59
60
|
wrapProps: {},
|
|
60
61
|
focusTriggerAfterClose: { type: Boolean, default: void 0 },
|
|
61
62
|
modalRender: {},
|
|
62
|
-
mousePosition: {}
|
|
63
|
+
mousePosition: {},
|
|
64
|
+
loading: { type: Boolean }
|
|
63
65
|
},
|
|
64
66
|
emits: ["finish"],
|
|
65
67
|
setup(S, { expose: B, emit: P }) {
|
|
@@ -81,7 +83,7 @@ const ue = /* @__PURE__ */ E({
|
|
|
81
83
|
});
|
|
82
84
|
}, x = () => {
|
|
83
85
|
s.value = !1, f = null, u?.(y.ModalCancel), u = null;
|
|
84
|
-
},
|
|
86
|
+
}, O = async (t) => {
|
|
85
87
|
t = z({
|
|
86
88
|
...t,
|
|
87
89
|
...v.value
|
|
@@ -91,7 +93,7 @@ const ue = /* @__PURE__ */ E({
|
|
|
91
93
|
data: n,
|
|
92
94
|
total: l
|
|
93
95
|
};
|
|
94
|
-
},
|
|
96
|
+
}, _ = async () => {
|
|
95
97
|
if (a.value.length > e.maxCount) {
|
|
96
98
|
u?.(y.ExceedMaxCount);
|
|
97
99
|
return;
|
|
@@ -109,7 +111,7 @@ const ue = /* @__PURE__ */ E({
|
|
|
109
111
|
return;
|
|
110
112
|
}
|
|
111
113
|
s.value = !1;
|
|
112
|
-
},
|
|
114
|
+
}, I = G(() => {
|
|
113
115
|
if (!e.getRowKey) return;
|
|
114
116
|
const t = e.getRowKey;
|
|
115
117
|
return {
|
|
@@ -119,7 +121,7 @@ const ue = /* @__PURE__ */ E({
|
|
|
119
121
|
preserveSelectedRowKeys: !0,
|
|
120
122
|
onSelectAll(o, n) {
|
|
121
123
|
if (n.length > e.maxCount) {
|
|
122
|
-
|
|
124
|
+
R.warning(
|
|
123
125
|
b("ap.apTableModal.messageMaxCount", {
|
|
124
126
|
maxCount: e.maxCount
|
|
125
127
|
})
|
|
@@ -136,7 +138,7 @@ const ue = /* @__PURE__ */ E({
|
|
|
136
138
|
onSelect(o, n) {
|
|
137
139
|
if (n) {
|
|
138
140
|
if (a.value.length >= e.maxCount) {
|
|
139
|
-
|
|
141
|
+
R.warning(
|
|
140
142
|
b("ap.apTableModal.messageMaxCount", {
|
|
141
143
|
maxCount: e.maxCount
|
|
142
144
|
})
|
|
@@ -203,27 +205,27 @@ const ue = /* @__PURE__ */ E({
|
|
|
203
205
|
{
|
|
204
206
|
title: D(),
|
|
205
207
|
centered: e.centered ?? !0,
|
|
206
|
-
onOk:
|
|
208
|
+
onOk: _,
|
|
207
209
|
onCancel: x
|
|
208
210
|
}
|
|
209
211
|
), {
|
|
210
212
|
default: k(() => [
|
|
211
213
|
e.renderHeader ? (g(), w(q(e.renderHeader), { key: 0 })) : U("", !0),
|
|
212
|
-
|
|
214
|
+
h(Q, m(e.tableLayoutConfig || {}, {
|
|
213
215
|
"selected-list": a.value,
|
|
214
216
|
onClear: N,
|
|
215
217
|
onDeleteItem: A
|
|
216
218
|
}), {
|
|
217
219
|
default: k(() => [
|
|
218
|
-
|
|
220
|
+
h(r($), m({
|
|
219
221
|
ref_key: "apTableRef",
|
|
220
222
|
ref: i,
|
|
221
223
|
scroll: { y: 450 },
|
|
222
224
|
style: { padding: "0px" },
|
|
223
225
|
columns: t.columns,
|
|
224
|
-
request:
|
|
226
|
+
request: O,
|
|
225
227
|
"row-key": t.getRowKey,
|
|
226
|
-
"row-selection":
|
|
228
|
+
"row-selection": I.value,
|
|
227
229
|
"data-source": C.value,
|
|
228
230
|
"search-form": {
|
|
229
231
|
sortable: !1,
|
|
@@ -2,8 +2,8 @@ import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc }
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
4
|
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
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';
|
|
@@ -22,7 +22,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
22
22
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
23
23
|
readonly layout?: string | undefined;
|
|
24
24
|
readonly disabled?: boolean | undefined;
|
|
25
|
-
readonly prefixCls?: string | undefined;
|
|
26
25
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
27
26
|
span: (StringConstructor | NumberConstructor)[];
|
|
28
27
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -91,17 +90,18 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
91
90
|
}>> & HTMLAttributes) | undefined;
|
|
92
91
|
readonly colon?: boolean | undefined;
|
|
93
92
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
94
|
-
readonly name?: string | undefined;
|
|
95
|
-
readonly rules?: {
|
|
96
|
-
[k: string]: RuleObject | RuleObject[];
|
|
97
|
-
} | undefined;
|
|
98
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
99
93
|
readonly labelWrap?: boolean | undefined;
|
|
94
|
+
readonly prefixCls?: string | undefined;
|
|
100
95
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
101
96
|
readonly hideRequiredMark?: boolean | undefined;
|
|
97
|
+
readonly rules?: {
|
|
98
|
+
[k: string]: RuleObject | RuleObject[];
|
|
99
|
+
} | undefined;
|
|
102
100
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
103
101
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
104
102
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
103
|
+
readonly name?: string | undefined;
|
|
104
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
105
105
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
106
106
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
107
107
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -788,9 +788,9 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
788
788
|
layout: string;
|
|
789
789
|
colon: boolean;
|
|
790
790
|
labelAlign: FormLabelAlign;
|
|
791
|
-
validateTrigger: string | string[];
|
|
792
791
|
hideRequiredMark: boolean;
|
|
793
792
|
validateOnRuleChange: boolean;
|
|
793
|
+
validateTrigger: string | string[];
|
|
794
794
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
795
795
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
796
796
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -816,11 +816,11 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
816
816
|
layout: string;
|
|
817
817
|
colon: boolean;
|
|
818
818
|
labelAlign: FormLabelAlign;
|
|
819
|
-
validateTrigger: string | string[];
|
|
820
819
|
hideRequiredMark: boolean;
|
|
821
820
|
validateOnRuleChange: boolean;
|
|
821
|
+
validateTrigger: string | string[];
|
|
822
822
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
823
|
-
}> & Omit<Readonly<ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
823
|
+
}> & Omit<Readonly<ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
824
824
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
825
825
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
826
826
|
resetFields: () => Promise<void>;
|
|
@@ -2,8 +2,8 @@ import { ViewListModel } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
4
|
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
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';
|
|
@@ -23,7 +23,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
23
23
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
24
24
|
readonly layout?: string | undefined;
|
|
25
25
|
readonly disabled?: boolean | undefined;
|
|
26
|
-
readonly prefixCls?: string | undefined;
|
|
27
26
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
28
27
|
span: (StringConstructor | NumberConstructor)[];
|
|
29
28
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -92,17 +91,18 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
92
91
|
}>> & HTMLAttributes) | undefined;
|
|
93
92
|
readonly colon?: boolean | undefined;
|
|
94
93
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
95
|
-
readonly name?: string | undefined;
|
|
96
|
-
readonly rules?: {
|
|
97
|
-
[k: string]: RuleObject | RuleObject[];
|
|
98
|
-
} | undefined;
|
|
99
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
100
94
|
readonly labelWrap?: boolean | undefined;
|
|
95
|
+
readonly prefixCls?: string | undefined;
|
|
101
96
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
102
97
|
readonly hideRequiredMark?: boolean | undefined;
|
|
98
|
+
readonly rules?: {
|
|
99
|
+
[k: string]: RuleObject | RuleObject[];
|
|
100
|
+
} | undefined;
|
|
103
101
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
104
102
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
105
103
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
104
|
+
readonly name?: string | undefined;
|
|
105
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
106
106
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
107
107
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
108
108
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -789,9 +789,9 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
789
789
|
layout: string;
|
|
790
790
|
colon: boolean;
|
|
791
791
|
labelAlign: FormLabelAlign;
|
|
792
|
-
validateTrigger: string | string[];
|
|
793
792
|
hideRequiredMark: boolean;
|
|
794
793
|
validateOnRuleChange: boolean;
|
|
794
|
+
validateTrigger: string | string[];
|
|
795
795
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
796
796
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
797
797
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -817,11 +817,11 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
817
817
|
layout: string;
|
|
818
818
|
colon: boolean;
|
|
819
819
|
labelAlign: FormLabelAlign;
|
|
820
|
-
validateTrigger: string | string[];
|
|
821
820
|
hideRequiredMark: boolean;
|
|
822
821
|
validateOnRuleChange: boolean;
|
|
822
|
+
validateTrigger: string | string[];
|
|
823
823
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
824
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
824
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
825
825
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
826
826
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
827
827
|
resetFields: () => Promise<void>;
|
|
@@ -3,10 +3,10 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
|
|
4
4
|
trim: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
hasFeedback: boolean;
|
|
7
6
|
colon: boolean;
|
|
8
|
-
autoLink: boolean;
|
|
9
7
|
required: boolean;
|
|
8
|
+
hasFeedback: boolean;
|
|
9
|
+
autoLink: boolean;
|
|
10
10
|
validateFirst: boolean;
|
|
11
11
|
bordered: boolean;
|
|
12
12
|
field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
|
|
@@ -11,7 +11,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
11
11
|
}, string, PublicProps, Readonly<BatchInputGroupProps> & Readonly<{
|
|
12
12
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
14
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
15
15
|
mode: FieldMode;
|
|
16
16
|
bordered: boolean;
|
|
17
17
|
emptyText: string;
|
|
@@ -29,7 +29,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
29
29
|
readonly mode?: FieldMode | undefined;
|
|
30
30
|
readonly class?: unknown;
|
|
31
31
|
readonly style?: unknown;
|
|
32
|
-
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
32
|
+
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
|
|
33
33
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
34
34
|
readonly lazy?: boolean | undefined;
|
|
35
35
|
readonly size?: ButtonSize;
|
|
@@ -102,7 +102,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
102
102
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
103
103
|
"update:value": (...args: any[]) => void;
|
|
104
104
|
}, string, {
|
|
105
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
105
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
106
106
|
mode: FieldMode;
|
|
107
107
|
disabled: boolean;
|
|
108
108
|
bordered: boolean;
|
|
@@ -130,7 +130,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
130
130
|
$nextTick: nextTick;
|
|
131
131
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
132
132
|
} & Readonly<{
|
|
133
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
133
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
134
134
|
mode: FieldMode;
|
|
135
135
|
disabled: boolean;
|
|
136
136
|
bordered: boolean;
|
|
@@ -9,7 +9,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
|
|
|
9
9
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
10
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
11
11
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
12
|
-
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
|
+
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
13
13
|
type ApGridConfig = Pick<ApGridProps, 'rowSelection'>;
|
|
14
14
|
type AgGridConfig = Pick<AgGridProps, 'rowSelection'>;
|
|
15
15
|
export declare const configProviderProps: () => {
|
|
@@ -140,6 +140,10 @@ export declare const configProviderProps: () => {
|
|
|
140
140
|
type: PropType< TimePickerConfig>;
|
|
141
141
|
default: TimePickerConfig;
|
|
142
142
|
};
|
|
143
|
+
card: {
|
|
144
|
+
type: PropType< CardConfig>;
|
|
145
|
+
default: CardConfig;
|
|
146
|
+
};
|
|
143
147
|
apGrid: {
|
|
144
148
|
type: PropType<ApGridConfig>;
|
|
145
149
|
};
|
|
@@ -5,7 +5,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
|
|
|
5
5
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
6
6
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
7
7
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
8
|
-
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
|
+
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
9
9
|
import { ApGridRowSelection, AgGridRowSelection, ViewCacheOption } from '..';
|
|
10
10
|
import { LocaleType } from '../locale';
|
|
11
11
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
|
|
@@ -138,6 +138,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
138
138
|
type: PropType<TimePickerConfig>;
|
|
139
139
|
default: TimePickerConfig;
|
|
140
140
|
};
|
|
141
|
+
card: {
|
|
142
|
+
type: PropType<CardConfig>;
|
|
143
|
+
default: CardConfig;
|
|
144
|
+
};
|
|
141
145
|
apGrid: {
|
|
142
146
|
type: PropType<{
|
|
143
147
|
rowSelection?: true | ApGridRowSelection<any> | undefined;
|
|
@@ -320,6 +324,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
320
324
|
type: PropType<TimePickerConfig>;
|
|
321
325
|
default: TimePickerConfig;
|
|
322
326
|
};
|
|
327
|
+
card: {
|
|
328
|
+
type: PropType<CardConfig>;
|
|
329
|
+
default: CardConfig;
|
|
330
|
+
};
|
|
323
331
|
apGrid: {
|
|
324
332
|
type: PropType<{
|
|
325
333
|
rowSelection?: true | ApGridRowSelection<any> | undefined;
|
|
@@ -405,6 +413,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
405
413
|
inputNumber: InputNumberConfig;
|
|
406
414
|
mentions: MentionsConfig;
|
|
407
415
|
timePicker: TimePickerConfig;
|
|
416
|
+
card: CardConfig;
|
|
408
417
|
api: ApiType;
|
|
409
418
|
apUpload: ApUploadConfig;
|
|
410
419
|
apDescriptions: ApDescriptionsConfig;
|
|
@@ -6,7 +6,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
|
|
|
6
6
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
7
7
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
8
8
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
|
-
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
9
|
+
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { ApGridRowSelection, AgGridRowSelection, ViewCacheOption } from '../..';
|
|
11
11
|
import { LocaleType } from '../../locale';
|
|
12
12
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
|
|
@@ -141,6 +141,10 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
141
141
|
type: PropType<TimePickerConfig>;
|
|
142
142
|
default: TimePickerConfig;
|
|
143
143
|
};
|
|
144
|
+
card: {
|
|
145
|
+
type: PropType<CardConfig>;
|
|
146
|
+
default: CardConfig;
|
|
147
|
+
};
|
|
144
148
|
apGrid: {
|
|
145
149
|
type: PropType<{
|
|
146
150
|
rowSelection?: true | ApGridRowSelection<any> | undefined;
|
|
@@ -4,7 +4,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
|
|
|
4
4
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
5
5
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
6
6
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
7
|
-
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
7
|
+
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
8
|
import { ApGridRowSelection, AgGridRowSelection, ViewCacheOption } from '..';
|
|
9
9
|
import { LocaleType } from '../locale';
|
|
10
10
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
|
|
@@ -143,6 +143,10 @@ export declare const APConfigProvider: {
|
|
|
143
143
|
type: PropType<TimePickerConfig>;
|
|
144
144
|
default: TimePickerConfig;
|
|
145
145
|
};
|
|
146
|
+
card: {
|
|
147
|
+
type: PropType<CardConfig>;
|
|
148
|
+
default: CardConfig;
|
|
149
|
+
};
|
|
146
150
|
apGrid: {
|
|
147
151
|
type: PropType<{
|
|
148
152
|
rowSelection?: true | ApGridRowSelection<any> | undefined;
|
|
@@ -228,6 +232,7 @@ export declare const APConfigProvider: {
|
|
|
228
232
|
inputNumber: InputNumberConfig;
|
|
229
233
|
mentions: MentionsConfig;
|
|
230
234
|
timePicker: TimePickerConfig;
|
|
235
|
+
card: CardConfig;
|
|
231
236
|
api: ApiType;
|
|
232
237
|
apUpload: ApUploadConfig;
|
|
233
238
|
apDescriptions: ApDescriptionsConfig;
|
|
@@ -370,6 +375,10 @@ export declare const APConfigProvider: {
|
|
|
370
375
|
type: PropType<TimePickerConfig>;
|
|
371
376
|
default: TimePickerConfig;
|
|
372
377
|
};
|
|
378
|
+
card: {
|
|
379
|
+
type: PropType<CardConfig>;
|
|
380
|
+
default: CardConfig;
|
|
381
|
+
};
|
|
373
382
|
apGrid: {
|
|
374
383
|
type: PropType<{
|
|
375
384
|
rowSelection?: true | ApGridRowSelection<any> | undefined;
|
|
@@ -455,6 +464,7 @@ export declare const APConfigProvider: {
|
|
|
455
464
|
inputNumber: InputNumberConfig;
|
|
456
465
|
mentions: MentionsConfig;
|
|
457
466
|
timePicker: TimePickerConfig;
|
|
467
|
+
card: CardConfig;
|
|
458
468
|
api: ApiType;
|
|
459
469
|
apUpload: ApUploadConfig;
|
|
460
470
|
apDescriptions: ApDescriptionsConfig;
|
|
@@ -594,6 +604,10 @@ export declare const APConfigProvider: {
|
|
|
594
604
|
type: PropType<TimePickerConfig>;
|
|
595
605
|
default: TimePickerConfig;
|
|
596
606
|
};
|
|
607
|
+
card: {
|
|
608
|
+
type: PropType<CardConfig>;
|
|
609
|
+
default: CardConfig;
|
|
610
|
+
};
|
|
597
611
|
apGrid: {
|
|
598
612
|
type: PropType<{
|
|
599
613
|
rowSelection?: true | ApGridRowSelection<any> | undefined;
|
|
@@ -679,6 +693,7 @@ export declare const APConfigProvider: {
|
|
|
679
693
|
inputNumber: InputNumberConfig;
|
|
680
694
|
mentions: MentionsConfig;
|
|
681
695
|
timePicker: TimePickerConfig;
|
|
696
|
+
card: CardConfig;
|
|
682
697
|
api: ApiType;
|
|
683
698
|
apUpload: ApUploadConfig;
|
|
684
699
|
apDescriptions: ApDescriptionsConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/lib/table/interface';
|
|
2
2
|
import { ConfigProviderProps } from '@aplus-frontend/antdv';
|
|
3
|
-
import { InputConfig, SelectConfig, FormConfig, PaginationConfig, ThemeConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
3
|
+
import { InputConfig, SelectConfig, FormConfig, PaginationConfig, ThemeConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
4
4
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
5
5
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
6
6
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
@@ -60,6 +60,7 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
|
|
|
60
60
|
inputNumber?: InputNumberConfig | undefined;
|
|
61
61
|
mentions?: MentionsConfig | undefined;
|
|
62
62
|
timePicker?: TimePickerConfig | undefined;
|
|
63
|
+
card?: CardConfig | undefined;
|
|
63
64
|
prefixCls?: string | undefined;
|
|
64
65
|
variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
65
66
|
getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -100,6 +101,7 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
|
|
|
100
101
|
inputNumber?: InputNumberConfig | undefined;
|
|
101
102
|
mentions?: MentionsConfig | undefined;
|
|
102
103
|
timePicker?: TimePickerConfig | undefined;
|
|
104
|
+
card?: CardConfig | undefined;
|
|
103
105
|
prefixCls?: string | undefined;
|
|
104
106
|
variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
105
107
|
getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.37.0";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { WorkOrderModalProps } from './interfaces';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
4
|
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
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';
|
|
@@ -26,7 +26,6 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
26
26
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
27
27
|
readonly layout?: string | undefined;
|
|
28
28
|
readonly disabled?: boolean | undefined;
|
|
29
|
-
readonly prefixCls?: string | undefined;
|
|
30
29
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
31
30
|
span: (StringConstructor | NumberConstructor)[];
|
|
32
31
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -95,17 +94,18 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
95
94
|
}>> & HTMLAttributes) | undefined;
|
|
96
95
|
readonly colon?: boolean | undefined;
|
|
97
96
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
98
|
-
readonly name?: string | undefined;
|
|
99
|
-
readonly rules?: {
|
|
100
|
-
[k: string]: RuleObject | RuleObject[];
|
|
101
|
-
} | undefined;
|
|
102
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
103
97
|
readonly labelWrap?: boolean | undefined;
|
|
98
|
+
readonly prefixCls?: string | undefined;
|
|
104
99
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
105
100
|
readonly hideRequiredMark?: boolean | undefined;
|
|
101
|
+
readonly rules?: {
|
|
102
|
+
[k: string]: RuleObject | RuleObject[];
|
|
103
|
+
} | undefined;
|
|
106
104
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
107
105
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
108
106
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
107
|
+
readonly name?: string | undefined;
|
|
108
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
109
109
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
110
110
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
111
111
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -792,9 +792,9 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
792
792
|
layout: string;
|
|
793
793
|
colon: boolean;
|
|
794
794
|
labelAlign: FormLabelAlign;
|
|
795
|
-
validateTrigger: string | string[];
|
|
796
795
|
hideRequiredMark: boolean;
|
|
797
796
|
validateOnRuleChange: boolean;
|
|
797
|
+
validateTrigger: string | string[];
|
|
798
798
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
799
799
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
800
800
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -820,11 +820,11 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
820
820
|
layout: string;
|
|
821
821
|
colon: boolean;
|
|
822
822
|
labelAlign: FormLabelAlign;
|
|
823
|
-
validateTrigger: string | string[];
|
|
824
823
|
hideRequiredMark: boolean;
|
|
825
824
|
validateOnRuleChange: boolean;
|
|
825
|
+
validateTrigger: string | string[];
|
|
826
826
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
827
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
827
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
828
828
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
829
829
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
830
830
|
resetFields: () => Promise<void>;
|
|
@@ -35,6 +35,7 @@ const re = /* @__PURE__ */ T({
|
|
|
35
35
|
"onUpdate:open": { type: Function },
|
|
36
36
|
onChange: { type: Function },
|
|
37
37
|
afterClose: { type: Function },
|
|
38
|
+
afterOpenChange: { type: Function },
|
|
38
39
|
centered: { type: Boolean },
|
|
39
40
|
width: {},
|
|
40
41
|
footer: {},
|
|
@@ -59,7 +60,8 @@ const re = /* @__PURE__ */ T({
|
|
|
59
60
|
wrapProps: {},
|
|
60
61
|
focusTriggerAfterClose: { type: Boolean },
|
|
61
62
|
modalRender: { type: Function },
|
|
62
|
-
mousePosition: {}
|
|
63
|
+
mousePosition: {},
|
|
64
|
+
loading: { type: Boolean }
|
|
63
65
|
},
|
|
64
66
|
emits: ["update:open", "modalClose"],
|
|
65
67
|
setup(b, { emit: g }) {
|
|
@@ -69,7 +71,7 @@ const re = /* @__PURE__ */ T({
|
|
|
69
71
|
}), d = async (r) => (await w.value?.select?.({
|
|
70
72
|
dictCode: r,
|
|
71
73
|
locale: x.value
|
|
72
|
-
}))?.map((u) => ({ label: u.itemText, value: u.itemValue })),
|
|
74
|
+
}))?.map((u) => ({ label: u.itemText, value: u.itemValue })), O = async () => {
|
|
73
75
|
if (!l.value)
|
|
74
76
|
try {
|
|
75
77
|
l.value = !0;
|
|
@@ -82,7 +84,7 @@ const re = /* @__PURE__ */ T({
|
|
|
82
84
|
}, m = () => {
|
|
83
85
|
h(!1), p.value = !1, i("modalClose");
|
|
84
86
|
};
|
|
85
|
-
return (r,
|
|
87
|
+
return (r, _) => (M(), F("div", null, [
|
|
86
88
|
o(e(V), L(a, {
|
|
87
89
|
width: 600,
|
|
88
90
|
centered: !0,
|
|
@@ -95,7 +97,7 @@ const re = /* @__PURE__ */ T({
|
|
|
95
97
|
"wrap-class-name": e(v)(),
|
|
96
98
|
closable: !0,
|
|
97
99
|
"confirm-loading": l.value,
|
|
98
|
-
onOk:
|
|
100
|
+
onOk: O,
|
|
99
101
|
onCancel: m
|
|
100
102
|
}), {
|
|
101
103
|
default: s(() => [
|
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgGridExpose, AgGridProps, AgGridSlots } from './interface';
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <RecordType>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & AgGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
5
5
|
expose(exposed: ShallowUnwrapRef<AgGridExpose>): void;
|
|
6
6
|
attrs: any;
|
|
7
|
-
slots: Readonly<
|
|
8
|
-
/**
|
|
9
|
-
* 自定义查询表单额外的区域
|
|
10
|
-
*/
|
|
11
|
-
searchFormExtra?: any;
|
|
12
|
-
/**
|
|
13
|
-
* 自定义表格上部查询表单下部分区域的渲染
|
|
14
|
-
*/
|
|
15
|
-
title?: (params: {
|
|
16
|
-
selectedRows: RecordType[];
|
|
17
|
-
selectedRowKeys: (string | number)[];
|
|
18
|
-
shownColumns: AgGridColumnType<RecordType>[];
|
|
19
|
-
clearAll: () => void;
|
|
20
|
-
}) => any;
|
|
21
|
-
}> & {
|
|
22
|
-
/**
|
|
23
|
-
* 自定义查询表单额外的区域
|
|
24
|
-
*/
|
|
25
|
-
searchFormExtra?: any;
|
|
26
|
-
/**
|
|
27
|
-
* 自定义表格上部查询表单下部分区域的渲染
|
|
28
|
-
*/
|
|
29
|
-
title?: (params: {
|
|
30
|
-
selectedRows: RecordType[];
|
|
31
|
-
selectedRowKeys: (string | number)[];
|
|
32
|
-
shownColumns: AgGridColumnType<RecordType>[];
|
|
33
|
-
clearAll: () => void;
|
|
34
|
-
}) => any;
|
|
35
|
-
};
|
|
7
|
+
slots: Readonly<AgGridSlots<RecordType>> & AgGridSlots<RecordType>;
|
|
36
8
|
emit: {};
|
|
37
9
|
}>) => VNode & {
|
|
38
10
|
__ctx?: Awaited<typeof __VLS_setup>;
|