@qin-ui/antd-vue-pro 1.1.3 → 1.1.5
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/README.md +3 -5
- package/es/form/{index-9d8a33fe.js → index-a2afc105.js} +19 -12
- package/es/form/index.js +3 -3
- package/es/index.d.ts +54 -43
- package/es/index.js +4 -4
- package/es/style.css +3 -0
- package/es/table/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -188,10 +188,10 @@ ant-design-vue ui组件库form组件的二次封装
|
|
|
188
188
|
|
|
189
189
|
+ UseForm
|
|
190
190
|
|
|
191
|
-
自定义hook
|
|
191
|
+
自定义hook,由数个hook(useFormData、useFields、useFormRef)内聚产生。接收两个参数(initFormData, initFields)返回一个对象
|
|
192
192
|
|
|
193
193
|
```typescript
|
|
194
|
-
type Form = ReturnType<UseFields> & ReturnType<UseFormData>;
|
|
194
|
+
type Form = ReturnType<UseFields> & ReturnType<UseFormData> & ReturnType<UseFormRef>;
|
|
195
195
|
|
|
196
196
|
type UseForm = <T extends FormData>(
|
|
197
197
|
initFormData?: T,
|
|
@@ -254,14 +254,11 @@ import {
|
|
|
254
254
|
useForm,
|
|
255
255
|
ProComponentProvider,
|
|
256
256
|
type ComponentVars,
|
|
257
|
-
type ProFormInstance,
|
|
258
257
|
type Field,
|
|
259
258
|
type Fields,
|
|
260
259
|
} from '@qin-ui/antd-vue-pro/src';
|
|
261
260
|
import { h, ref } from 'vue';
|
|
262
261
|
|
|
263
|
-
const proFormRef = ref<ProFormInstance | null>(null);
|
|
264
|
-
|
|
265
262
|
const CodeContainer: Field['componentContainer'] = (p, ctx) => {
|
|
266
263
|
return h(
|
|
267
264
|
'div',
|
|
@@ -320,6 +317,7 @@ const initFields: Fields = [
|
|
|
320
317
|
];
|
|
321
318
|
|
|
322
319
|
const form = useForm({}, initFields);
|
|
320
|
+
const { formRef: proFormRef } = form
|
|
323
321
|
|
|
324
322
|
const componentVars: ComponentVars = {
|
|
325
323
|
input: { maxlength: 50, valueFormatter: val => val?.trim() },
|
|
@@ -15802,7 +15802,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15802
15802
|
);
|
|
15803
15803
|
const defaultProps = {
|
|
15804
15804
|
validateFirst: true,
|
|
15805
|
-
|
|
15805
|
+
hideFeedback: field.fields
|
|
15806
15806
|
};
|
|
15807
15807
|
return {
|
|
15808
15808
|
...defaultProps,
|
|
@@ -15893,6 +15893,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15893
15893
|
};
|
|
15894
15894
|
}
|
|
15895
15895
|
});
|
|
15896
|
+
const index_vue_vue_type_style_index_0_scoped_28824314_lang = "";
|
|
15897
|
+
const _export_sfc = (sfc, props) => {
|
|
15898
|
+
const target = sfc.__vccOpts || sfc;
|
|
15899
|
+
for (const [key, val] of props) {
|
|
15900
|
+
target[key] = val;
|
|
15901
|
+
}
|
|
15902
|
+
return target;
|
|
15903
|
+
};
|
|
15904
|
+
const BaseFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-28824314"]]);
|
|
15896
15905
|
const generateFieldMap = (fields, prePath = "", preFieldPath = "", fieldMap = {}) => {
|
|
15897
15906
|
fields.forEach((field, index2) => {
|
|
15898
15907
|
let path;
|
|
@@ -16031,10 +16040,15 @@ const useFormData = (initFormData) => {
|
|
|
16031
16040
|
};
|
|
16032
16041
|
return { formData, getFormData, setFormData, activePath, setActivePath };
|
|
16033
16042
|
};
|
|
16043
|
+
const useFormRef = () => {
|
|
16044
|
+
const formRef = ref();
|
|
16045
|
+
return { formRef };
|
|
16046
|
+
};
|
|
16034
16047
|
const useForm = (initFormData = {}, initFields = []) => {
|
|
16035
16048
|
return {
|
|
16036
16049
|
...useFormData(initFormData),
|
|
16037
|
-
...useFields(initFields)
|
|
16050
|
+
...useFields(initFields),
|
|
16051
|
+
...useFormRef()
|
|
16038
16052
|
};
|
|
16039
16053
|
};
|
|
16040
16054
|
const isFunctionString = (param) => {
|
|
@@ -16485,13 +16499,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16485
16499
|
}
|
|
16486
16500
|
});
|
|
16487
16501
|
const index_vue_vue_type_style_index_0_scoped_060ffbee_lang = "";
|
|
16488
|
-
const _export_sfc = (sfc, props) => {
|
|
16489
|
-
const target = sfc.__vccOpts || sfc;
|
|
16490
|
-
for (const [key, val] of props) {
|
|
16491
|
-
target[key] = val;
|
|
16492
|
-
}
|
|
16493
|
-
return target;
|
|
16494
|
-
};
|
|
16495
16502
|
const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-060ffbee"]]);
|
|
16496
16503
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
16497
16504
|
...{
|
|
@@ -16613,7 +16620,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16613
16620
|
model: _formData.value
|
|
16614
16621
|
}, { ...unref(injectAttrs), ..._ctx.$attrs }), {
|
|
16615
16622
|
default: withCtx(() => [
|
|
16616
|
-
createVNode(unref(
|
|
16623
|
+
createVNode(unref(BaseFormItem), {
|
|
16617
16624
|
fields: _fields.value,
|
|
16618
16625
|
grid: _ctx.grid,
|
|
16619
16626
|
disabled: _ctx.$attrs.disabled
|
|
@@ -16627,7 +16634,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16627
16634
|
});
|
|
16628
16635
|
export {
|
|
16629
16636
|
AntdIcon as A,
|
|
16630
|
-
|
|
16637
|
+
BaseFormItem as B,
|
|
16631
16638
|
COMPONENT_MAP as C,
|
|
16632
16639
|
FORM_ITEM_SLOT_KEYS as F,
|
|
16633
16640
|
RULE_TYPE_MAP as R,
|
|
@@ -16636,7 +16643,7 @@ export {
|
|
|
16636
16643
|
_export_sfc as a,
|
|
16637
16644
|
_sfc_main$2 as b,
|
|
16638
16645
|
cloneDeep as c,
|
|
16639
|
-
|
|
16646
|
+
BaseField as d,
|
|
16640
16647
|
_sfc_main$1 as e,
|
|
16641
16648
|
FORM_DATA as f,
|
|
16642
16649
|
get$1 as g,
|
package/es/form/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l,
|
|
1
|
+
import { l, d, B, i, C, b, f, F, k, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-a2afc105.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
import "../component-provider/index.js";
|
|
5
5
|
export {
|
|
6
6
|
l as ArrowFunctionRegexp,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
d as BaseField,
|
|
8
|
+
B as BaseFormItem,
|
|
9
9
|
i as COMMAND,
|
|
10
10
|
C as COMPONENT_MAP,
|
|
11
11
|
b as ContainerFragment,
|
package/es/index.d.ts
CHANGED
|
@@ -304,6 +304,8 @@ export declare interface Common<D extends FormData_2 = FormData_2> {
|
|
|
304
304
|
* @example (val) => val?.trim()
|
|
305
305
|
*/
|
|
306
306
|
valueFormatter?: (val: any) => any;
|
|
307
|
+
/** 是否隐藏校验错误信息 */
|
|
308
|
+
hideFeedback?: boolean;
|
|
307
309
|
/** 以data-form-item-开头的属性将会被渲染至formItem的dom节点 */
|
|
308
310
|
[key: `data-form-item-${string}`]: string;
|
|
309
311
|
/** 以data-component-开头的属性将会被渲染至component的dom节点 */
|
|
@@ -1856,7 +1858,7 @@ export declare type FieldType = {
|
|
|
1856
1858
|
} & Record<string, any>;
|
|
1857
1859
|
};
|
|
1858
1860
|
|
|
1859
|
-
export declare type Form<D extends FormData_2 = FormData_2> = ReturnType<UseFormData<D>> & ReturnType<UseFields>;
|
|
1861
|
+
export declare type Form<D extends FormData_2 = FormData_2> = ReturnType<UseFormData<D>> & ReturnType<UseFields> & ReturnType<UseFormRef>;
|
|
1860
1862
|
|
|
1861
1863
|
export declare const FORM_DATA: InjectionKey<Record<string, any>>;
|
|
1862
1864
|
|
|
@@ -2093,7 +2095,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2093
2095
|
} | undefined;
|
|
2094
2096
|
readonly validateTrigger?: string | string[] | undefined;
|
|
2095
2097
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
2096
|
-
readonly form?: Form | undefined;
|
|
2097
2098
|
readonly layout?: string | undefined;
|
|
2098
2099
|
readonly labelWrap?: boolean | undefined;
|
|
2099
2100
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
@@ -2109,6 +2110,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2109
2110
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
2110
2111
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
2111
2112
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
2113
|
+
readonly form?: Form | undefined;
|
|
2112
2114
|
readonly activePath?: string | undefined;
|
|
2113
2115
|
"onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
|
|
2114
2116
|
"onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
|
|
@@ -2224,10 +2226,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2224
2226
|
type: PropType<Fields>;
|
|
2225
2227
|
default: () => never[];
|
|
2226
2228
|
};
|
|
2227
|
-
form: {
|
|
2228
|
-
type: PropType<Form>;
|
|
2229
|
-
default: undefined;
|
|
2230
|
-
};
|
|
2231
2229
|
layout: {
|
|
2232
2230
|
type: PropType<string>;
|
|
2233
2231
|
};
|
|
@@ -2269,6 +2267,10 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2269
2267
|
onValidate: {
|
|
2270
2268
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
2271
2269
|
};
|
|
2270
|
+
form: {
|
|
2271
|
+
type: PropType<Form>;
|
|
2272
|
+
default: undefined;
|
|
2273
|
+
};
|
|
2272
2274
|
autoCommandDisabled: {
|
|
2273
2275
|
type: PropType<boolean>;
|
|
2274
2276
|
default: boolean;
|
|
@@ -2423,7 +2425,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2423
2425
|
} | undefined;
|
|
2424
2426
|
readonly validateTrigger?: string | string[] | undefined;
|
|
2425
2427
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
2426
|
-
readonly form?: Form | undefined;
|
|
2427
2428
|
readonly layout?: string | undefined;
|
|
2428
2429
|
readonly labelWrap?: boolean | undefined;
|
|
2429
2430
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
@@ -2439,6 +2440,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2439
2440
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
2440
2441
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
2441
2442
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
2443
|
+
readonly form?: Form | undefined;
|
|
2442
2444
|
readonly activePath?: string | undefined;
|
|
2443
2445
|
"onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
|
|
2444
2446
|
"onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
|
|
@@ -2554,10 +2556,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2554
2556
|
type: PropType<Fields>;
|
|
2555
2557
|
default: () => never[];
|
|
2556
2558
|
};
|
|
2557
|
-
form: {
|
|
2558
|
-
type: PropType<Form>;
|
|
2559
|
-
default: undefined;
|
|
2560
|
-
};
|
|
2561
2559
|
layout: {
|
|
2562
2560
|
type: PropType<string>;
|
|
2563
2561
|
};
|
|
@@ -2599,6 +2597,10 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2599
2597
|
onValidate: {
|
|
2600
2598
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
2601
2599
|
};
|
|
2600
|
+
form: {
|
|
2601
|
+
type: PropType<Form>;
|
|
2602
|
+
default: undefined;
|
|
2603
|
+
};
|
|
2602
2604
|
autoCommandDisabled: {
|
|
2603
2605
|
type: PropType<boolean>;
|
|
2604
2606
|
default: boolean;
|
|
@@ -2769,7 +2771,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2769
2771
|
} | undefined;
|
|
2770
2772
|
readonly validateTrigger?: string | string[] | undefined;
|
|
2771
2773
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
2772
|
-
readonly form?: Form | undefined;
|
|
2773
2774
|
readonly layout?: string | undefined;
|
|
2774
2775
|
readonly labelWrap?: boolean | undefined;
|
|
2775
2776
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
@@ -2785,6 +2786,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2785
2786
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
2786
2787
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
2787
2788
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
2789
|
+
readonly form?: Form | undefined;
|
|
2788
2790
|
readonly activePath?: string | undefined;
|
|
2789
2791
|
"onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
|
|
2790
2792
|
"onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
|
|
@@ -2900,10 +2902,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2900
2902
|
type: PropType<Fields>;
|
|
2901
2903
|
default: () => never[];
|
|
2902
2904
|
};
|
|
2903
|
-
form: {
|
|
2904
|
-
type: PropType<Form>;
|
|
2905
|
-
default: undefined;
|
|
2906
|
-
};
|
|
2907
2905
|
layout: {
|
|
2908
2906
|
type: PropType<string>;
|
|
2909
2907
|
};
|
|
@@ -2945,6 +2943,10 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
2945
2943
|
onValidate: {
|
|
2946
2944
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
2947
2945
|
};
|
|
2946
|
+
form: {
|
|
2947
|
+
type: PropType<Form>;
|
|
2948
|
+
default: undefined;
|
|
2949
|
+
};
|
|
2948
2950
|
autoCommandDisabled: {
|
|
2949
2951
|
type: PropType<boolean>;
|
|
2950
2952
|
default: boolean;
|
|
@@ -3121,7 +3123,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3121
3123
|
} | undefined;
|
|
3122
3124
|
readonly validateTrigger?: string | string[] | undefined;
|
|
3123
3125
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
3124
|
-
readonly form?: Form | undefined;
|
|
3125
3126
|
readonly layout?: string | undefined;
|
|
3126
3127
|
readonly labelWrap?: boolean | undefined;
|
|
3127
3128
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
@@ -3137,6 +3138,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3137
3138
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
3138
3139
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
3139
3140
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
3141
|
+
readonly form?: Form | undefined;
|
|
3140
3142
|
readonly activePath?: string | undefined;
|
|
3141
3143
|
"onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
|
|
3142
3144
|
"onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
|
|
@@ -3252,10 +3254,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3252
3254
|
type: PropType<Fields>;
|
|
3253
3255
|
default: () => never[];
|
|
3254
3256
|
};
|
|
3255
|
-
form: {
|
|
3256
|
-
type: PropType<Form>;
|
|
3257
|
-
default: undefined;
|
|
3258
|
-
};
|
|
3259
3257
|
layout: {
|
|
3260
3258
|
type: PropType<string>;
|
|
3261
3259
|
};
|
|
@@ -3297,6 +3295,10 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3297
3295
|
onValidate: {
|
|
3298
3296
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
3299
3297
|
};
|
|
3298
|
+
form: {
|
|
3299
|
+
type: PropType<Form>;
|
|
3300
|
+
default: undefined;
|
|
3301
|
+
};
|
|
3300
3302
|
autoCommandDisabled: {
|
|
3301
3303
|
type: PropType<boolean>;
|
|
3302
3304
|
default: boolean;
|
|
@@ -3457,7 +3459,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3457
3459
|
} | undefined;
|
|
3458
3460
|
readonly validateTrigger?: string | string[] | undefined;
|
|
3459
3461
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
3460
|
-
readonly form?: Form | undefined;
|
|
3461
3462
|
readonly layout?: string | undefined;
|
|
3462
3463
|
readonly labelWrap?: boolean | undefined;
|
|
3463
3464
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
@@ -3473,6 +3474,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3473
3474
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
3474
3475
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
3475
3476
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
3477
|
+
readonly form?: Form | undefined;
|
|
3476
3478
|
readonly activePath?: string | undefined;
|
|
3477
3479
|
"onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
|
|
3478
3480
|
"onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
|
|
@@ -3588,10 +3590,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3588
3590
|
type: PropType<Fields>;
|
|
3589
3591
|
default: () => never[];
|
|
3590
3592
|
};
|
|
3591
|
-
form: {
|
|
3592
|
-
type: PropType<Form>;
|
|
3593
|
-
default: undefined;
|
|
3594
|
-
};
|
|
3595
3593
|
layout: {
|
|
3596
3594
|
type: PropType<string>;
|
|
3597
3595
|
};
|
|
@@ -3633,6 +3631,10 @@ export declare const ProComponentProvider: SFCWithInstall<{
|
|
|
3633
3631
|
onValidate: {
|
|
3634
3632
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
3635
3633
|
};
|
|
3634
|
+
form: {
|
|
3635
|
+
type: PropType<Form>;
|
|
3636
|
+
default: undefined;
|
|
3637
|
+
};
|
|
3636
3638
|
autoCommandDisabled: {
|
|
3637
3639
|
type: PropType<boolean>;
|
|
3638
3640
|
default: boolean;
|
|
@@ -3795,7 +3797,6 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
3795
3797
|
} | undefined;
|
|
3796
3798
|
readonly validateTrigger?: string | string[] | undefined;
|
|
3797
3799
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
3798
|
-
readonly form?: Form | undefined;
|
|
3799
3800
|
readonly layout?: string | undefined;
|
|
3800
3801
|
readonly labelWrap?: boolean | undefined;
|
|
3801
3802
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
@@ -3811,6 +3812,7 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
3811
3812
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
3812
3813
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
3813
3814
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
3815
|
+
readonly form?: Form | undefined;
|
|
3814
3816
|
readonly activePath?: string | undefined;
|
|
3815
3817
|
"onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
|
|
3816
3818
|
"onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
|
|
@@ -3926,10 +3928,6 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
3926
3928
|
type: PropType<Fields>;
|
|
3927
3929
|
default: () => never[];
|
|
3928
3930
|
};
|
|
3929
|
-
form: {
|
|
3930
|
-
type: PropType<Form>;
|
|
3931
|
-
default: undefined;
|
|
3932
|
-
};
|
|
3933
3931
|
layout: {
|
|
3934
3932
|
type: PropType<string>;
|
|
3935
3933
|
};
|
|
@@ -3971,6 +3969,10 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
3971
3969
|
onValidate: {
|
|
3972
3970
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
3973
3971
|
};
|
|
3972
|
+
form: {
|
|
3973
|
+
type: PropType<Form>;
|
|
3974
|
+
default: undefined;
|
|
3975
|
+
};
|
|
3974
3976
|
autoCommandDisabled: {
|
|
3975
3977
|
type: PropType<boolean>;
|
|
3976
3978
|
default: boolean;
|
|
@@ -4108,10 +4110,6 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
4108
4110
|
type: PropType<Fields>;
|
|
4109
4111
|
default: () => never[];
|
|
4110
4112
|
};
|
|
4111
|
-
form: {
|
|
4112
|
-
type: PropType<Form>;
|
|
4113
|
-
default: undefined;
|
|
4114
|
-
};
|
|
4115
4113
|
layout: {
|
|
4116
4114
|
type: PropType<string>;
|
|
4117
4115
|
};
|
|
@@ -4153,6 +4151,10 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
4153
4151
|
onValidate: {
|
|
4154
4152
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
4155
4153
|
};
|
|
4154
|
+
form: {
|
|
4155
|
+
type: PropType<Form>;
|
|
4156
|
+
default: undefined;
|
|
4157
|
+
};
|
|
4156
4158
|
autoCommandDisabled: {
|
|
4157
4159
|
type: PropType<boolean>;
|
|
4158
4160
|
default: boolean;
|
|
@@ -4320,10 +4322,6 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
4320
4322
|
type: PropType<Fields>;
|
|
4321
4323
|
default: () => never[];
|
|
4322
4324
|
};
|
|
4323
|
-
form: {
|
|
4324
|
-
type: PropType<Form>;
|
|
4325
|
-
default: undefined;
|
|
4326
|
-
};
|
|
4327
4325
|
layout: {
|
|
4328
4326
|
type: PropType<string>;
|
|
4329
4327
|
};
|
|
@@ -4365,6 +4363,10 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
4365
4363
|
onValidate: {
|
|
4366
4364
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
4367
4365
|
};
|
|
4366
|
+
form: {
|
|
4367
|
+
type: PropType<Form>;
|
|
4368
|
+
default: undefined;
|
|
4369
|
+
};
|
|
4368
4370
|
autoCommandDisabled: {
|
|
4369
4371
|
type: PropType<boolean>;
|
|
4370
4372
|
default: boolean;
|
|
@@ -4506,10 +4508,6 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
4506
4508
|
type: PropType<Fields>;
|
|
4507
4509
|
default: () => never[];
|
|
4508
4510
|
};
|
|
4509
|
-
form: {
|
|
4510
|
-
type: PropType<Form>;
|
|
4511
|
-
default: undefined;
|
|
4512
|
-
};
|
|
4513
4511
|
layout: {
|
|
4514
4512
|
type: PropType<string>;
|
|
4515
4513
|
};
|
|
@@ -4551,6 +4549,10 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
4551
4549
|
onValidate: {
|
|
4552
4550
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
4553
4551
|
};
|
|
4552
|
+
form: {
|
|
4553
|
+
type: PropType<Form>;
|
|
4554
|
+
default: undefined;
|
|
4555
|
+
};
|
|
4554
4556
|
autoCommandDisabled: {
|
|
4555
4557
|
type: PropType<boolean>;
|
|
4556
4558
|
default: boolean;
|
|
@@ -6117,6 +6119,15 @@ export declare type UseFormData<D extends FormData_2 = FormData_2> = (initFormDa
|
|
|
6117
6119
|
|
|
6118
6120
|
export declare const useFormData: UseFormData;
|
|
6119
6121
|
|
|
6122
|
+
/**
|
|
6123
|
+
* @description useFormRef hook
|
|
6124
|
+
* @returns {Object}
|
|
6125
|
+
*/
|
|
6126
|
+
export declare type UseFormRef = () => {
|
|
6127
|
+
/** 表单组件实例引用Ref */
|
|
6128
|
+
formRef: Ref<ProFormInstance | undefined>;
|
|
6129
|
+
};
|
|
6130
|
+
|
|
6120
6131
|
export declare const useInitProps: () => {
|
|
6121
6132
|
getInitProps: (field: Field) => Record<string, any>;
|
|
6122
6133
|
};
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import { l,
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-a2afc105.js";
|
|
3
|
+
import { l, d, B, i, C, b, f, F, k, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-a2afc105.js";
|
|
4
4
|
import BaseTable from "./table/index.js";
|
|
5
5
|
import { useTable } from "./table/index.js";
|
|
6
6
|
import _sfc_main$1 from "./component-provider/index.js";
|
|
@@ -26,8 +26,8 @@ const index = {
|
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
28
|
l as ArrowFunctionRegexp,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
d as BaseField,
|
|
30
|
+
B as BaseFormItem,
|
|
31
31
|
i as COMMAND,
|
|
32
32
|
C as COMPONENT_MAP,
|
|
33
33
|
b as ContainerFragment,
|
package/es/style.css
CHANGED
package/es/table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
|
|
3
3
|
import { useInjectProps, INJECT_KEYS } from "../component-provider/index.js";
|
|
4
|
-
import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-
|
|
4
|
+
import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-a2afc105.js";
|
|
5
5
|
var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
|
|
6
6
|
const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
|
|
7
7
|
function _objectSpread$2(target) {
|