@vunk/form 2.13.2 → 2.14.1
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/components/fieldset/index.cjs +6 -2
- package/components/fieldset/index.mjs +6 -2
- package/components/input-array/index.cjs +287 -0
- package/components/input-array/index.css +14 -0
- package/components/input-array/index.d.ts +5 -0
- package/components/input-array/index.mjs +280 -0
- package/components/input-array/src/ctx.d.ts +129 -0
- package/components/input-array/src/form-template.vue.d.ts +867 -0
- package/components/input-array/src/index.vue.d.ts +855 -0
- package/components/input-array/src/types.d.ts +7 -0
- package/index.css +15 -0
- package/package.json +9 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const props: {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: PropType<any[]>;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @description 是否可以 splice, 添加
|
|
9
|
+
*/
|
|
10
|
+
splicable: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
|
|
16
|
+
*/
|
|
17
|
+
labelActions: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
defaultItemValue: any;
|
|
22
|
+
source: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
defaultModelValue: {
|
|
27
|
+
type: PropType<any[]>;
|
|
28
|
+
default: any;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @description 保留最后一行
|
|
32
|
+
*/
|
|
33
|
+
keepLastRow: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
required: {
|
|
38
|
+
readonly type: PropType<boolean>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
} & {
|
|
43
|
+
readonly default: undefined;
|
|
44
|
+
};
|
|
45
|
+
formItemSize: {
|
|
46
|
+
type: PropType<"default" | "small" | "large">;
|
|
47
|
+
default: "default" | "small" | "large";
|
|
48
|
+
};
|
|
49
|
+
formItemSlots: {
|
|
50
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
elRef: {
|
|
54
|
+
type: PropType<any>;
|
|
55
|
+
required: boolean;
|
|
56
|
+
};
|
|
57
|
+
inline: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
readonly: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: any;
|
|
64
|
+
};
|
|
65
|
+
formItemTip: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
formItemTipClass: any;
|
|
70
|
+
labelTip: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
74
|
+
information: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
prop: any;
|
|
79
|
+
label: StringConstructor;
|
|
80
|
+
labelWidth: {
|
|
81
|
+
readonly type: PropType<string | number>;
|
|
82
|
+
readonly required: false;
|
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
+
__epPropKey: true;
|
|
85
|
+
} & {
|
|
86
|
+
readonly default: "";
|
|
87
|
+
};
|
|
88
|
+
labelPosition: {
|
|
89
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
+
__epPropKey: true;
|
|
93
|
+
} & {
|
|
94
|
+
readonly default: "";
|
|
95
|
+
};
|
|
96
|
+
rules: {
|
|
97
|
+
readonly type: PropType<unknown>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
100
|
+
__epPropKey: true;
|
|
101
|
+
};
|
|
102
|
+
error: StringConstructor;
|
|
103
|
+
validateStatus: {
|
|
104
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
105
|
+
readonly required: false;
|
|
106
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
|
+
__epPropKey: true;
|
|
108
|
+
};
|
|
109
|
+
for: StringConstructor;
|
|
110
|
+
inlineMessage: {
|
|
111
|
+
readonly type: PropType<string | boolean>;
|
|
112
|
+
readonly required: false;
|
|
113
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
114
|
+
__epPropKey: true;
|
|
115
|
+
} & {
|
|
116
|
+
readonly default: "";
|
|
117
|
+
};
|
|
118
|
+
showMessage: {
|
|
119
|
+
readonly type: PropType<boolean>;
|
|
120
|
+
readonly required: false;
|
|
121
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
122
|
+
__epPropKey: true;
|
|
123
|
+
} & {
|
|
124
|
+
readonly default: true;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare const emits: {
|
|
128
|
+
'update:modelValue': any;
|
|
129
|
+
};
|