@vunk/form 2.16.6 → 2.16.8
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/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/src/ctx.d.ts +375 -0
- package/components/api-tables-select/src/index.vue.d.ts +1340 -0
- package/components/api-tables-select/src/types.d.ts +19 -0
- package/components/button/index.d.ts +4 -0
- package/components/button/src/ctx.d.ts +193 -0
- package/components/button/src/index.vue.d.ts +851 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/src/core.vue.d.ts +1125 -0
- package/components/card-input-collection/src/ctx.d.ts +154 -0
- package/components/card-input-collection/src/index.vue.d.ts +287 -0
- package/components/card-input-collection/src/types.d.ts +17 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +343 -0
- package/components/cascader/src/index.vue.d.ts +775 -0
- package/components/cascader/src/types.d.ts +19 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/src/ctx.d.ts +146 -0
- package/components/checkbox/src/index.vue.d.ts +1353 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/src/ctx.d.ts +179 -0
- package/components/color-picker/src/index.vue.d.ts +398 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.d.ts +5 -0
- package/components/date-picker/src/ctx.d.ts +364 -0
- package/components/date-picker/src/index.vue.d.ts +1665 -0
- package/components/date-picker/src/types.d.ts +20 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/src/ctx.d.ts +372 -0
- package/components/date-picker-range/src/index.vue.d.ts +808 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/dialog/index.d.ts +4 -0
- package/components/dialog/src/ctx.d.ts +174 -0
- package/components/dialog/src/index.vue.d.ts +1180 -0
- package/components/dialog/src/types.d.ts +1 -0
- package/components/dialog-input-collection/index.d.ts +4 -0
- package/components/dialog-input-collection/src/ctx.d.ts +141 -0
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +6430 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +7773 -0
- package/components/dialog-input-collection/src/layout.vue.d.ts +85 -0
- package/components/dialog-input-collection/src/types.d.ts +28 -0
- package/components/download-plus/index.d.ts +4 -0
- package/components/download-plus/src/api.d.ts +13 -0
- package/components/download-plus/src/const.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +125 -0
- package/components/download-plus/src/index.vue.d.ts +1495 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/editable-text/index.d.ts +4 -0
- package/components/editable-text/src/ctx.d.ts +128 -0
- package/components/editable-text/src/index.vue.d.ts +3389 -0
- package/components/editable-text/src/types.d.ts +1 -0
- package/components/esri-input-geojson/index.d.ts +6 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1200 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +351 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1488 -0
- package/components/esri-input-geojson/src/types.d.ts +22 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +427 -0
- package/components/fieldset/index.d.ts +4 -0
- package/components/fieldset/src/ctx.d.ts +16 -0
- package/components/fieldset/src/index.vue.d.ts +32 -0
- package/components/fieldset/src/types.d.ts +1 -0
- package/components/fieldset/src/use.d.ts +5 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/src/ctx.d.ts +139 -0
- package/components/form/src/index.vue.d.ts +2613 -0
- package/components/form/src/types.d.ts +25 -0
- package/components/form/src/utils.d.ts +15 -0
- package/components/form-item/index.d.ts +5 -0
- package/components/form-item/src/core.vue.d.ts +1874 -0
- package/components/form-item/src/ctx.d.ts +103 -0
- package/components/form-item/src/index.vue.d.ts +214 -0
- package/components/form-item/src/types.d.ts +10 -0
- package/components/form-item-renderer/index.d.ts +4 -0
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/ctx.d.ts +16 -0
- package/components/form-item-renderer/src/index.vue.d.ts +93 -0
- package/components/form-item-renderer/src/types.d.ts +5 -0
- package/components/form-item-renderer/src/utils.d.ts +5 -0
- package/components/form-item-renderer-template/index.d.ts +4 -0
- package/components/form-item-renderer-template/src/ctx.d.ts +7 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +16 -0
- package/components/form-item-renderer-template/src/types.d.ts +55 -0
- package/components/forms-provider/index.d.ts +6 -0
- package/components/forms-provider/src/core.d.ts +6 -0
- package/components/forms-provider/src/index.vue.d.ts +2 -0
- package/components/forms-provider/src/segment.vue.d.ts +9 -0
- package/components/forms-provider/src/types.d.ts +10 -0
- package/components/forms-provider/src/view.vue.d.ts +7 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/src/ctx.d.ts +16 -0
- package/components/information/src/index.vue.d.ts +27 -0
- package/components/information/src/types.d.ts +3 -0
- package/components/information-collection/index.d.ts +4 -0
- package/components/information-collection/src/ctx.d.ts +143 -0
- package/components/information-collection/src/index.vue.d.ts +296 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-renderer/index.d.ts +73 -0
- package/components/information-tag/index.d.ts +4 -0
- package/components/information-tag/src/ctx.d.ts +64 -0
- package/components/information-tag/src/index.vue.d.ts +134 -0
- package/components/information-tag/src/types.d.ts +1 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +2 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/index.d.ts +5 -0
- package/components/input/src/ctx.d.ts +280 -0
- package/components/input/src/index.vue.d.ts +1268 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-array/index.d.ts +5 -0
- package/components/input-array/src/ctx.d.ts +136 -0
- package/components/input-array/src/form-template.vue.d.ts +901 -0
- package/components/input-array/src/index.vue.d.ts +889 -0
- package/components/input-array/src/types.d.ts +7 -0
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/src/core.vue.d.ts +1203 -0
- package/components/input-collection/src/ctx.d.ts +154 -0
- package/components/input-collection/src/index.vue.d.ts +296 -0
- package/components/input-collection/src/types.d.ts +29 -0
- package/components/input-file/index.d.ts +5 -0
- package/components/input-file/src/ctx.d.ts +46 -0
- package/components/input-file/src/index.vue.d.ts +112 -0
- package/components/input-file/src/template.vue.d.ts +125 -0
- package/components/input-file/src/types.d.ts +8 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +284 -0
- package/components/input-link/src/index.vue.d.ts +602 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/src/ctx.d.ts +221 -0
- package/components/input-number/src/index.vue.d.ts +910 -0
- package/components/input-number/src/types.d.ts +12 -0
- package/components/input-tag/index.d.ts +5 -0
- package/components/input-tag/src/ctx.d.ts +244 -0
- package/components/input-tag/src/index.vue.d.ts +1050 -0
- package/components/input-tag/src/types.d.ts +22 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +111 -0
- package/components/monaco-editor/src/index.vue.d.ts +297 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.d.ts +4 -0
- package/components/radio/src/ctx.d.ts +165 -0
- package/components/radio/src/index.vue.d.ts +1488 -0
- package/components/radio/src/option.vue.d.ts +901 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/radio/src/wraper.vue.d.ts +337 -0
- package/components/renderer-data/index.d.ts +4 -0
- package/components/renderer-data/src/ctx.d.ts +12 -0
- package/components/renderer-data/src/index.vue.d.ts +20 -0
- package/components/renderer-data/src/types.d.ts +1 -0
- package/components/select/index.cjs +29 -11
- package/components/select/index.d.ts +5 -0
- package/components/select/index.mjs +29 -11
- package/components/select/src/core.vue.d.ts +1601 -0
- package/components/select/src/ctx.d.ts +386 -0
- package/components/select/src/index.vue.d.ts +946 -0
- package/components/select/src/options.vue.d.ts +51 -0
- package/components/select/src/types.d.ts +19 -0
- package/components/slider/index.d.ts +4 -0
- package/components/slider/src/ctx.d.ts +248 -0
- package/components/slider/src/index.vue.d.ts +579 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/switch/index.d.ts +4 -0
- package/components/switch/src/ctx.d.ts +201 -0
- package/components/switch/src/index.vue.d.ts +882 -0
- package/components/switch/src/types.d.ts +7 -0
- package/components/tables-select/index.d.ts +5 -0
- package/components/tables-select/src/ctx.d.ts +421 -0
- package/components/tables-select/src/index.vue.d.ts +5510 -0
- package/components/tables-select/src/types.d.ts +9 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/src/index.vue.d.ts +6 -0
- package/components/templates-default/index.d.ts +4 -0
- package/components/templates-default/src/ctx.d.ts +19 -0
- package/components/templates-default/src/index.vue.d.ts +187 -0
- package/components/templates-default/src/types.d.ts +55 -0
- package/components/templates-element-plus/index.d.ts +4 -0
- package/components/templates-element-plus/src/ctx.d.ts +9 -0
- package/components/templates-element-plus/src/index.vue.d.ts +301 -0
- package/components/templates-element-plus/src/types.d.ts +13 -0
- package/components/templates-esri/index.d.ts +4 -0
- package/components/templates-esri/src/ctx.d.ts +11 -0
- package/components/templates-esri/src/index.vue.d.ts +43 -0
- package/components/templates-esri/src/types.d.ts +2 -0
- package/components/templates-layout/index.d.ts +4 -0
- package/components/templates-layout/src/ctx.d.ts +9 -0
- package/components/templates-layout/src/index.vue.d.ts +446 -0
- package/components/templates-layout/src/types.d.ts +32 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +43 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.d.ts +5 -0
- package/components/upload/src/ctx.d.ts +291 -0
- package/components/upload/src/file.vue.d.ts +913 -0
- package/components/upload/src/index.vue.d.ts +2347 -0
- package/components/upload/src/types.d.ts +13 -0
- package/components/upload/src/wraper.vue.d.ts +590 -0
- package/components/upload-plus/index.d.ts +6 -0
- package/components/upload-plus/src/api.d.ts +38 -0
- package/components/upload-plus/src/const.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +144 -0
- package/components/upload-plus/src/index.vue.d.ts +1813 -0
- package/components/upload-plus/src/types.d.ts +32 -0
- package/components/van-cascader/index.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +330 -0
- package/components/van-cascader/src/index.vue.d.ts +1241 -0
- package/components/van-cascader/src/types.d.ts +1 -0
- package/components/var-datetime-picker/index.d.ts +4 -0
- package/components/var-datetime-picker/src/const.d.ts +10 -0
- package/components/var-datetime-picker/src/ctx.d.ts +108 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +1622 -0
- package/components/var-datetime-picker/src/types.d.ts +22 -0
- package/components/vditor/index.d.ts +4 -0
- package/components/vditor/src/ctx.d.ts +118 -0
- package/components/vditor/src/index.vue.d.ts +412 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { NormalObject } from '@vunk/shared';
|
|
3
|
+
import { Slots } from './types';
|
|
4
|
+
import { CardProps } from 'element-plus';
|
|
5
|
+
export declare const props: {
|
|
6
|
+
columns: {
|
|
7
|
+
type: PropType<any[]>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: PropType<NormalObject[]>;
|
|
12
|
+
default: () => any[];
|
|
13
|
+
};
|
|
14
|
+
readonly: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: any;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @description 是否可以添加或删除
|
|
20
|
+
*/
|
|
21
|
+
splicable: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
slots: {
|
|
26
|
+
type: PropType<Slots>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
|
|
31
|
+
*/
|
|
32
|
+
labelActions: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @description 添加记录时的默认值
|
|
38
|
+
*/
|
|
39
|
+
defaultItemValue: {
|
|
40
|
+
type: PropType<NormalObject | (() => NormalObject)>;
|
|
41
|
+
default: () => {};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @description 保留最后一个不被删除
|
|
45
|
+
*/
|
|
46
|
+
keepLast: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @description 是否开启顶部的添加按钮
|
|
52
|
+
*/
|
|
53
|
+
topSplicable: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* @description 卡片的属性
|
|
59
|
+
* @link https://element-plus.org/en-US/component/card.html#card-attributes
|
|
60
|
+
*/
|
|
61
|
+
cardProps: {
|
|
62
|
+
type: PropType<Partial<CardProps>>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
required: {
|
|
66
|
+
readonly type: PropType<boolean>;
|
|
67
|
+
readonly required: false;
|
|
68
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
|
+
__epPropKey: true;
|
|
70
|
+
} & {
|
|
71
|
+
readonly default: undefined;
|
|
72
|
+
};
|
|
73
|
+
formItemSize: {
|
|
74
|
+
type: PropType<"default" | "small" | "large">;
|
|
75
|
+
default: "default" | "small" | "large";
|
|
76
|
+
};
|
|
77
|
+
formItemSlots: {
|
|
78
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
elRef: {
|
|
82
|
+
type: PropType<any>;
|
|
83
|
+
required: boolean;
|
|
84
|
+
};
|
|
85
|
+
inline: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
formItemTip: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: any;
|
|
92
|
+
};
|
|
93
|
+
formItemTipClass: any;
|
|
94
|
+
labelTip: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
information: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
prop: any;
|
|
103
|
+
defaultModelValue: any;
|
|
104
|
+
label: StringConstructor;
|
|
105
|
+
labelWidth: {
|
|
106
|
+
readonly type: PropType<string | number>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
|
+
__epPropKey: true;
|
|
110
|
+
} & {
|
|
111
|
+
readonly default: "";
|
|
112
|
+
};
|
|
113
|
+
labelPosition: {
|
|
114
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
115
|
+
readonly required: false;
|
|
116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
117
|
+
__epPropKey: true;
|
|
118
|
+
} & {
|
|
119
|
+
readonly default: "";
|
|
120
|
+
};
|
|
121
|
+
rules: {
|
|
122
|
+
readonly type: PropType<unknown>;
|
|
123
|
+
readonly required: false;
|
|
124
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
125
|
+
__epPropKey: true;
|
|
126
|
+
};
|
|
127
|
+
error: StringConstructor;
|
|
128
|
+
validateStatus: {
|
|
129
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
130
|
+
readonly required: false;
|
|
131
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
132
|
+
__epPropKey: true;
|
|
133
|
+
};
|
|
134
|
+
for: StringConstructor;
|
|
135
|
+
inlineMessage: {
|
|
136
|
+
readonly type: PropType<string | boolean>;
|
|
137
|
+
readonly required: false;
|
|
138
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
139
|
+
__epPropKey: true;
|
|
140
|
+
} & {
|
|
141
|
+
readonly default: "";
|
|
142
|
+
};
|
|
143
|
+
showMessage: {
|
|
144
|
+
readonly type: PropType<boolean>;
|
|
145
|
+
readonly required: false;
|
|
146
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
147
|
+
__epPropKey: true;
|
|
148
|
+
} & {
|
|
149
|
+
readonly default: true;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export declare const emits: {
|
|
153
|
+
'update:modelValue': any;
|
|
154
|
+
};
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
columns: {
|
|
3
|
+
type: import("vue").PropType<any[]>;
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject[]>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
readonly: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
splicable: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
slots: {
|
|
19
|
+
type: import("vue").PropType<import("./types").Slots>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
labelActions: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
defaultItemValue: {
|
|
27
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject | (() => import("@vunk/shared").NormalObject)>;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
keepLast: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
topSplicable: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
cardProps: {
|
|
39
|
+
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
required: {
|
|
43
|
+
readonly type: import("vue").PropType<boolean>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
} & {
|
|
48
|
+
readonly default: undefined;
|
|
49
|
+
};
|
|
50
|
+
formItemSize: {
|
|
51
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
52
|
+
default: "default" | "small" | "large";
|
|
53
|
+
};
|
|
54
|
+
formItemSlots: {
|
|
55
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
elRef: {
|
|
59
|
+
type: import("vue").PropType<any>;
|
|
60
|
+
required: boolean;
|
|
61
|
+
};
|
|
62
|
+
inline: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
formItemTip: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
formItemTipClass: any;
|
|
71
|
+
labelTip: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: any;
|
|
74
|
+
};
|
|
75
|
+
information: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
prop: any;
|
|
80
|
+
defaultModelValue: any;
|
|
81
|
+
label: StringConstructor;
|
|
82
|
+
labelWidth: {
|
|
83
|
+
readonly type: import("vue").PropType<string | number>;
|
|
84
|
+
readonly required: false;
|
|
85
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
|
+
__epPropKey: true;
|
|
87
|
+
} & {
|
|
88
|
+
readonly default: "";
|
|
89
|
+
};
|
|
90
|
+
labelPosition: {
|
|
91
|
+
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
92
|
+
readonly required: false;
|
|
93
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
94
|
+
__epPropKey: true;
|
|
95
|
+
} & {
|
|
96
|
+
readonly default: "";
|
|
97
|
+
};
|
|
98
|
+
rules: {
|
|
99
|
+
readonly type: import("vue").PropType<unknown>;
|
|
100
|
+
readonly required: false;
|
|
101
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
102
|
+
__epPropKey: true;
|
|
103
|
+
};
|
|
104
|
+
error: StringConstructor;
|
|
105
|
+
validateStatus: {
|
|
106
|
+
readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
|
+
__epPropKey: true;
|
|
110
|
+
};
|
|
111
|
+
for: StringConstructor;
|
|
112
|
+
inlineMessage: {
|
|
113
|
+
readonly type: import("vue").PropType<string | boolean>;
|
|
114
|
+
readonly required: false;
|
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
|
+
__epPropKey: true;
|
|
117
|
+
} & {
|
|
118
|
+
readonly default: "";
|
|
119
|
+
};
|
|
120
|
+
showMessage: {
|
|
121
|
+
readonly type: import("vue").PropType<boolean>;
|
|
122
|
+
readonly required: false;
|
|
123
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
|
+
__epPropKey: true;
|
|
125
|
+
} & {
|
|
126
|
+
readonly default: true;
|
|
127
|
+
};
|
|
128
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
131
|
+
'update:modelValue': any;
|
|
132
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
133
|
+
columns: {
|
|
134
|
+
type: import("vue").PropType<any[]>;
|
|
135
|
+
default: () => any[];
|
|
136
|
+
};
|
|
137
|
+
modelValue: {
|
|
138
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject[]>;
|
|
139
|
+
default: () => any[];
|
|
140
|
+
};
|
|
141
|
+
readonly: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
splicable: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
slots: {
|
|
150
|
+
type: import("vue").PropType<import("./types").Slots>;
|
|
151
|
+
default: () => {};
|
|
152
|
+
};
|
|
153
|
+
labelActions: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
defaultItemValue: {
|
|
158
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject | (() => import("@vunk/shared").NormalObject)>;
|
|
159
|
+
default: () => {};
|
|
160
|
+
};
|
|
161
|
+
keepLast: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
topSplicable: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
cardProps: {
|
|
170
|
+
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
171
|
+
default: () => {};
|
|
172
|
+
};
|
|
173
|
+
required: {
|
|
174
|
+
readonly type: import("vue").PropType<boolean>;
|
|
175
|
+
readonly required: false;
|
|
176
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
177
|
+
__epPropKey: true;
|
|
178
|
+
} & {
|
|
179
|
+
readonly default: undefined;
|
|
180
|
+
};
|
|
181
|
+
formItemSize: {
|
|
182
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
183
|
+
default: "default" | "small" | "large";
|
|
184
|
+
};
|
|
185
|
+
formItemSlots: {
|
|
186
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
187
|
+
default: any;
|
|
188
|
+
};
|
|
189
|
+
elRef: {
|
|
190
|
+
type: import("vue").PropType<any>;
|
|
191
|
+
required: boolean;
|
|
192
|
+
};
|
|
193
|
+
inline: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
formItemTip: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
default: any;
|
|
200
|
+
};
|
|
201
|
+
formItemTipClass: any;
|
|
202
|
+
labelTip: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: any;
|
|
205
|
+
};
|
|
206
|
+
information: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
prop: any;
|
|
211
|
+
defaultModelValue: any;
|
|
212
|
+
label: StringConstructor;
|
|
213
|
+
labelWidth: {
|
|
214
|
+
readonly type: import("vue").PropType<string | number>;
|
|
215
|
+
readonly required: false;
|
|
216
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
217
|
+
__epPropKey: true;
|
|
218
|
+
} & {
|
|
219
|
+
readonly default: "";
|
|
220
|
+
};
|
|
221
|
+
labelPosition: {
|
|
222
|
+
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
223
|
+
readonly required: false;
|
|
224
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
225
|
+
__epPropKey: true;
|
|
226
|
+
} & {
|
|
227
|
+
readonly default: "";
|
|
228
|
+
};
|
|
229
|
+
rules: {
|
|
230
|
+
readonly type: import("vue").PropType<unknown>;
|
|
231
|
+
readonly required: false;
|
|
232
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
233
|
+
__epPropKey: true;
|
|
234
|
+
};
|
|
235
|
+
error: StringConstructor;
|
|
236
|
+
validateStatus: {
|
|
237
|
+
readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
|
|
238
|
+
readonly required: false;
|
|
239
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
240
|
+
__epPropKey: true;
|
|
241
|
+
};
|
|
242
|
+
for: StringConstructor;
|
|
243
|
+
inlineMessage: {
|
|
244
|
+
readonly type: import("vue").PropType<string | boolean>;
|
|
245
|
+
readonly required: false;
|
|
246
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
247
|
+
__epPropKey: true;
|
|
248
|
+
} & {
|
|
249
|
+
readonly default: "";
|
|
250
|
+
};
|
|
251
|
+
showMessage: {
|
|
252
|
+
readonly type: import("vue").PropType<boolean>;
|
|
253
|
+
readonly required: false;
|
|
254
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
255
|
+
__epPropKey: true;
|
|
256
|
+
} & {
|
|
257
|
+
readonly default: true;
|
|
258
|
+
};
|
|
259
|
+
}>> & Readonly<{
|
|
260
|
+
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
261
|
+
}>, {
|
|
262
|
+
required: boolean;
|
|
263
|
+
formItemSize: "default" | "small" | "large";
|
|
264
|
+
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
265
|
+
inline: boolean;
|
|
266
|
+
readonly: boolean;
|
|
267
|
+
formItemTip: string;
|
|
268
|
+
formItemTipClass: any;
|
|
269
|
+
labelTip: string;
|
|
270
|
+
information: boolean;
|
|
271
|
+
prop: any;
|
|
272
|
+
defaultModelValue: any;
|
|
273
|
+
labelWidth: string | number;
|
|
274
|
+
labelPosition: "" | "top" | "left" | "right";
|
|
275
|
+
inlineMessage: string | boolean;
|
|
276
|
+
showMessage: boolean;
|
|
277
|
+
slots: import("./types").Slots;
|
|
278
|
+
modelValue: import("@vunk/shared").NormalObject[];
|
|
279
|
+
columns: any[];
|
|
280
|
+
labelActions: boolean;
|
|
281
|
+
splicable: boolean;
|
|
282
|
+
defaultItemValue: {};
|
|
283
|
+
keepLast: boolean;
|
|
284
|
+
topSplicable: boolean;
|
|
285
|
+
cardProps: Partial<import("element-plus").CardProps>;
|
|
286
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
287
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnyFunc, Keyof, NormalObject, VueComponentPropsType } from '@vunk/shared';
|
|
2
|
+
import Core from './index.vue';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
+
import { __VkfTemplatesDefault } from '@vunk/form';
|
|
5
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
6
|
+
prop?: P;
|
|
7
|
+
templateType: 'VkfCardInputCollection';
|
|
8
|
+
}
|
|
9
|
+
export type Column<R extends NormalObject = NormalObject, SourceType extends NormalObject = __VkfTemplatesDefault.CoreSource<Keyof<R>>> = SourceType & {
|
|
10
|
+
createTemplateProps?: (columnSlotEvent: {
|
|
11
|
+
row: R;
|
|
12
|
+
$index: number;
|
|
13
|
+
}, formItemProps: SourceType) => Partial<SourceType>;
|
|
14
|
+
};
|
|
15
|
+
export interface Slots {
|
|
16
|
+
labelActions?: AnyFunc;
|
|
17
|
+
}
|