jky-component-lib 0.0.122 → 0.0.125
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/dist/es/add-input/AddInput.vue.d.ts +27 -0
- package/dist/es/add-input/index.d.ts +5 -0
- package/dist/es/amap/AMap.vue.d.ts +61 -0
- package/dist/es/amap/AMarker.vue.d.ts +38 -0
- package/dist/es/amap/ATrackPlayback.vue.d.ts +69 -0
- package/dist/es/amap/index.d.ts +9 -0
- package/dist/es/amap/style.css +2 -13
- package/dist/es/amap/style2.css +6 -2
- package/dist/es/amap/style3.css +12 -5
- package/dist/es/button/Button.vue.d.ts +33 -0
- package/dist/es/button/index.d.ts +4 -0
- package/dist/es/button-nav/ButtonNav.vue.d.ts +36 -0
- package/dist/es/button-nav/index.d.ts +4 -0
- package/dist/es/code-mirror-editor/CodeMirrorEditor.vue.d.ts +25 -0
- package/dist/es/code-mirror-editor/index.d.ts +5 -0
- package/dist/es/components.d.ts +18 -0
- package/dist/es/form/Form.vue.d.ts +461 -0
- package/dist/es/form/Form.vue.js +15 -24
- package/dist/es/form/FormItem.vue.d.ts +6 -0
- package/dist/es/form/FormItem.vue.js +49 -7
- package/dist/es/form/SelectTable.vue.d.ts +38 -0
- package/dist/es/form/index.d.ts +5 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/menu/Menu.vue.d.ts +23 -0
- package/dist/es/menu/MenuItem.vue.d.ts +7 -0
- package/dist/es/menu/index.d.ts +5 -0
- package/dist/es/modal/Footer.vue.d.ts +10 -0
- package/dist/es/modal/Header.vue.d.ts +37 -0
- package/dist/es/modal/Modal.vue.d.ts +75 -0
- package/dist/es/modal/index.d.ts +5 -0
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-header/PageHeader.vue.d.ts +31 -0
- package/dist/es/page-header/PopoverMenu.vue.d.ts +13 -0
- package/dist/es/page-header/index.d.ts +5 -0
- package/dist/es/page-layout/PageLayout.vue.d.ts +18 -0
- package/dist/es/page-layout/index.d.ts +5 -0
- package/dist/es/page-table/ActionColumn.vue.d.ts +11 -0
- package/dist/es/page-table/ActionColumn.vue.js +12 -6
- package/dist/es/page-table/PageTable.vue.d.ts +5579 -0
- package/dist/es/page-table/PageTable.vue.js +11 -4
- package/dist/es/page-table/PageTableColumn.vue.d.ts +36 -0
- package/dist/es/page-table/Toolbar.vue.d.ts +33 -0
- package/dist/es/page-table/index.d.ts +9 -0
- package/dist/es/page-table-v2/PageTableV2.vue.d.ts +1026 -0
- package/dist/es/page-table-v2/index.d.ts +4 -0
- package/dist/es/resolver.d.ts +2 -0
- package/dist/es/rich-editor/RichEditor.vue.d.ts +78 -0
- package/dist/es/rich-editor/index.d.ts +5 -0
- package/dist/es/say-hello/SayHello.vue.d.ts +5 -0
- package/dist/es/say-hello/index.d.ts +4 -0
- package/dist/es/style.css +32 -0
- package/dist/es/tabs/ContextMenu.vue.d.ts +30 -0
- package/dist/es/tabs/Tabs.vue.d.ts +13 -0
- package/dist/es/tabs/config.d.ts +2 -0
- package/dist/es/tabs/createTabsGuard.d.ts +5 -0
- package/dist/es/tabs/index.d.ts +7 -0
- package/dist/es/tabs/useTabsStore.d.ts +6 -0
- package/dist/es/utils/index.d.ts +5 -0
- package/dist/es/utils/installer.d.ts +13 -0
- package/dist/es/utils/responsive-toolbar.d.ts +78 -0
- package/dist/es/utils/string.d.ts +18 -0
- package/dist/es/utils/types.d.ts +12 -0
- package/dist/es/utils/with-install.d.ts +2 -0
- package/dist/lib/add-input/AddInput.vue.d.ts +27 -0
- package/dist/lib/add-input/index.d.ts +5 -0
- package/dist/lib/amap/AMap.vue.d.ts +61 -0
- package/dist/lib/amap/AMarker.vue.d.ts +38 -0
- package/dist/lib/amap/ATrackPlayback.vue.d.ts +69 -0
- package/dist/lib/amap/index.d.ts +9 -0
- package/dist/lib/amap/style.css +2 -13
- package/dist/lib/amap/style2.css +6 -2
- package/dist/lib/amap/style3.css +12 -5
- package/dist/lib/button/Button.vue.d.ts +33 -0
- package/dist/lib/button/index.d.ts +4 -0
- package/dist/lib/button-nav/ButtonNav.vue.d.ts +36 -0
- package/dist/lib/button-nav/index.d.ts +4 -0
- package/dist/lib/code-mirror-editor/CodeMirrorEditor.vue.d.ts +25 -0
- package/dist/lib/code-mirror-editor/index.d.ts +5 -0
- package/dist/lib/components.d.ts +18 -0
- package/dist/lib/form/Form.vue.d.ts +461 -0
- package/dist/lib/form/Form.vue.js +15 -24
- package/dist/lib/form/FormItem.vue.d.ts +6 -0
- package/dist/lib/form/FormItem.vue.js +49 -7
- package/dist/lib/form/SelectTable.vue.d.ts +38 -0
- package/dist/lib/form/index.d.ts +5 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/menu/Menu.vue.d.ts +23 -0
- package/dist/lib/menu/MenuItem.vue.d.ts +7 -0
- package/dist/lib/menu/index.d.ts +5 -0
- package/dist/lib/modal/Footer.vue.d.ts +10 -0
- package/dist/lib/modal/Header.vue.d.ts +37 -0
- package/dist/lib/modal/Modal.vue.d.ts +75 -0
- package/dist/lib/modal/index.d.ts +5 -0
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-header/PageHeader.vue.d.ts +31 -0
- package/dist/lib/page-header/PopoverMenu.vue.d.ts +13 -0
- package/dist/lib/page-header/index.d.ts +5 -0
- package/dist/lib/page-layout/PageLayout.vue.d.ts +18 -0
- package/dist/lib/page-layout/index.d.ts +5 -0
- package/dist/lib/page-table/ActionColumn.vue.d.ts +11 -0
- package/dist/lib/page-table/ActionColumn.vue.js +12 -6
- package/dist/lib/page-table/PageTable.vue.d.ts +5579 -0
- package/dist/lib/page-table/PageTable.vue.js +11 -4
- package/dist/lib/page-table/PageTableColumn.vue.d.ts +36 -0
- package/dist/lib/page-table/Toolbar.vue.d.ts +33 -0
- package/dist/lib/page-table/index.d.ts +9 -0
- package/dist/lib/page-table-v2/PageTableV2.vue.d.ts +1026 -0
- package/dist/lib/page-table-v2/index.d.ts +4 -0
- package/dist/lib/resolver.d.ts +2 -0
- package/dist/lib/rich-editor/RichEditor.vue.d.ts +78 -0
- package/dist/lib/rich-editor/index.d.ts +5 -0
- package/dist/lib/say-hello/SayHello.vue.d.ts +5 -0
- package/dist/lib/say-hello/index.d.ts +4 -0
- package/dist/lib/style.css +32 -0
- package/dist/lib/tabs/ContextMenu.vue.d.ts +30 -0
- package/dist/lib/tabs/Tabs.vue.d.ts +13 -0
- package/dist/lib/tabs/config.d.ts +2 -0
- package/dist/lib/tabs/createTabsGuard.d.ts +5 -0
- package/dist/lib/tabs/index.d.ts +7 -0
- package/dist/lib/tabs/useTabsStore.d.ts +6 -0
- package/dist/lib/utils/index.d.ts +5 -0
- package/dist/lib/utils/installer.d.ts +13 -0
- package/dist/lib/utils/responsive-toolbar.d.ts +78 -0
- package/dist/lib/utils/string.d.ts +18 -0
- package/dist/lib/utils/types.d.ts +12 -0
- package/dist/lib/utils/with-install.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import { FormProps } from './types';
|
|
2
|
+
type __VLS_Props = FormProps;
|
|
3
|
+
declare function validate(callback?: (isValid: boolean, invalidFields?: any) => void): Promise<boolean>;
|
|
4
|
+
declare function clearValidate(props?: any): void;
|
|
5
|
+
declare function getFormInstance(): ({
|
|
6
|
+
$: import('vue').ComponentInternalInstance;
|
|
7
|
+
$data: {};
|
|
8
|
+
$props: {
|
|
9
|
+
readonly model?: Record<string, any> | undefined;
|
|
10
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
11
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
12
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
13
|
+
readonly labelWidth?: string | number | undefined;
|
|
14
|
+
readonly labelSuffix?: string | undefined;
|
|
15
|
+
readonly inline?: boolean | undefined;
|
|
16
|
+
readonly inlineMessage?: boolean | undefined;
|
|
17
|
+
readonly statusIcon?: boolean | undefined;
|
|
18
|
+
readonly showMessage?: boolean | undefined;
|
|
19
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
20
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
21
|
+
readonly scrollToError?: boolean | undefined;
|
|
22
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
23
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
24
|
+
readonly disabled?: boolean | undefined;
|
|
25
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
26
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
27
|
+
$attrs: import('vue').Attrs;
|
|
28
|
+
$refs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$slots: Readonly<{
|
|
32
|
+
[name: string]: globalThis.Slot | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
$root: ComponentPublicInstance | null;
|
|
35
|
+
$parent: ComponentPublicInstance | null;
|
|
36
|
+
$host: Element | null;
|
|
37
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
38
|
+
$el: any;
|
|
39
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
40
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
43
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
44
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
45
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
46
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
47
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
48
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
49
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
50
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
52
|
+
}, string, {
|
|
53
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
54
|
+
labelWidth: string | number;
|
|
55
|
+
labelPosition: "left" | "right" | "top";
|
|
56
|
+
requireAsteriskPosition: "left" | "right";
|
|
57
|
+
labelSuffix: string;
|
|
58
|
+
showMessage: boolean;
|
|
59
|
+
validateOnRuleChange: boolean;
|
|
60
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
61
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
62
|
+
created?: (() => void) | (() => void)[];
|
|
63
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
64
|
+
mounted?: (() => void) | (() => void)[];
|
|
65
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
66
|
+
updated?: (() => void) | (() => void)[];
|
|
67
|
+
activated?: (() => void) | (() => void)[];
|
|
68
|
+
deactivated?: (() => void) | (() => void)[];
|
|
69
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
70
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
71
|
+
destroyed?: (() => void) | (() => void)[];
|
|
72
|
+
unmounted?: (() => void) | (() => void)[];
|
|
73
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
74
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
75
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
76
|
+
};
|
|
77
|
+
$forceUpdate: () => void;
|
|
78
|
+
$nextTick: typeof import('vue').nextTick;
|
|
79
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
80
|
+
} & Readonly<{
|
|
81
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
82
|
+
labelWidth: string | number;
|
|
83
|
+
labelPosition: "left" | "right" | "top";
|
|
84
|
+
requireAsteriskPosition: "left" | "right";
|
|
85
|
+
labelSuffix: string;
|
|
86
|
+
showMessage: boolean;
|
|
87
|
+
validateOnRuleChange: boolean;
|
|
88
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
89
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
90
|
+
}>, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & {
|
|
91
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
92
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
93
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
94
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
95
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
96
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
97
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
98
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
99
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
100
|
+
$slots: {
|
|
101
|
+
default?: (props: {}) => any;
|
|
102
|
+
};
|
|
103
|
+
}) | undefined;
|
|
104
|
+
type __VLS_PublicProps = {
|
|
105
|
+
modelValue: Record<string, any>;
|
|
106
|
+
} & __VLS_Props;
|
|
107
|
+
declare function __VLS_template(): {
|
|
108
|
+
attrs: Partial<{}>;
|
|
109
|
+
slots: Readonly<{
|
|
110
|
+
[key: string]: (props: {
|
|
111
|
+
model: Record<string, any>;
|
|
112
|
+
field: string;
|
|
113
|
+
}) => any;
|
|
114
|
+
}> & {
|
|
115
|
+
[key: string]: (props: {
|
|
116
|
+
model: Record<string, any>;
|
|
117
|
+
field: string;
|
|
118
|
+
}) => any;
|
|
119
|
+
};
|
|
120
|
+
refs: {
|
|
121
|
+
formRef: ({
|
|
122
|
+
$: import('vue').ComponentInternalInstance;
|
|
123
|
+
$data: {};
|
|
124
|
+
$props: {
|
|
125
|
+
readonly model?: Record<string, any> | undefined;
|
|
126
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
127
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
128
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
129
|
+
readonly labelWidth?: string | number | undefined;
|
|
130
|
+
readonly labelSuffix?: string | undefined;
|
|
131
|
+
readonly inline?: boolean | undefined;
|
|
132
|
+
readonly inlineMessage?: boolean | undefined;
|
|
133
|
+
readonly statusIcon?: boolean | undefined;
|
|
134
|
+
readonly showMessage?: boolean | undefined;
|
|
135
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
136
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
137
|
+
readonly scrollToError?: boolean | undefined;
|
|
138
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
139
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
140
|
+
readonly disabled?: boolean | undefined;
|
|
141
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
142
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
143
|
+
$attrs: import('vue').Attrs;
|
|
144
|
+
$refs: {
|
|
145
|
+
[x: string]: unknown;
|
|
146
|
+
};
|
|
147
|
+
$slots: Readonly<{
|
|
148
|
+
[name: string]: globalThis.Slot | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
$root: ComponentPublicInstance | null;
|
|
151
|
+
$parent: ComponentPublicInstance | null;
|
|
152
|
+
$host: Element | null;
|
|
153
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
154
|
+
$el: any;
|
|
155
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
156
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
157
|
+
}>, {
|
|
158
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
159
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
160
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
161
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
162
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
163
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
164
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
165
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
166
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
167
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
168
|
+
}, string, {
|
|
169
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
170
|
+
labelWidth: string | number;
|
|
171
|
+
labelPosition: "left" | "right" | "top";
|
|
172
|
+
requireAsteriskPosition: "left" | "right";
|
|
173
|
+
labelSuffix: string;
|
|
174
|
+
showMessage: boolean;
|
|
175
|
+
validateOnRuleChange: boolean;
|
|
176
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
177
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
178
|
+
created?: (() => void) | (() => void)[];
|
|
179
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
180
|
+
mounted?: (() => void) | (() => void)[];
|
|
181
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
182
|
+
updated?: (() => void) | (() => void)[];
|
|
183
|
+
activated?: (() => void) | (() => void)[];
|
|
184
|
+
deactivated?: (() => void) | (() => void)[];
|
|
185
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
186
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
187
|
+
destroyed?: (() => void) | (() => void)[];
|
|
188
|
+
unmounted?: (() => void) | (() => void)[];
|
|
189
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
190
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
191
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
192
|
+
};
|
|
193
|
+
$forceUpdate: () => void;
|
|
194
|
+
$nextTick: typeof import('vue').nextTick;
|
|
195
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
196
|
+
} & Readonly<{
|
|
197
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
198
|
+
labelWidth: string | number;
|
|
199
|
+
labelPosition: "left" | "right" | "top";
|
|
200
|
+
requireAsteriskPosition: "left" | "right";
|
|
201
|
+
labelSuffix: string;
|
|
202
|
+
showMessage: boolean;
|
|
203
|
+
validateOnRuleChange: boolean;
|
|
204
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
205
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
206
|
+
}>, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & {
|
|
207
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
208
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
209
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
210
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
211
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
212
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
213
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
214
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
215
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
216
|
+
$slots: {
|
|
217
|
+
default?: (props: {}) => any;
|
|
218
|
+
};
|
|
219
|
+
}) | null;
|
|
220
|
+
};
|
|
221
|
+
rootEl: any;
|
|
222
|
+
};
|
|
223
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
224
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
225
|
+
validate: typeof validate;
|
|
226
|
+
clearValidate: typeof clearValidate;
|
|
227
|
+
getFormInstance: typeof getFormInstance;
|
|
228
|
+
form: ({
|
|
229
|
+
$: import('vue').ComponentInternalInstance;
|
|
230
|
+
$data: {};
|
|
231
|
+
$props: {
|
|
232
|
+
readonly model?: Record<string, any> | undefined;
|
|
233
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
234
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
235
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
236
|
+
readonly labelWidth?: string | number | undefined;
|
|
237
|
+
readonly labelSuffix?: string | undefined;
|
|
238
|
+
readonly inline?: boolean | undefined;
|
|
239
|
+
readonly inlineMessage?: boolean | undefined;
|
|
240
|
+
readonly statusIcon?: boolean | undefined;
|
|
241
|
+
readonly showMessage?: boolean | undefined;
|
|
242
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
243
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
244
|
+
readonly scrollToError?: boolean | undefined;
|
|
245
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
246
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
247
|
+
readonly disabled?: boolean | undefined;
|
|
248
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
249
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
250
|
+
$attrs: import('vue').Attrs;
|
|
251
|
+
$refs: {
|
|
252
|
+
[x: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
$slots: Readonly<{
|
|
255
|
+
[name: string]: globalThis.Slot | undefined;
|
|
256
|
+
}>;
|
|
257
|
+
$root: ComponentPublicInstance | null;
|
|
258
|
+
$parent: ComponentPublicInstance | null;
|
|
259
|
+
$host: Element | null;
|
|
260
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
261
|
+
$el: any;
|
|
262
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
263
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
264
|
+
}>, {
|
|
265
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
266
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
267
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
268
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
269
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
270
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
271
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
272
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
273
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
274
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
275
|
+
}, string, {
|
|
276
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
277
|
+
labelWidth: string | number;
|
|
278
|
+
labelPosition: "left" | "right" | "top";
|
|
279
|
+
requireAsteriskPosition: "left" | "right";
|
|
280
|
+
labelSuffix: string;
|
|
281
|
+
showMessage: boolean;
|
|
282
|
+
validateOnRuleChange: boolean;
|
|
283
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
284
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
285
|
+
created?: (() => void) | (() => void)[];
|
|
286
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
287
|
+
mounted?: (() => void) | (() => void)[];
|
|
288
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
289
|
+
updated?: (() => void) | (() => void)[];
|
|
290
|
+
activated?: (() => void) | (() => void)[];
|
|
291
|
+
deactivated?: (() => void) | (() => void)[];
|
|
292
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
293
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
294
|
+
destroyed?: (() => void) | (() => void)[];
|
|
295
|
+
unmounted?: (() => void) | (() => void)[];
|
|
296
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
297
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
298
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
299
|
+
};
|
|
300
|
+
$forceUpdate: () => void;
|
|
301
|
+
$nextTick: typeof import('vue').nextTick;
|
|
302
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
303
|
+
} & Readonly<{
|
|
304
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
305
|
+
labelWidth: string | number;
|
|
306
|
+
labelPosition: "left" | "right" | "top";
|
|
307
|
+
requireAsteriskPosition: "left" | "right";
|
|
308
|
+
labelSuffix: string;
|
|
309
|
+
showMessage: boolean;
|
|
310
|
+
validateOnRuleChange: boolean;
|
|
311
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
312
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
313
|
+
}>, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & {
|
|
314
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
315
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
316
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
317
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
318
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
319
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
320
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
321
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
322
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
323
|
+
$slots: {
|
|
324
|
+
default?: (props: {}) => any;
|
|
325
|
+
};
|
|
326
|
+
}) | undefined;
|
|
327
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
328
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
329
|
+
change: (value: Record<string, any>) => any;
|
|
330
|
+
reset: () => any;
|
|
331
|
+
submit: (data: Record<string, any>) => any;
|
|
332
|
+
validate: (result: {
|
|
333
|
+
valid: boolean;
|
|
334
|
+
fields?: any;
|
|
335
|
+
}) => any;
|
|
336
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
337
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
338
|
+
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
339
|
+
onReset?: (() => any) | undefined;
|
|
340
|
+
onSubmit?: ((data: Record<string, any>) => any) | undefined;
|
|
341
|
+
onValidate?: ((result: {
|
|
342
|
+
valid: boolean;
|
|
343
|
+
fields?: any;
|
|
344
|
+
}) => any) | undefined;
|
|
345
|
+
}>, {
|
|
346
|
+
watchDeep: boolean;
|
|
347
|
+
showFooter: boolean;
|
|
348
|
+
footerClass: string;
|
|
349
|
+
submitText: string;
|
|
350
|
+
cancelText: string;
|
|
351
|
+
submitDisabled: boolean;
|
|
352
|
+
cancelDisabled: boolean;
|
|
353
|
+
showCount: number;
|
|
354
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
355
|
+
formRef: ({
|
|
356
|
+
$: import('vue').ComponentInternalInstance;
|
|
357
|
+
$data: {};
|
|
358
|
+
$props: {
|
|
359
|
+
readonly model?: Record<string, any> | undefined;
|
|
360
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
361
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
362
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
363
|
+
readonly labelWidth?: string | number | undefined;
|
|
364
|
+
readonly labelSuffix?: string | undefined;
|
|
365
|
+
readonly inline?: boolean | undefined;
|
|
366
|
+
readonly inlineMessage?: boolean | undefined;
|
|
367
|
+
readonly statusIcon?: boolean | undefined;
|
|
368
|
+
readonly showMessage?: boolean | undefined;
|
|
369
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
370
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
371
|
+
readonly scrollToError?: boolean | undefined;
|
|
372
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
373
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
374
|
+
readonly disabled?: boolean | undefined;
|
|
375
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
376
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
377
|
+
$attrs: import('vue').Attrs;
|
|
378
|
+
$refs: {
|
|
379
|
+
[x: string]: unknown;
|
|
380
|
+
};
|
|
381
|
+
$slots: Readonly<{
|
|
382
|
+
[name: string]: globalThis.Slot | undefined;
|
|
383
|
+
}>;
|
|
384
|
+
$root: ComponentPublicInstance | null;
|
|
385
|
+
$parent: ComponentPublicInstance | null;
|
|
386
|
+
$host: Element | null;
|
|
387
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
388
|
+
$el: any;
|
|
389
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
390
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
391
|
+
}>, {
|
|
392
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
393
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
394
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
395
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
396
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
397
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
398
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
399
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
400
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
401
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
402
|
+
}, string, {
|
|
403
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
404
|
+
labelWidth: string | number;
|
|
405
|
+
labelPosition: "left" | "right" | "top";
|
|
406
|
+
requireAsteriskPosition: "left" | "right";
|
|
407
|
+
labelSuffix: string;
|
|
408
|
+
showMessage: boolean;
|
|
409
|
+
validateOnRuleChange: boolean;
|
|
410
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
411
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
412
|
+
created?: (() => void) | (() => void)[];
|
|
413
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
414
|
+
mounted?: (() => void) | (() => void)[];
|
|
415
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
416
|
+
updated?: (() => void) | (() => void)[];
|
|
417
|
+
activated?: (() => void) | (() => void)[];
|
|
418
|
+
deactivated?: (() => void) | (() => void)[];
|
|
419
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
420
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
421
|
+
destroyed?: (() => void) | (() => void)[];
|
|
422
|
+
unmounted?: (() => void) | (() => void)[];
|
|
423
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
424
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
425
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
426
|
+
};
|
|
427
|
+
$forceUpdate: () => void;
|
|
428
|
+
$nextTick: typeof import('vue').nextTick;
|
|
429
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
430
|
+
} & Readonly<{
|
|
431
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
432
|
+
labelWidth: string | number;
|
|
433
|
+
labelPosition: "left" | "right" | "top";
|
|
434
|
+
requireAsteriskPosition: "left" | "right";
|
|
435
|
+
labelSuffix: string;
|
|
436
|
+
showMessage: boolean;
|
|
437
|
+
validateOnRuleChange: boolean;
|
|
438
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
439
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
440
|
+
}>, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & {
|
|
441
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
442
|
+
validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
443
|
+
resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
444
|
+
clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
445
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
446
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
447
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
448
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
449
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
450
|
+
$slots: {
|
|
451
|
+
default?: (props: {}) => any;
|
|
452
|
+
};
|
|
453
|
+
}) | null;
|
|
454
|
+
}, any>;
|
|
455
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
456
|
+
export default _default;
|
|
457
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
458
|
+
new (): {
|
|
459
|
+
$slots: S;
|
|
460
|
+
};
|
|
461
|
+
};
|
package/dist/es/form/Form.vue.js
CHANGED
|
@@ -47,41 +47,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
47
47
|
}), {
|
|
48
48
|
__name: "Form",
|
|
49
49
|
props: /* @__PURE__ */ mergeModels({
|
|
50
|
+
formProps: {},
|
|
50
51
|
items: {},
|
|
51
52
|
showTitle: { type: Boolean },
|
|
52
53
|
title: {},
|
|
53
|
-
|
|
54
|
-
defaultSpan: { default: 24 },
|
|
55
|
-
responsive: { type: Boolean, default: true },
|
|
56
|
-
grid: { type: [Boolean, Object], default: false },
|
|
57
|
-
className: {},
|
|
58
|
-
readonly: { type: [Boolean, Function] },
|
|
54
|
+
disabled: { type: Boolean },
|
|
59
55
|
watchDeep: { type: Boolean, default: true },
|
|
60
56
|
showFooter: { type: Boolean, default: true },
|
|
61
57
|
footerClass: { default: "" },
|
|
62
58
|
submitText: { default: "提交" },
|
|
63
59
|
cancelText: { default: "取消" },
|
|
60
|
+
submitIcon: {},
|
|
61
|
+
cancelIcon: {},
|
|
64
62
|
submitDisabled: { type: Boolean, default: false },
|
|
65
63
|
cancelDisabled: { type: Boolean, default: false },
|
|
66
64
|
showCount: { default: 999 },
|
|
67
65
|
onSubmit: {},
|
|
68
66
|
onReset: {},
|
|
69
|
-
|
|
70
|
-
rules: {},
|
|
71
|
-
labelPosition: {},
|
|
72
|
-
requireAsteriskPosition: {},
|
|
73
|
-
labelWidth: {},
|
|
74
|
-
labelSuffix: {},
|
|
75
|
-
inline: { type: Boolean },
|
|
76
|
-
inlineMessage: { type: Boolean },
|
|
77
|
-
statusIcon: { type: Boolean },
|
|
78
|
-
showMessage: { type: Boolean },
|
|
79
|
-
validateOnRuleChange: { type: Boolean },
|
|
80
|
-
hideRequiredAsterisk: { type: Boolean },
|
|
81
|
-
scrollToError: { type: Boolean },
|
|
82
|
-
scrollIntoViewOptions: { type: Boolean },
|
|
83
|
-
size: { default: "default" },
|
|
84
|
-
disabled: { type: Boolean }
|
|
67
|
+
inline: { type: Boolean }
|
|
85
68
|
}, {
|
|
86
69
|
"modelValue": { required: true, default: () => ({}) },
|
|
87
70
|
"modelModifiers": {}
|
|
@@ -237,7 +220,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
237
220
|
onClick: handleCancel
|
|
238
221
|
}, {
|
|
239
222
|
default: withCtx(() => [
|
|
240
|
-
|
|
223
|
+
props.cancelIcon ? (openBlock(), createElementBlock("span", {
|
|
224
|
+
key: 0,
|
|
225
|
+
class: normalizeClass([props.cancelIcon, "mr-2"])
|
|
226
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
227
|
+
createTextVNode(" " + toDisplayString(__props.cancelText), 1)
|
|
241
228
|
]),
|
|
242
229
|
_: 1
|
|
243
230
|
}, 8, ["disabled"]),
|
|
@@ -248,7 +235,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
248
235
|
onClick: handleSubmit
|
|
249
236
|
}, {
|
|
250
237
|
default: withCtx(() => [
|
|
251
|
-
|
|
238
|
+
props.submitIcon ? (openBlock(), createElementBlock("span", {
|
|
239
|
+
key: 0,
|
|
240
|
+
class: normalizeClass([props.submitIcon, "mr-2"])
|
|
241
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
242
|
+
createTextVNode(" " + toDisplayString(__props.submitText), 1)
|
|
252
243
|
]),
|
|
253
244
|
_: 1
|
|
254
245
|
}, 8, ["disabled"])
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormItemProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<FormItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FormItemProps> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
readonly: boolean | ((context: import('./types').FormItemPropsContext<T>) => boolean);
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|