twcpt 0.0.2 → 0.0.4
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 +33 -4
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.d.ts +0 -7
- package/dist/charts.es.js +1 -9
- package/dist/components/j-tw-btn/index.d.ts +51 -14
- package/dist/components/j-tw-btn/types.d.ts +19 -4
- package/dist/components/j-tw-checkbox/index.d.ts +230 -0
- package/dist/components/j-tw-checkbox/types.d.ts +35 -0
- package/dist/components/j-tw-checkbox-group/index.d.ts +309 -0
- package/dist/components/j-tw-checkbox-group/types.d.ts +38 -0
- package/dist/components/j-tw-confirm-dialog/index.d.ts +704 -0
- package/dist/components/j-tw-confirm-dialog/jwConfirmDialog.d.ts +2 -0
- package/dist/components/j-tw-confirm-dialog/types.d.ts +79 -0
- package/dist/components/j-tw-date-picker/index.d.ts +1645 -0
- package/dist/components/j-tw-date-picker/types.d.ts +162 -0
- package/dist/components/j-tw-dialog/index.d.ts +793 -0
- package/dist/components/j-tw-dialog/jwDialog.d.ts +38 -0
- package/dist/components/j-tw-dialog/types.d.ts +122 -0
- package/dist/components/j-tw-dropdown-btn/index.d.ts +3 -0
- package/dist/components/j-tw-dropdown-btn/types.d.ts +69 -0
- package/dist/components/j-tw-form/index.d.ts +368 -0
- package/dist/components/j-tw-form/types.d.ts +18 -0
- package/dist/components/j-tw-form-item/index.d.ts +248 -0
- package/dist/components/j-tw-form-item/types.d.ts +21 -0
- package/dist/components/j-tw-form-label/index.d.ts +66 -0
- package/dist/components/j-tw-input/index.d.ts +537 -0
- package/dist/components/j-tw-input/types.d.ts +76 -0
- package/dist/components/j-tw-messages/MessageItem.d.ts +84 -0
- package/dist/components/j-tw-messages/index.d.ts +110 -0
- package/dist/components/j-tw-messages/jwMessages.d.ts +2 -0
- package/dist/components/j-tw-messages/state.d.ts +23 -0
- package/dist/components/j-tw-messages/types.d.ts +31 -0
- package/dist/components/j-tw-radio/index.d.ts +168 -0
- package/dist/components/j-tw-radio/types.d.ts +29 -0
- package/dist/components/j-tw-radio-group/index.d.ts +244 -0
- package/dist/components/j-tw-radio-group/types.d.ts +37 -0
- package/dist/components/j-tw-status-img/index.d.ts +36 -0
- package/dist/components/j-tw-status-img/types.d.ts +3 -0
- package/dist/components/j-tw-table/index.d.ts +480 -0
- package/dist/components/j-tw-table/types.d.ts +157 -0
- package/dist/components/j-tw-tree-select/TreeNode.d.ts +124 -0
- package/dist/components/j-tw-tree-select/index.d.ts +292 -0
- package/dist/components/j-tw-tree-select/types.d.ts +110 -0
- package/dist/components/j-tw-tree-select-btn/TreeNode.d.ts +107 -0
- package/dist/components/j-tw-tree-select-btn/index.d.ts +1505 -0
- package/dist/components/j-tw-tree-select-btn/types.d.ts +104 -0
- package/dist/global.d.ts +128 -38
- package/dist/index.css +1 -1
- package/dist/index.d.ts +44 -8
- package/dist/shims-svg.d.ts +4 -0
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +12 -1
- package/dist/twcpt.es.js +4521 -1488
- package/dist/types.d.ts +1 -1
- package/dist/utils/init.d.ts +19 -0
- package/dist/utils/tool.d.ts +1 -1
- package/dist/utils/useBizRequest.d.ts +12 -0
- package/package.json +4 -4
- package/dist/charts-CKv8I1ye.js +0 -879
- package/dist/charts-DIdINgA4.cjs +0 -1
- package/dist/charts.css +0 -1
- package/dist/components/j-ch-bar/index.d.ts +0 -50
- package/dist/components/j-ch-bar/types.d.ts +0 -42
- package/dist/components/j-ch-bar-line/index.d.ts +0 -49
- package/dist/components/j-ch-bar-line/types.d.ts +0 -42
- package/dist/components/j-ch-bubble/index.d.ts +0 -54
- package/dist/components/j-ch-bubble/types.d.ts +0 -51
- package/dist/components/j-ch-line/index.d.ts +0 -57
- package/dist/components/j-ch-line/types.d.ts +0 -42
- package/dist/components/j-ch-pie-doughnut/index.d.ts +0 -60
- package/dist/components/j-ch-pie-doughnut/types.d.ts +0 -55
- package/dist/components/j-ch-radar/index.d.ts +0 -49
- package/dist/components/j-ch-radar/types.d.ts +0 -42
- package/dist/utils/chart.d.ts +0 -28
- package/dist/utils/website-config.d.ts +0 -15
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps, CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
2
|
+
import { FormItemProp, FormItemRule, FormItemValidateState, ComponentSize, FormItemProps, FormValidateCallback, FormValidationResult } from 'element-plus';
|
|
3
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
4
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
5
|
+
import { SFCWithInstall } from 'element-plus/es/utils/index.mjs';
|
|
6
|
+
declare const _default: DefineComponent<{}, {
|
|
7
|
+
elFormItemRef: Ref<({
|
|
8
|
+
$: ComponentInternalInstance;
|
|
9
|
+
$data: {};
|
|
10
|
+
$props: {
|
|
11
|
+
readonly label?: string | undefined;
|
|
12
|
+
readonly labelWidth?: string | number | undefined;
|
|
13
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
14
|
+
readonly prop?: FormItemProp | undefined;
|
|
15
|
+
readonly required?: boolean | undefined;
|
|
16
|
+
readonly rules?: Arrayable<FormItemRule> | undefined;
|
|
17
|
+
readonly error?: string | undefined;
|
|
18
|
+
readonly validateStatus?: FormItemValidateState | undefined;
|
|
19
|
+
readonly for?: string | undefined;
|
|
20
|
+
readonly inlineMessage?: boolean | undefined;
|
|
21
|
+
readonly showMessage?: boolean | undefined;
|
|
22
|
+
readonly size?: ComponentSize | undefined;
|
|
23
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
24
|
+
$attrs: Attrs;
|
|
25
|
+
$refs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
$slots: Readonly<{
|
|
29
|
+
[name: string]: Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
$root: ComponentPublicInstance | null;
|
|
32
|
+
$parent: ComponentPublicInstance | null;
|
|
33
|
+
$host: Element | null;
|
|
34
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
35
|
+
$el: any;
|
|
36
|
+
$options: ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
37
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
38
|
+
validateMessage: Ref<string, string>;
|
|
39
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
40
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
41
|
+
clearValidate: () => void;
|
|
42
|
+
resetField: () => void;
|
|
43
|
+
setInitialValue: (value: any) => void;
|
|
44
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
45
|
+
required: boolean;
|
|
46
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
47
|
+
inlineMessage: boolean;
|
|
48
|
+
showMessage: boolean;
|
|
49
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
50
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
51
|
+
created?: (() => void) | (() => void)[];
|
|
52
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
53
|
+
mounted?: (() => void) | (() => void)[];
|
|
54
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
55
|
+
updated?: (() => void) | (() => void)[];
|
|
56
|
+
activated?: (() => void) | (() => void)[];
|
|
57
|
+
deactivated?: (() => void) | (() => void)[];
|
|
58
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
59
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
60
|
+
destroyed?: (() => void) | (() => void)[];
|
|
61
|
+
unmounted?: (() => void) | (() => void)[];
|
|
62
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
63
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
64
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
65
|
+
};
|
|
66
|
+
$forceUpdate: () => void;
|
|
67
|
+
$nextTick: nextTick;
|
|
68
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
69
|
+
} & Readonly<{
|
|
70
|
+
required: boolean;
|
|
71
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
72
|
+
inlineMessage: boolean;
|
|
73
|
+
showMessage: boolean;
|
|
74
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
75
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
76
|
+
validateMessage: Ref<string, string>;
|
|
77
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
78
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
79
|
+
clearValidate: () => void;
|
|
80
|
+
resetField: () => void;
|
|
81
|
+
setInitialValue: (value: any) => void;
|
|
82
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
83
|
+
$slots: {
|
|
84
|
+
label?: (props: {
|
|
85
|
+
label: string;
|
|
86
|
+
}) => any;
|
|
87
|
+
} & {
|
|
88
|
+
default?: (props: {}) => any;
|
|
89
|
+
} & {
|
|
90
|
+
error?: (props: {
|
|
91
|
+
error: string;
|
|
92
|
+
}) => any;
|
|
93
|
+
};
|
|
94
|
+
}) | null, ({
|
|
95
|
+
$: ComponentInternalInstance;
|
|
96
|
+
$data: {};
|
|
97
|
+
$props: {
|
|
98
|
+
readonly label?: string | undefined;
|
|
99
|
+
readonly labelWidth?: string | number | undefined;
|
|
100
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
101
|
+
readonly prop?: FormItemProp | undefined;
|
|
102
|
+
readonly required?: boolean | undefined;
|
|
103
|
+
readonly rules?: Arrayable<FormItemRule> | undefined;
|
|
104
|
+
readonly error?: string | undefined;
|
|
105
|
+
readonly validateStatus?: FormItemValidateState | undefined;
|
|
106
|
+
readonly for?: string | undefined;
|
|
107
|
+
readonly inlineMessage?: boolean | undefined;
|
|
108
|
+
readonly showMessage?: boolean | undefined;
|
|
109
|
+
readonly size?: ComponentSize | undefined;
|
|
110
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
111
|
+
$attrs: Attrs;
|
|
112
|
+
$refs: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
};
|
|
115
|
+
$slots: Readonly<{
|
|
116
|
+
[name: string]: Slot<any> | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
$root: ComponentPublicInstance | null;
|
|
119
|
+
$parent: ComponentPublicInstance | null;
|
|
120
|
+
$host: Element | null;
|
|
121
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
122
|
+
$el: any;
|
|
123
|
+
$options: ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
124
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
125
|
+
validateMessage: Ref<string, string>;
|
|
126
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
127
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
128
|
+
clearValidate: () => void;
|
|
129
|
+
resetField: () => void;
|
|
130
|
+
setInitialValue: (value: any) => void;
|
|
131
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
132
|
+
required: boolean;
|
|
133
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
134
|
+
inlineMessage: boolean;
|
|
135
|
+
showMessage: boolean;
|
|
136
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
137
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
138
|
+
created?: (() => void) | (() => void)[];
|
|
139
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
140
|
+
mounted?: (() => void) | (() => void)[];
|
|
141
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
142
|
+
updated?: (() => void) | (() => void)[];
|
|
143
|
+
activated?: (() => void) | (() => void)[];
|
|
144
|
+
deactivated?: (() => void) | (() => void)[];
|
|
145
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
146
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
147
|
+
destroyed?: (() => void) | (() => void)[];
|
|
148
|
+
unmounted?: (() => void) | (() => void)[];
|
|
149
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
150
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
151
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
152
|
+
};
|
|
153
|
+
$forceUpdate: () => void;
|
|
154
|
+
$nextTick: nextTick;
|
|
155
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
156
|
+
} & Readonly<{
|
|
157
|
+
required: boolean;
|
|
158
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
159
|
+
inlineMessage: boolean;
|
|
160
|
+
showMessage: boolean;
|
|
161
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
162
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
163
|
+
validateMessage: Ref<string, string>;
|
|
164
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
165
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
166
|
+
clearValidate: () => void;
|
|
167
|
+
resetField: () => void;
|
|
168
|
+
setInitialValue: (value: any) => void;
|
|
169
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
170
|
+
$slots: {
|
|
171
|
+
label?: (props: {
|
|
172
|
+
label: string;
|
|
173
|
+
}) => any;
|
|
174
|
+
} & {
|
|
175
|
+
default?: (props: {}) => any;
|
|
176
|
+
} & {
|
|
177
|
+
error?: (props: {
|
|
178
|
+
error: string;
|
|
179
|
+
}) => any;
|
|
180
|
+
};
|
|
181
|
+
}) | null>;
|
|
182
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
183
|
+
ElFormItem: SFCWithInstall<{
|
|
184
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FormItemProps> & Readonly<{}>, {
|
|
185
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
186
|
+
validateMessage: Ref<string, string>;
|
|
187
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
188
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
189
|
+
clearValidate: () => void;
|
|
190
|
+
resetField: () => void;
|
|
191
|
+
setInitialValue: (value: any) => void;
|
|
192
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
193
|
+
required: boolean;
|
|
194
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
195
|
+
inlineMessage: boolean;
|
|
196
|
+
showMessage: boolean;
|
|
197
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
198
|
+
P: {};
|
|
199
|
+
B: {};
|
|
200
|
+
D: {};
|
|
201
|
+
C: {};
|
|
202
|
+
M: {};
|
|
203
|
+
Defaults: {};
|
|
204
|
+
}, Readonly< FormItemProps> & Readonly<{}>, {
|
|
205
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
206
|
+
validateMessage: Ref<string, string>;
|
|
207
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
208
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
209
|
+
clearValidate: () => void;
|
|
210
|
+
resetField: () => void;
|
|
211
|
+
setInitialValue: (value: any) => void;
|
|
212
|
+
}, {}, {}, {}, {
|
|
213
|
+
required: boolean;
|
|
214
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
215
|
+
inlineMessage: boolean;
|
|
216
|
+
showMessage: boolean;
|
|
217
|
+
}>;
|
|
218
|
+
__isFragment?: never;
|
|
219
|
+
__isTeleport?: never;
|
|
220
|
+
__isSuspense?: never;
|
|
221
|
+
} & ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
222
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
223
|
+
validateMessage: Ref<string, string>;
|
|
224
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
225
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
226
|
+
clearValidate: () => void;
|
|
227
|
+
resetField: () => void;
|
|
228
|
+
setInitialValue: (value: any) => void;
|
|
229
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
230
|
+
required: boolean;
|
|
231
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
232
|
+
inlineMessage: boolean;
|
|
233
|
+
showMessage: boolean;
|
|
234
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
235
|
+
$slots: {
|
|
236
|
+
label?: (props: {
|
|
237
|
+
label: string;
|
|
238
|
+
}) => any;
|
|
239
|
+
} & {
|
|
240
|
+
default?: (props: {}) => any;
|
|
241
|
+
} & {
|
|
242
|
+
error?: (props: {
|
|
243
|
+
error: string;
|
|
244
|
+
}) => any;
|
|
245
|
+
};
|
|
246
|
+
})>;
|
|
247
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
248
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { FormItemProps, FormItemInstance } from 'element-plus';
|
|
3
|
+
export interface JTWFormItemProps extends FormItemProps {
|
|
4
|
+
}
|
|
5
|
+
export interface JTWFormItemSlots {
|
|
6
|
+
default?: () => any;
|
|
7
|
+
label?: () => any;
|
|
8
|
+
error?: (scope: {
|
|
9
|
+
error: string;
|
|
10
|
+
}) => any;
|
|
11
|
+
}
|
|
12
|
+
export interface JTWFormItemExpose {
|
|
13
|
+
size: FormItemInstance['size'];
|
|
14
|
+
validateMessage: FormItemInstance['validateMessage'];
|
|
15
|
+
validateState: FormItemInstance['validateState'];
|
|
16
|
+
validate: FormItemInstance['validate'];
|
|
17
|
+
clearValidate: FormItemInstance['clearValidate'];
|
|
18
|
+
resetField: FormItemInstance['resetField'];
|
|
19
|
+
}
|
|
20
|
+
export type JTWFormItemComponent = DefineComponent<JTWFormItemProps, JTWFormItemExpose, {}, {}, {}, {}, {}, {}>;
|
|
21
|
+
export type JTWFormItemInstance = InstanceType<JTWFormItemComponent> & JTWFormItemExpose;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type VueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
label: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
labelClass: {
|
|
8
|
+
type: PropType<VueClass>;
|
|
9
|
+
};
|
|
10
|
+
valueClass: {
|
|
11
|
+
type: PropType<VueClass>;
|
|
12
|
+
};
|
|
13
|
+
vertical: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
horizontal: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
required: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
directionClass: ComputedRef<"form-label--vertical" | "form-label--horizontal">;
|
|
27
|
+
showLabel: ComputedRef<true>;
|
|
28
|
+
slots: Readonly<{
|
|
29
|
+
default: Slot<void>;
|
|
30
|
+
'label-hint': Slot<void>;
|
|
31
|
+
'form-item-detail': Slot<void>;
|
|
32
|
+
label: Slot<void>;
|
|
33
|
+
}>;
|
|
34
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
35
|
+
label: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
labelClass: {
|
|
39
|
+
type: PropType<VueClass>;
|
|
40
|
+
};
|
|
41
|
+
valueClass: {
|
|
42
|
+
type: PropType<VueClass>;
|
|
43
|
+
};
|
|
44
|
+
vertical: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
horizontal: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
required: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{}>, {
|
|
57
|
+
horizontal: boolean;
|
|
58
|
+
vertical: boolean;
|
|
59
|
+
required: boolean;
|
|
60
|
+
}, SlotsType<{
|
|
61
|
+
default: void;
|
|
62
|
+
'label-hint': void;
|
|
63
|
+
'form-item-detail': void;
|
|
64
|
+
label: void;
|
|
65
|
+
}>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
export default _default;
|