@xiaohaih/json-form-vant 0.0.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/CHANGELOG.md +9 -0
- package/README.md +807 -0
- package/TODO.md +36 -0
- package/components/area/index.ts +6 -0
- package/components/area/index.vue +120 -0
- package/components/area/types.ts +84 -0
- package/components/cascader/index.ts +6 -0
- package/components/cascader/index.vue +146 -0
- package/components/cascader/types.ts +75 -0
- package/components/checkbox/index.ts +6 -0
- package/components/checkbox/index.vue +59 -0
- package/components/checkbox/types.ts +54 -0
- package/components/checkbox-group/index.ts +6 -0
- package/components/checkbox-group/index.vue +67 -0
- package/components/checkbox-group/types.ts +63 -0
- package/components/component-definition/components.ts +29 -0
- package/components/component-definition/definition.ts +25 -0
- package/components/component-definition/index.ts +4 -0
- package/components/custom-render/index.ts +6 -0
- package/components/custom-render/index.vue +66 -0
- package/components/custom-render/types.ts +43 -0
- package/components/date-picker/index.ts +6 -0
- package/components/date-picker/index.vue +130 -0
- package/components/date-picker/types.ts +91 -0
- package/components/date-time-picker-group/index.ts +6 -0
- package/components/date-time-picker-group/index.vue +158 -0
- package/components/date-time-picker-group/types.ts +115 -0
- package/components/datetime-picker/index.ts +6 -0
- package/components/datetime-picker/index.vue +128 -0
- package/components/datetime-picker/types.ts +78 -0
- package/components/dynamic-group/index.ts +10 -0
- package/components/dynamic-group/index.vue +140 -0
- package/components/dynamic-group/types.ts +68 -0
- package/components/group/assist.ts +99 -0
- package/components/group/index.ts +7 -0
- package/components/group/index.vue +117 -0
- package/components/group/types.ts +57 -0
- package/components/group/virtual-group.vue +38 -0
- package/components/index.ts +10 -0
- package/components/input/index.ts +6 -0
- package/components/input/index.vue +83 -0
- package/components/input/types.ts +43 -0
- package/components/input-slot/index.ts +6 -0
- package/components/input-slot/index.vue +148 -0
- package/components/input-slot/types.ts +34 -0
- package/components/number-keyboard/index.ts +6 -0
- package/components/number-keyboard/index.vue +81 -0
- package/components/number-keyboard/types.ts +57 -0
- package/components/password-input/index.ts +6 -0
- package/components/password-input/index.vue +103 -0
- package/components/password-input/types.ts +64 -0
- package/components/picker/index.ts +6 -0
- package/components/picker/index.vue +136 -0
- package/components/picker/types.ts +94 -0
- package/components/radio/index.ts +6 -0
- package/components/radio/index.vue +68 -0
- package/components/radio/types.ts +58 -0
- package/components/radio-group/index.ts +6 -0
- package/components/radio-group/index.vue +74 -0
- package/components/radio-group/types.ts +65 -0
- package/components/rate/index.ts +6 -0
- package/components/rate/index.vue +63 -0
- package/components/rate/types.ts +47 -0
- package/components/share.ts +78 -0
- package/components/signature/index.ts +6 -0
- package/components/signature/index.vue +65 -0
- package/components/signature/instance.vue +161 -0
- package/components/signature/types.ts +79 -0
- package/components/slider/index.ts +6 -0
- package/components/slider/index.vue +63 -0
- package/components/slider/types.ts +53 -0
- package/components/stepper/index.ts +6 -0
- package/components/stepper/index.vue +62 -0
- package/components/stepper/types.ts +47 -0
- package/components/switch/index.ts +6 -0
- package/components/switch/index.vue +61 -0
- package/components/switch/types.ts +51 -0
- package/components/time-picker/index.ts +6 -0
- package/components/time-picker/index.vue +130 -0
- package/components/time-picker/types.ts +91 -0
- package/components/tree-select/index.ts +6 -0
- package/components/tree-select/index.vue +160 -0
- package/components/tree-select/types.ts +77 -0
- package/components/upload/index.ts +6 -0
- package/components/upload/index.vue +109 -0
- package/components/upload/types.ts +85 -0
- package/components/use.ts +45 -0
- package/components/utils.ts +52 -0
- package/components/wrapper/index.ts +6 -0
- package/components/wrapper/index.vue +117 -0
- package/components/wrapper/types.ts +94 -0
- package/dist/components/area/index.d.ts +5 -0
- package/dist/components/area/index.vue.d.ts +1843 -0
- package/dist/components/area/types.d.ts +1434 -0
- package/dist/components/cascader/index.d.ts +5 -0
- package/dist/components/cascader/index.vue.d.ts +2467 -0
- package/dist/components/cascader/types.d.ts +1419 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/checkbox/index.vue.d.ts +1550 -0
- package/dist/components/checkbox/types.d.ts +1313 -0
- package/dist/components/checkbox-group/index.d.ts +5 -0
- package/dist/components/checkbox-group/index.vue.d.ts +1643 -0
- package/dist/components/checkbox-group/types.d.ts +1372 -0
- package/dist/components/component-definition/components.d.ts +30 -0
- package/dist/components/component-definition/index.d.ts +4 -0
- package/dist/components/custom-render/index.d.ts +5 -0
- package/dist/components/custom-render/index.vue.d.ts +1473 -0
- package/dist/components/custom-render/types.d.ts +1175 -0
- package/dist/components/date-picker/index.d.ts +5 -0
- package/dist/components/date-picker/index.vue.d.ts +1888 -0
- package/dist/components/date-picker/types.d.ts +1458 -0
- package/dist/components/date-time-picker-group/index.d.ts +5 -0
- package/dist/components/date-time-picker-group/index.vue.d.ts +2181 -0
- package/dist/components/date-time-picker-group/types.d.ts +1549 -0
- package/dist/components/dynamic-group/index.d.ts +5 -0
- package/dist/components/dynamic-group/index.vue.d.ts +457 -0
- package/dist/components/dynamic-group/types.d.ts +403 -0
- package/dist/components/group/assist.d.ts +58 -0
- package/dist/components/group/index.d.ts +6 -0
- package/dist/components/group/index.vue.d.ts +139 -0
- package/dist/components/group/types.d.ts +189 -0
- package/dist/components/group/virtual-group.vue.d.ts +42 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.vue.d.ts +2229 -0
- package/dist/components/input/types.d.ts +1258 -0
- package/dist/components/input-slot/index.d.ts +5 -0
- package/dist/components/input-slot/index.vue.d.ts +626 -0
- package/dist/components/input-slot/types.d.ts +311 -0
- package/dist/components/number-keyboard/index.d.ts +5 -0
- package/dist/components/number-keyboard/index.vue.d.ts +1643 -0
- package/dist/components/number-keyboard/types.d.ts +1324 -0
- package/dist/components/password-input/index.d.ts +5 -0
- package/dist/components/password-input/index.vue.d.ts +1715 -0
- package/dist/components/password-input/types.d.ts +1357 -0
- package/dist/components/picker/index.d.ts +5 -0
- package/dist/components/picker/index.vue.d.ts +1868 -0
- package/dist/components/picker/types.d.ts +1466 -0
- package/dist/components/radio/index.d.ts +5 -0
- package/dist/components/radio/index.vue.d.ts +1563 -0
- package/dist/components/radio/types.d.ts +1327 -0
- package/dist/components/radio-group/index.d.ts +5 -0
- package/dist/components/radio-group/index.vue.d.ts +1617 -0
- package/dist/components/radio-group/types.d.ts +1383 -0
- package/dist/components/rate/index.d.ts +5 -0
- package/dist/components/rate/index.vue.d.ts +1557 -0
- package/dist/components/rate/types.d.ts +1281 -0
- package/dist/components/share.d.ts +679 -0
- package/dist/components/signature/index.d.ts +5 -0
- package/dist/components/signature/index.vue.d.ts +3017 -0
- package/dist/components/signature/instance.vue.d.ts +1614 -0
- package/dist/components/signature/types.d.ts +1369 -0
- package/dist/components/slider/index.d.ts +5 -0
- package/dist/components/slider/index.vue.d.ts +1563 -0
- package/dist/components/slider/types.d.ts +1302 -0
- package/dist/components/stepper/index.d.ts +5 -0
- package/dist/components/stepper/index.vue.d.ts +1620 -0
- package/dist/components/stepper/types.d.ts +1281 -0
- package/dist/components/switch/index.d.ts +5 -0
- package/dist/components/switch/index.vue.d.ts +1529 -0
- package/dist/components/switch/types.d.ts +1296 -0
- package/dist/components/time-picker/index.d.ts +5 -0
- package/dist/components/time-picker/index.vue.d.ts +1936 -0
- package/dist/components/time-picker/types.d.ts +1458 -0
- package/dist/components/tree-select/index.d.ts +5 -0
- package/dist/components/tree-select/index.vue.d.ts +1802 -0
- package/dist/components/tree-select/types.d.ts +1411 -0
- package/dist/components/upload/index.d.ts +5 -0
- package/dist/components/upload/index.vue.d.ts +1697 -0
- package/dist/components/upload/types.d.ts +1376 -0
- package/dist/components/use.d.ts +53 -0
- package/dist/components/utils.d.ts +15 -0
- package/dist/components/wrapper/index.d.ts +5 -0
- package/dist/components/wrapper/index.vue.d.ts +1085 -0
- package/dist/components/wrapper/types.d.ts +541 -0
- package/dist/docs/.vitepress/config.d.ts +3 -0
- package/dist/docs/.vitepress/theme/index.d.ts +2 -0
- package/dist/index.cjs.js +5459 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.cjs.min.js +3568 -0
- package/dist/index.cjs.min.js.map +1 -0
- package/dist/index.esm.js +5264 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.esm.min.js +3559 -0
- package/dist/index.esm.min.js.map +1 -0
- package/dist/index.umd.js +5465 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/index.umd.min.js +3573 -0
- package/dist/index.umd.min.js.map +1 -0
- package/dist/src/assist.d.ts +32 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/interface.d.ts +129 -0
- package/dist/src/utils.d.ts +9 -0
- package/dist/src/version.d.ts +2 -0
- package/docs/.vitepress/config.ts +99 -0
- package/docs/.vitepress/theme/index.ts +5 -0
- package/docs/README.md +20 -0
- package/docs/index.md +25 -0
- package/env.d.ts +8 -0
- package/package.json +71 -0
- package/scripts/generate-version.mjs +26 -0
- package/scripts/postinstall.cjs +13 -0
- package/scripts/utils.cjs +67 -0
- package/src/assist.ts +40 -0
- package/src/index.ts +5 -0
- package/src/interface.ts +293 -0
- package/src/utils.ts +22 -0
- package/src/version.ts +2 -0
- package/tsconfig.app.json +41 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +24 -0
- package/tsdown.config.ts +12 -0
- package/vite.config.ts +93 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import { PlainProps, getNode, getProvideValue, usePlain } from '@xiaohaih/json-form-core';
|
|
2
|
+
import { ExtractPublicPropTypes, Ref, SlotsType } from 'vue';
|
|
3
|
+
import { DynamicGroupSlots } from './types';
|
|
4
|
+
type Option = Omit<ExtractPublicPropTypes<PlainProps<Record<string, any>, Record<string, any>>>, 'query'> & {
|
|
5
|
+
t: string;
|
|
6
|
+
[REWRITE_FIELD_KEY]: string;
|
|
7
|
+
};
|
|
8
|
+
/** 当 field 不存在, 但 fields 存在时, 合并 fields 到对象上的 key */
|
|
9
|
+
declare const REWRITE_FIELD_KEY: "__field__";
|
|
10
|
+
/**
|
|
11
|
+
* @file 自定义组件 - 动态删减组件(对应动态表单)
|
|
12
|
+
*/
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly t: {
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
readonly tag: {
|
|
20
|
+
readonly type: import('vue').PropType<any>;
|
|
21
|
+
readonly default: "div";
|
|
22
|
+
};
|
|
23
|
+
readonly config: {
|
|
24
|
+
readonly type: import('vue').PropType<any>;
|
|
25
|
+
};
|
|
26
|
+
readonly uniqueKey: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
readonly contentProps: {
|
|
30
|
+
readonly type: import('vue').PropType<Partial<Record<"class" | "style", string | Record<string, any> | any[]>>>;
|
|
31
|
+
};
|
|
32
|
+
readonly slots: {
|
|
33
|
+
readonly type: import('vue').PropType<DynamicGroupSlots<Record<string, any>, Record<string, any>>>;
|
|
34
|
+
};
|
|
35
|
+
readonly itemSlots: {
|
|
36
|
+
readonly type: import('vue').PropType<{
|
|
37
|
+
prepend?: import('..').ComponentType<{
|
|
38
|
+
query: Record<string, any>;
|
|
39
|
+
checked: any[];
|
|
40
|
+
index: number;
|
|
41
|
+
plain: ReturnType<typeof usePlain>;
|
|
42
|
+
}> | undefined;
|
|
43
|
+
append?: import('..').ComponentType<{
|
|
44
|
+
query: Record<string, any>;
|
|
45
|
+
checked: any[];
|
|
46
|
+
index: number;
|
|
47
|
+
plain: ReturnType<typeof usePlain>;
|
|
48
|
+
}> | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
readonly default: () => {};
|
|
51
|
+
};
|
|
52
|
+
readonly field: Omit<{
|
|
53
|
+
readonly type: import('vue').PropType<string>;
|
|
54
|
+
readonly required: true;
|
|
55
|
+
}, "required">;
|
|
56
|
+
readonly fields: {
|
|
57
|
+
readonly type: import('vue').PropType<string[]>;
|
|
58
|
+
};
|
|
59
|
+
readonly query: {
|
|
60
|
+
readonly type: import('vue').PropType<Record<string, any>>;
|
|
61
|
+
readonly required: true;
|
|
62
|
+
};
|
|
63
|
+
readonly parentQuery: {
|
|
64
|
+
readonly type: import('vue').PropType<Record<string, any>>;
|
|
65
|
+
};
|
|
66
|
+
readonly depend: {
|
|
67
|
+
readonly type: import('vue').PropType<boolean>;
|
|
68
|
+
readonly default: undefined;
|
|
69
|
+
};
|
|
70
|
+
readonly resetByDependValueChange: {
|
|
71
|
+
readonly type: import('vue').PropType<boolean | ((query: Record<string, any>) => boolean)>;
|
|
72
|
+
readonly default: true;
|
|
73
|
+
};
|
|
74
|
+
readonly dependFields: {
|
|
75
|
+
readonly type: import('vue').PropType<string | string[]>;
|
|
76
|
+
};
|
|
77
|
+
readonly dependWatchOption: {
|
|
78
|
+
readonly type: import('vue').PropType<import('vue').WatchOptions>;
|
|
79
|
+
};
|
|
80
|
+
readonly optionsDepend: {
|
|
81
|
+
readonly type: import('vue').PropType<boolean>;
|
|
82
|
+
};
|
|
83
|
+
readonly optionsDependFields: {
|
|
84
|
+
readonly type: import('vue').PropType<string | string[]>;
|
|
85
|
+
};
|
|
86
|
+
readonly validator: {
|
|
87
|
+
readonly type: import('vue').PropType<(query: Record<string, any>) => any | Promise<any>>;
|
|
88
|
+
};
|
|
89
|
+
readonly initialValue: {
|
|
90
|
+
readonly type: import('vue').PropType<((option: {
|
|
91
|
+
query: Query;
|
|
92
|
+
}) => any) | any>;
|
|
93
|
+
readonly default: undefined;
|
|
94
|
+
};
|
|
95
|
+
readonly defaultValue: {
|
|
96
|
+
readonly type: import('vue').PropType<((option: {
|
|
97
|
+
query: Query;
|
|
98
|
+
}) => any) | any>;
|
|
99
|
+
readonly default: undefined;
|
|
100
|
+
};
|
|
101
|
+
readonly defaultValueConflictCallback: {
|
|
102
|
+
readonly type: import('vue').PropType<(value: any, checked: Ref<any>) => void>;
|
|
103
|
+
readonly default: typeof import('@xiaohaih/json-form-core').noop;
|
|
104
|
+
};
|
|
105
|
+
readonly options: {
|
|
106
|
+
readonly type: import('vue').PropType<any>;
|
|
107
|
+
readonly default: () => never[];
|
|
108
|
+
};
|
|
109
|
+
readonly getOptions: {
|
|
110
|
+
readonly type: import('vue').PropType<import('@xiaohaih/json-form-core').GetOptions<Record<string, any>, Record<string, any>>>;
|
|
111
|
+
};
|
|
112
|
+
readonly uniqueValue: {
|
|
113
|
+
readonly type: import('vue').PropType<string | number>;
|
|
114
|
+
};
|
|
115
|
+
readonly hooks: {
|
|
116
|
+
readonly type: import('vue').PropType<import('@xiaohaih/json-form-core').HookOption<Record<string, any>, Record<string, any>>>;
|
|
117
|
+
readonly default: undefined;
|
|
118
|
+
};
|
|
119
|
+
}>, {
|
|
120
|
+
hyphenate: <T extends string>(str: T) => import('@xiaohaih/json-form-core').Hyphenate<T>;
|
|
121
|
+
getNode: typeof getNode;
|
|
122
|
+
REWRITE_FIELD_KEY: "__field__";
|
|
123
|
+
virtualGroupRef: Ref<Record<string, any> | undefined, Record<string, any> | undefined>;
|
|
124
|
+
tagRef: import('vue').ComputedRef<any>;
|
|
125
|
+
plain: {
|
|
126
|
+
on: (type: "reset", fn: () => ((() => void) | void)) => () => void;
|
|
127
|
+
off: (type: "reset", fn?: (() => ((() => void) | void)) | undefined) => void;
|
|
128
|
+
clear: () => void;
|
|
129
|
+
coverProps: Ref<{
|
|
130
|
+
initialValue: any;
|
|
131
|
+
defaultValue: any;
|
|
132
|
+
}, Record<"initialValue" | "defaultValue", any> | {
|
|
133
|
+
initialValue: any;
|
|
134
|
+
defaultValue: any;
|
|
135
|
+
}>;
|
|
136
|
+
wrapper: import('@xiaohaih/json-form-core').ProvideValue<Record<string, any>, Record<string, any>, any> | undefined;
|
|
137
|
+
option: {
|
|
138
|
+
readonly field: string | undefined;
|
|
139
|
+
reset(this: void, query?: Record<string, any>): void;
|
|
140
|
+
readonly validator: any;
|
|
141
|
+
onBackfillChange: (backfill: Record<string, any>, oldBackfill: Record<string, any>, isChange: boolean) => void;
|
|
142
|
+
onModelChange: (model: Record<string, any>, oldModel: Record<string, any> | undefined) => void;
|
|
143
|
+
trySetDefaultValue(_query: Record<string, any>): boolean;
|
|
144
|
+
};
|
|
145
|
+
loading: Ref<boolean, boolean>;
|
|
146
|
+
getOptions: (trigger: "initial" | "depend" | "other", option?: {
|
|
147
|
+
filterValue?: string;
|
|
148
|
+
callback?: ((data: any[]) => void) | undefined;
|
|
149
|
+
} | undefined) => Promise<void>;
|
|
150
|
+
checked: import('vue').WritableComputedRef<any, any>;
|
|
151
|
+
remoteOption: Ref<any[], any[]>;
|
|
152
|
+
finalOption: import('vue').ComputedRef<any>;
|
|
153
|
+
change: (value: any) => void;
|
|
154
|
+
search: () => Promise<string | void> | string | void;
|
|
155
|
+
reset: (this: void, query?: Record<string, any>) => void;
|
|
156
|
+
globalReadonly: Ref<boolean | undefined, boolean | undefined>;
|
|
157
|
+
globalDisabled: Ref<boolean | undefined, boolean | undefined>;
|
|
158
|
+
};
|
|
159
|
+
finalConfig: import('vue').ComputedRef<{
|
|
160
|
+
uniqueValue: any;
|
|
161
|
+
options: Option[];
|
|
162
|
+
}[]>;
|
|
163
|
+
getComponent2: (name: string) => import('..').ComponentTypeDef | import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
164
|
+
readonly t: {
|
|
165
|
+
readonly type: StringConstructor;
|
|
166
|
+
};
|
|
167
|
+
readonly field: {
|
|
168
|
+
readonly type: StringConstructor;
|
|
169
|
+
};
|
|
170
|
+
readonly query: {
|
|
171
|
+
readonly type: import('vue').PropType<Record<string, any>>;
|
|
172
|
+
readonly required: true;
|
|
173
|
+
};
|
|
174
|
+
readonly tag: {
|
|
175
|
+
readonly type: import('vue').PropType<any>;
|
|
176
|
+
readonly default: "div";
|
|
177
|
+
};
|
|
178
|
+
readonly tagSlots: {
|
|
179
|
+
readonly type: import('vue').PropType<Record<string, import('..').ComponentType<{
|
|
180
|
+
query: Record<string, any>;
|
|
181
|
+
wrapper: ReturnType<typeof getProvideValue>;
|
|
182
|
+
}>>>;
|
|
183
|
+
};
|
|
184
|
+
readonly config: {
|
|
185
|
+
readonly type: import('vue').PropType<any>;
|
|
186
|
+
};
|
|
187
|
+
readonly slots: {
|
|
188
|
+
readonly type: import('vue').PropType<import('..').GroupSlots<Record<string, any>, Record<string, any>>>;
|
|
189
|
+
};
|
|
190
|
+
readonly hooks: {
|
|
191
|
+
readonly type: import('vue').PropType<import('..').GroupHookOption>;
|
|
192
|
+
readonly default: undefined;
|
|
193
|
+
};
|
|
194
|
+
readonly getFormRef: {
|
|
195
|
+
readonly type: import('vue').PropType<() => any>;
|
|
196
|
+
};
|
|
197
|
+
readonly class: {
|
|
198
|
+
type: import('vue').PropType<string | Record<string, any> | any[]>;
|
|
199
|
+
};
|
|
200
|
+
readonly style: {
|
|
201
|
+
type: import('vue').PropType<string | Record<string, any> | any[]>;
|
|
202
|
+
};
|
|
203
|
+
}>, {
|
|
204
|
+
hyphenate: <T extends string>(str: T) => import('@xiaohaih/json-form-core').Hyphenate<T>;
|
|
205
|
+
getNode: typeof getNode;
|
|
206
|
+
REWRITE_FIELD_KEY: "__field__";
|
|
207
|
+
virtualGroupRef: Ref<Record<string, any> | undefined, Record<string, any> | undefined>;
|
|
208
|
+
virtualTag: import('vue').ComputedRef<any>;
|
|
209
|
+
virtualSlots: import('vue').ComputedRef<Record<string, any> | undefined>;
|
|
210
|
+
tagRef: import('vue').ComputedRef<any>;
|
|
211
|
+
wrapper: import('@xiaohaih/json-form-core').ProvideValue<Record<string, any>, Record<string, any>, any> | undefined;
|
|
212
|
+
finalConfig: import('vue').ComputedRef<any[]>;
|
|
213
|
+
getComponent2: (name: string) => import('..').ComponentTypeDef | "HGroup" | null;
|
|
214
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
215
|
+
readonly t: {
|
|
216
|
+
readonly type: StringConstructor;
|
|
217
|
+
};
|
|
218
|
+
readonly field: {
|
|
219
|
+
readonly type: StringConstructor;
|
|
220
|
+
};
|
|
221
|
+
readonly query: {
|
|
222
|
+
readonly type: import('vue').PropType<Record<string, any>>;
|
|
223
|
+
readonly required: true;
|
|
224
|
+
};
|
|
225
|
+
readonly tag: {
|
|
226
|
+
readonly type: import('vue').PropType<any>;
|
|
227
|
+
readonly default: "div";
|
|
228
|
+
};
|
|
229
|
+
readonly tagSlots: {
|
|
230
|
+
readonly type: import('vue').PropType<Record<string, import('..').ComponentType<{
|
|
231
|
+
query: Record<string, any>;
|
|
232
|
+
wrapper: ReturnType<typeof getProvideValue>;
|
|
233
|
+
}>>>;
|
|
234
|
+
};
|
|
235
|
+
readonly config: {
|
|
236
|
+
readonly type: import('vue').PropType<any>;
|
|
237
|
+
};
|
|
238
|
+
readonly slots: {
|
|
239
|
+
readonly type: import('vue').PropType<import('..').GroupSlots<Record<string, any>, Record<string, any>>>;
|
|
240
|
+
};
|
|
241
|
+
readonly hooks: {
|
|
242
|
+
readonly type: import('vue').PropType<import('..').GroupHookOption>;
|
|
243
|
+
readonly default: undefined;
|
|
244
|
+
};
|
|
245
|
+
readonly getFormRef: {
|
|
246
|
+
readonly type: import('vue').PropType<() => any>;
|
|
247
|
+
};
|
|
248
|
+
readonly class: {
|
|
249
|
+
type: import('vue').PropType<string | Record<string, any> | any[]>;
|
|
250
|
+
};
|
|
251
|
+
readonly style: {
|
|
252
|
+
type: import('vue').PropType<string | Record<string, any> | any[]>;
|
|
253
|
+
};
|
|
254
|
+
}>> & Readonly<{}>, {
|
|
255
|
+
readonly hooks: import('..').GroupHookOption;
|
|
256
|
+
readonly tag: any;
|
|
257
|
+
}, SlotsType<import('..').GroupSlots<any, any>>, {
|
|
258
|
+
VirtualGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
259
|
+
tag: {
|
|
260
|
+
type: import('vue').PropType<any>;
|
|
261
|
+
default: string;
|
|
262
|
+
};
|
|
263
|
+
slots: {
|
|
264
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
265
|
+
};
|
|
266
|
+
wrapper: {
|
|
267
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
268
|
+
};
|
|
269
|
+
query: {
|
|
270
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
271
|
+
};
|
|
272
|
+
}>, {
|
|
273
|
+
getNode: typeof getNode;
|
|
274
|
+
tagRef: Ref<Record<string, any> | undefined, Record<string, any> | undefined>;
|
|
275
|
+
events: import('vue').ComputedRef<any>;
|
|
276
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
277
|
+
tag: {
|
|
278
|
+
type: import('vue').PropType<any>;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
281
|
+
slots: {
|
|
282
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
283
|
+
};
|
|
284
|
+
wrapper: {
|
|
285
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
286
|
+
};
|
|
287
|
+
query: {
|
|
288
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
289
|
+
};
|
|
290
|
+
}>> & Readonly<{}>, {
|
|
291
|
+
tag: any;
|
|
292
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
293
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | "HDynamicGroup" | null;
|
|
294
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
295
|
+
readonly t: {
|
|
296
|
+
readonly type: StringConstructor;
|
|
297
|
+
};
|
|
298
|
+
readonly tag: {
|
|
299
|
+
readonly type: import('vue').PropType<any>;
|
|
300
|
+
readonly default: "div";
|
|
301
|
+
};
|
|
302
|
+
readonly config: {
|
|
303
|
+
readonly type: import('vue').PropType<any>;
|
|
304
|
+
};
|
|
305
|
+
readonly uniqueKey: {
|
|
306
|
+
readonly type: StringConstructor;
|
|
307
|
+
};
|
|
308
|
+
readonly contentProps: {
|
|
309
|
+
readonly type: import('vue').PropType<Partial<Record<"class" | "style", string | Record<string, any> | any[]>>>;
|
|
310
|
+
};
|
|
311
|
+
readonly slots: {
|
|
312
|
+
readonly type: import('vue').PropType<DynamicGroupSlots<Record<string, any>, Record<string, any>>>;
|
|
313
|
+
};
|
|
314
|
+
readonly itemSlots: {
|
|
315
|
+
readonly type: import('vue').PropType<{
|
|
316
|
+
prepend?: import('..').ComponentType<{
|
|
317
|
+
query: Record<string, any>;
|
|
318
|
+
checked: any[];
|
|
319
|
+
index: number;
|
|
320
|
+
plain: ReturnType<typeof usePlain>;
|
|
321
|
+
}> | undefined;
|
|
322
|
+
append?: import('..').ComponentType<{
|
|
323
|
+
query: Record<string, any>;
|
|
324
|
+
checked: any[];
|
|
325
|
+
index: number;
|
|
326
|
+
plain: ReturnType<typeof usePlain>;
|
|
327
|
+
}> | undefined;
|
|
328
|
+
}>;
|
|
329
|
+
readonly default: () => {};
|
|
330
|
+
};
|
|
331
|
+
readonly field: Omit<{
|
|
332
|
+
readonly type: import('vue').PropType<string>;
|
|
333
|
+
readonly required: true;
|
|
334
|
+
}, "required">;
|
|
335
|
+
readonly fields: {
|
|
336
|
+
readonly type: import('vue').PropType<string[]>;
|
|
337
|
+
};
|
|
338
|
+
readonly query: {
|
|
339
|
+
readonly type: import('vue').PropType<Record<string, any>>;
|
|
340
|
+
readonly required: true;
|
|
341
|
+
};
|
|
342
|
+
readonly parentQuery: {
|
|
343
|
+
readonly type: import('vue').PropType<Record<string, any>>;
|
|
344
|
+
};
|
|
345
|
+
readonly depend: {
|
|
346
|
+
readonly type: import('vue').PropType<boolean>;
|
|
347
|
+
readonly default: undefined;
|
|
348
|
+
};
|
|
349
|
+
readonly resetByDependValueChange: {
|
|
350
|
+
readonly type: import('vue').PropType<boolean | ((query: Record<string, any>) => boolean)>;
|
|
351
|
+
readonly default: true;
|
|
352
|
+
};
|
|
353
|
+
readonly dependFields: {
|
|
354
|
+
readonly type: import('vue').PropType<string | string[]>;
|
|
355
|
+
};
|
|
356
|
+
readonly dependWatchOption: {
|
|
357
|
+
readonly type: import('vue').PropType<import('vue').WatchOptions>;
|
|
358
|
+
};
|
|
359
|
+
readonly optionsDepend: {
|
|
360
|
+
readonly type: import('vue').PropType<boolean>;
|
|
361
|
+
};
|
|
362
|
+
readonly optionsDependFields: {
|
|
363
|
+
readonly type: import('vue').PropType<string | string[]>;
|
|
364
|
+
};
|
|
365
|
+
readonly validator: {
|
|
366
|
+
readonly type: import('vue').PropType<(query: Record<string, any>) => any | Promise<any>>;
|
|
367
|
+
};
|
|
368
|
+
readonly initialValue: {
|
|
369
|
+
readonly type: import('vue').PropType<((option: {
|
|
370
|
+
query: Query;
|
|
371
|
+
}) => any) | any>;
|
|
372
|
+
readonly default: undefined;
|
|
373
|
+
};
|
|
374
|
+
readonly defaultValue: {
|
|
375
|
+
readonly type: import('vue').PropType<((option: {
|
|
376
|
+
query: Query;
|
|
377
|
+
}) => any) | any>;
|
|
378
|
+
readonly default: undefined;
|
|
379
|
+
};
|
|
380
|
+
readonly defaultValueConflictCallback: {
|
|
381
|
+
readonly type: import('vue').PropType<(value: any, checked: Ref<any>) => void>;
|
|
382
|
+
readonly default: typeof import('@xiaohaih/json-form-core').noop;
|
|
383
|
+
};
|
|
384
|
+
readonly options: {
|
|
385
|
+
readonly type: import('vue').PropType<any>;
|
|
386
|
+
readonly default: () => never[];
|
|
387
|
+
};
|
|
388
|
+
readonly getOptions: {
|
|
389
|
+
readonly type: import('vue').PropType<import('@xiaohaih/json-form-core').GetOptions<Record<string, any>, Record<string, any>>>;
|
|
390
|
+
};
|
|
391
|
+
readonly uniqueValue: {
|
|
392
|
+
readonly type: import('vue').PropType<string | number>;
|
|
393
|
+
};
|
|
394
|
+
readonly hooks: {
|
|
395
|
+
readonly type: import('vue').PropType<import('@xiaohaih/json-form-core').HookOption<Record<string, any>, Record<string, any>>>;
|
|
396
|
+
readonly default: undefined;
|
|
397
|
+
};
|
|
398
|
+
}>> & Readonly<{}>, {
|
|
399
|
+
readonly depend: boolean;
|
|
400
|
+
readonly resetByDependValueChange: boolean | ((query: Record<string, any>) => boolean);
|
|
401
|
+
readonly initialValue: any;
|
|
402
|
+
readonly defaultValue: any;
|
|
403
|
+
readonly defaultValueConflictCallback: (value: any, checked: Ref<any>) => void;
|
|
404
|
+
readonly options: any;
|
|
405
|
+
readonly hooks: import('@xiaohaih/json-form-core').HookOption<Record<string, any>, Record<string, any>>;
|
|
406
|
+
readonly tag: any;
|
|
407
|
+
readonly itemSlots: {
|
|
408
|
+
prepend?: import('..').ComponentType<{
|
|
409
|
+
query: Record<string, any>;
|
|
410
|
+
checked: any[];
|
|
411
|
+
index: number;
|
|
412
|
+
plain: ReturnType<typeof usePlain>;
|
|
413
|
+
}> | undefined;
|
|
414
|
+
append?: import('..').ComponentType<{
|
|
415
|
+
query: Record<string, any>;
|
|
416
|
+
checked: any[];
|
|
417
|
+
index: number;
|
|
418
|
+
plain: ReturnType<typeof usePlain>;
|
|
419
|
+
}> | undefined;
|
|
420
|
+
};
|
|
421
|
+
}, SlotsType<DynamicGroupSlots<any, any>>, {
|
|
422
|
+
VirtualGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
423
|
+
tag: {
|
|
424
|
+
type: import('vue').PropType<any>;
|
|
425
|
+
default: string;
|
|
426
|
+
};
|
|
427
|
+
slots: {
|
|
428
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
429
|
+
};
|
|
430
|
+
wrapper: {
|
|
431
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
432
|
+
};
|
|
433
|
+
query: {
|
|
434
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
435
|
+
};
|
|
436
|
+
}>, {
|
|
437
|
+
getNode: typeof getNode;
|
|
438
|
+
tagRef: Ref<Record<string, any> | undefined, Record<string, any> | undefined>;
|
|
439
|
+
events: import('vue').ComputedRef<any>;
|
|
440
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
441
|
+
tag: {
|
|
442
|
+
type: import('vue').PropType<any>;
|
|
443
|
+
default: string;
|
|
444
|
+
};
|
|
445
|
+
slots: {
|
|
446
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
447
|
+
};
|
|
448
|
+
wrapper: {
|
|
449
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
450
|
+
};
|
|
451
|
+
query: {
|
|
452
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
453
|
+
};
|
|
454
|
+
}>> & Readonly<{}>, {
|
|
455
|
+
tag: any;
|
|
456
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
457
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|