@vunk/form 2.12.2 → 2.13.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/components/api-tables-select/src/ctx.d.ts +1 -1
- package/components/api-tables-select/src/index.vue.d.ts +5 -5
- package/components/api-tables-select/src/types.d.ts +2 -2
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/ctx.d.ts +1 -6
- package/components/button/src/index.vue.d.ts +3 -12
- package/components/button/src/types.d.ts +2 -2
- package/components/card-input-collection/src/ctx.d.ts +1 -6
- package/components/card-input-collection/src/index.vue.d.ts +4 -18
- package/components/card-input-collection/src/types.d.ts +2 -2
- package/components/cascader/src/ctx.d.ts +2 -7
- package/components/cascader/src/index.vue.d.ts +3 -12
- package/components/cascader/src/types.d.ts +1 -1
- package/components/checkbox/src/ctx.d.ts +2 -7
- package/components/checkbox/src/index.vue.d.ts +3 -12
- package/components/checkbox/src/types.d.ts +1 -1
- package/components/color-picker/src/ctx.d.ts +1 -6
- package/components/color-picker/src/index.vue.d.ts +3 -12
- package/components/color-picker/src/types.d.ts +1 -1
- package/components/date-picker/src/ctx.d.ts +2 -7
- package/components/date-picker/src/index.vue.d.ts +3 -12
- package/components/date-picker/src/types.d.ts +2 -2
- package/components/date-picker-range/src/types.d.ts +3 -3
- package/components/dialog-input-collection/index.cjs +6 -2
- package/components/dialog-input-collection/index.mjs +6 -2
- package/components/dialog-input-collection/src/ctx.d.ts +1 -6
- package/components/dialog-input-collection/src/index.vue.d.ts +4 -18
- package/components/dialog-input-collection/src/types.d.ts +2 -2
- package/components/download-plus/src/ctx.d.ts +1 -6
- package/components/download-plus/src/index.vue.d.ts +3 -12
- package/components/editable-text/src/ctx.d.ts +1 -6
- package/components/editable-text/src/index.vue.d.ts +5 -19
- package/components/esri-input-geojson/src/ctx.d.ts +2 -7
- package/components/esri-input-geojson/src/index.vue.d.ts +4 -13
- package/components/esri-input-geojson/src/types.d.ts +2 -2
- package/components/form/src/types.d.ts +1 -1
- package/components/form-item/index.cjs +2 -1
- package/components/form-item/index.mjs +2 -1
- package/components/form-item/src/ctx.d.ts +2 -7
- package/components/form-item/src/index.vue.d.ts +4 -13
- package/components/information/src/types.d.ts +1 -1
- package/components/information-collection/src/ctx.d.ts +1 -6
- package/components/information-collection/src/index.vue.d.ts +3 -12
- package/components/input/src/ctx.d.ts +2 -7
- package/components/input/src/index.vue.d.ts +3 -12
- package/components/input/src/types.d.ts +2 -2
- package/components/input-collection/src/ctx.d.ts +1 -6
- package/components/input-collection/src/index.vue.d.ts +4 -18
- package/components/input-collection/src/types.d.ts +2 -2
- package/components/input-link/src/ctx.d.ts +1 -6
- package/components/input-link/src/index.vue.d.ts +3 -12
- package/components/input-link/src/types.d.ts +1 -1
- package/components/input-number/src/ctx.d.ts +2 -7
- package/components/input-number/src/index.vue.d.ts +3 -12
- package/components/input-number/src/types.d.ts +1 -1
- package/components/input-tag/src/ctx.d.ts +2 -7
- package/components/input-tag/src/index.vue.d.ts +3 -12
- package/components/input-tag/src/types.d.ts +2 -2
- package/components/monaco-editor/src/ctx.d.ts +1 -6
- package/components/monaco-editor/src/index.vue.d.ts +3 -12
- package/components/monaco-editor/src/types.d.ts +2 -2
- package/components/radio/src/ctx.d.ts +1 -6
- package/components/radio/src/index.vue.d.ts +3 -12
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/src/ctx.d.ts +2 -7
- package/components/select/src/index.vue.d.ts +3 -12
- package/components/select/src/types.d.ts +1 -1
- package/components/slider/src/ctx.d.ts +1 -6
- package/components/slider/src/index.vue.d.ts +3 -12
- package/components/slider/src/types.d.ts +1 -1
- package/components/switch/src/ctx.d.ts +1 -6
- package/components/switch/src/index.vue.d.ts +3 -12
- package/components/switch/src/types.d.ts +1 -1
- package/components/tables-select/src/ctx.d.ts +1 -1
- package/components/tables-select/src/index.vue.d.ts +2 -2
- package/components/tables-select/src/types.d.ts +2 -2
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-variant/src/types.d.ts +1 -1
- package/components/upload/src/ctx.d.ts +2 -7
- package/components/upload/src/index.vue.d.ts +3 -12
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +1 -6
- package/components/upload-plus/src/index.vue.d.ts +4 -18
- package/components/van-cascader/src/ctx.d.ts +1 -6
- package/components/van-cascader/src/index.vue.d.ts +3 -12
- package/components/var-datetime-picker/src/ctx.d.ts +1 -6
- package/components/var-datetime-picker/src/index.vue.d.ts +3 -12
- package/components/var-datetime-picker/src/types.d.ts +2 -2
- package/components/vditor/src/ctx.d.ts +1 -6
- package/components/vditor/src/index.vue.d.ts +3 -12
- package/components/vditor/src/types.d.ts +2 -2
- package/package.json +1 -1
- package/shared/types/source/index.d.ts +2 -2
|
@@ -60,6 +60,7 @@ export declare const props: {
|
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
|
+
prop: any;
|
|
63
64
|
label: StringConstructor;
|
|
64
65
|
labelWidth: {
|
|
65
66
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -77,12 +78,6 @@ export declare const props: {
|
|
|
77
78
|
} & {
|
|
78
79
|
readonly default: "";
|
|
79
80
|
};
|
|
80
|
-
prop: {
|
|
81
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
82
|
-
readonly required: false;
|
|
83
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
-
__epPropKey: true;
|
|
85
|
-
};
|
|
86
81
|
rules: {
|
|
87
82
|
readonly type: import("vue").PropType<unknown>;
|
|
88
83
|
readonly required: false;
|
|
@@ -60,6 +60,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
|
+
prop: any;
|
|
63
64
|
label: StringConstructor;
|
|
64
65
|
labelWidth: {
|
|
65
66
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -77,12 +78,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
78
|
} & {
|
|
78
79
|
readonly default: "";
|
|
79
80
|
};
|
|
80
|
-
prop: {
|
|
81
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
82
|
-
readonly required: false;
|
|
83
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
-
__epPropKey: true;
|
|
85
|
-
};
|
|
86
81
|
rules: {
|
|
87
82
|
readonly type: import("vue").PropType<unknown>;
|
|
88
83
|
readonly required: false;
|
|
@@ -185,6 +180,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
185
180
|
type: BooleanConstructor;
|
|
186
181
|
default: boolean;
|
|
187
182
|
};
|
|
183
|
+
prop: any;
|
|
188
184
|
label: StringConstructor;
|
|
189
185
|
labelWidth: {
|
|
190
186
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -202,12 +198,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
202
198
|
} & {
|
|
203
199
|
readonly default: "";
|
|
204
200
|
};
|
|
205
|
-
prop: {
|
|
206
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
207
|
-
readonly required: false;
|
|
208
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
209
|
-
__epPropKey: true;
|
|
210
|
-
};
|
|
211
201
|
rules: {
|
|
212
202
|
readonly type: import("vue").PropType<unknown>;
|
|
213
203
|
readonly required: false;
|
|
@@ -253,6 +243,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
253
243
|
formItemTipClass: any;
|
|
254
244
|
labelTip: string;
|
|
255
245
|
information: boolean;
|
|
246
|
+
prop: any;
|
|
256
247
|
labelWidth: string | number;
|
|
257
248
|
labelPosition: "" | "top" | "left" | "right";
|
|
258
249
|
inlineMessage: string | boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueComponentPropsType } from '@vunk/shared';
|
|
2
2
|
import Core from './index.vue';
|
|
3
3
|
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
-
export interface Source<P
|
|
5
|
-
prop?: P
|
|
4
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
5
|
+
prop?: P;
|
|
6
6
|
templateType: 'VkfVditor';
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -44,5 +44,5 @@ export interface BasicSource {
|
|
|
44
44
|
* import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default'
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
export type FormItemRendererSource<P
|
|
48
|
-
export type AllTemplatesSource<P
|
|
47
|
+
export type FormItemRendererSource<P = string> = __VkfTemplatesDefault.Source<P>;
|
|
48
|
+
export type AllTemplatesSource<P = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesEsri.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source | __VkfTemplatesVariant.Source<P>;
|