@polyv/vue-components 1.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/font/din-pro/index.scss +26 -0
- package/font/youshe/index.scss +8 -0
- package/index.es.js +5574 -0
- package/package.json +22 -0
- package/src/components/basic-countdown/basic-countdown.vue.d.ts +71 -0
- package/src/components/basic-countdown/index.d.ts +2 -0
- package/src/components/basic-countdown/use-basic-countdown.d.ts +44 -0
- package/src/components/exports.d.ts +7 -0
- package/src/components/form/form-area-picker/form-area-picker.vue.d.ts +39 -0
- package/src/components/form/form-area-picker/index.d.ts +2 -0
- package/src/components/form/form-area-picker/use-form-area-picker.d.ts +50 -0
- package/src/components/form/form-checkbox/form-checkbox-group.vue.d.ts +27 -0
- package/src/components/form/form-checkbox/form-checkbox.vue.d.ts +67 -0
- package/src/components/form/form-checkbox/index.d.ts +4 -0
- package/src/components/form/form-checkbox/type.d.ts +8 -0
- package/src/components/form/form-checkbox/use-form-checkbox.d.ts +38 -0
- package/src/components/form/form-input/form-input.vue.d.ts +117 -0
- package/src/components/form/form-input/index.d.ts +2 -0
- package/src/components/form/form-input/use-form-input.d.ts +88 -0
- package/src/components/form/form-item/form-item.vue.d.ts +54 -0
- package/src/components/form/form-item/index.d.ts +2 -0
- package/src/components/form/form-item/use-form-item.d.ts +71 -0
- package/src/components/form/form-protocol/form-protocol.vue.d.ts +19 -0
- package/src/components/form/form-protocol/index.d.ts +2 -0
- package/src/components/form/form-protocol/use-form-protocol.d.ts +19 -0
- package/src/components/form/form-radio/form-radio-group.vue.d.ts +21 -0
- package/src/components/form/form-radio/form-radio.vue.d.ts +56 -0
- package/src/components/form/form-radio/index.d.ts +3 -0
- package/src/components/form/form-radio/type.d.ts +7 -0
- package/src/components/form/form-submit-button/form-submit-button.vue.d.ts +61 -0
- package/src/components/form/form-submit-button/index.d.ts +2 -0
- package/src/components/form/form-submit-button/use-form-submit-button.d.ts +35 -0
- package/src/components/form/form-wrap/form-wrap.vue.d.ts +74 -0
- package/src/components/form/form-wrap/index.d.ts +2 -0
- package/src/components/form/form-wrap/use-form-wrap.d.ts +64 -0
- package/src/components/form/hooks/use-form-common.d.ts +25 -0
- package/src/components/form/index.d.ts +9 -0
- package/src/components/form/types/index.d.ts +19 -0
- package/src/components/icons/icons/arrow-down/index.d.ts +6 -0
- package/src/components/icons/icons/arrow-left/index.d.ts +6 -0
- package/src/components/icons/icons/arrow-right/index.d.ts +6 -0
- package/src/components/icons/icons/arrow-up/index.d.ts +6 -0
- package/src/components/icons/icons/check/index.d.ts +6 -0
- package/src/components/icons/icons/close/index.d.ts +6 -0
- package/src/components/icons/icons/close-round-fill/index.d.ts +6 -0
- package/src/components/icons/icons/empty-prize/index.d.ts +6 -0
- package/src/components/icons/icons/error-round/index.d.ts +6 -0
- package/src/components/icons/icons/info-round-filled/index.d.ts +6 -0
- package/src/components/icons/icons/list/index.d.ts +6 -0
- package/src/components/icons/icons/question-round/index.d.ts +6 -0
- package/src/components/icons/icons/success-round/index.d.ts +6 -0
- package/src/components/icons/map.d.ts +17 -0
- package/src/components/normal-button/index.d.ts +3 -0
- package/src/components/normal-button/normal-button.vue.d.ts +64 -0
- package/src/components/normal-button/type.d.ts +28 -0
- package/src/components/normal-button/use-normal-button.d.ts +37 -0
- package/src/components/normal-pendant/index.d.ts +1 -0
- package/src/components/normal-pendant/normal-pendant.vue.d.ts +43 -0
- package/src/components/popup/hooks/popup-props.d.ts +114 -0
- package/src/components/popup/hooks/use-popup-append.d.ts +13 -0
- package/src/components/popup/hooks/use-popup-back.d.ts +13 -0
- package/src/components/popup/hooks/use-popup-config.d.ts +13 -0
- package/src/components/popup/hooks/use-popup-draggable.d.ts +15 -0
- package/src/components/popup/hooks/use-popup-height.d.ts +25 -0
- package/src/components/popup/hooks/use-popup-position.d.ts +11 -0
- package/src/components/popup/hooks/use-popup-scroll.d.ts +8 -0
- package/src/components/popup/hooks/use-popup-visible.d.ts +14 -0
- package/src/components/popup/hooks/use-popup-width.d.ts +10 -0
- package/src/components/popup/index.d.ts +4 -0
- package/src/components/popup/popup.vue.d.ts +205 -0
- package/src/components/popup/types.d.ts +17 -0
- package/src/components/reward-receive/entrance/reward-receive.vue.d.ts +31 -0
- package/src/components/reward-receive/hooks/use-reward-receive.d.ts +82 -0
- package/src/components/reward-receive/index.d.ts +3 -0
- package/src/components/reward-receive/types/index.d.ts +66 -0
- package/src/hooks/business/use-app-element/index.d.ts +4 -0
- package/src/hooks/business/use-config-provider/index.d.ts +22 -0
- package/src/hooks/business/use-track-event/index.d.ts +21 -0
- package/src/hooks/components/use-action-sheet/_component/action-sheet.vue.d.ts +20 -0
- package/src/hooks/components/use-action-sheet/_component/use-action-sheet-comp.d.ts +13 -0
- package/src/hooks/components/use-action-sheet/hook.d.ts +4 -0
- package/src/hooks/components/use-action-sheet/index.d.ts +3 -0
- package/src/hooks/components/use-action-sheet/types.d.ts +15 -0
- package/src/hooks/components/use-auto-topmost/index.d.ts +13 -0
- package/src/hooks/components/use-message-box/_component/message-box-element.vue.d.ts +64 -0
- package/src/hooks/components/use-message-box/_component/use-message-box-element.d.ts +46 -0
- package/src/hooks/components/use-message-box/index.d.ts +9 -0
- package/src/hooks/components/use-message-box/types.d.ts +24 -0
- package/src/hooks/components/use-popper/_hooks/use-popper-arrow.d.ts +2 -0
- package/src/hooks/components/use-popper/_hooks/use-popper-core.d.ts +15 -0
- package/src/hooks/components/use-popper/_hooks/use-popper-interactive.d.ts +5 -0
- package/src/hooks/components/use-popper/_hooks/use-popper-visible.d.ts +6 -0
- package/src/hooks/components/use-popper/_popper-type.d.ts +75 -0
- package/src/hooks/components/use-popper/index.d.ts +32 -0
- package/src/hooks/components/use-toast/_component/toast-element.vue.d.ts +34 -0
- package/src/hooks/components/use-toast/_component/use-toast-element.d.ts +32 -0
- package/src/hooks/components/use-toast/index.d.ts +11 -0
- package/src/hooks/components/use-toast/types.d.ts +21 -0
- package/src/hooks/exports.d.ts +34 -0
- package/src/hooks/interactive/use-click-outside/index.d.ts +14 -0
- package/src/hooks/interactive/use-fullscreen/index.d.ts +29 -0
- package/src/hooks/interactive/use-hover-visible/index.d.ts +16 -0
- package/src/hooks/interactive/use-page-fullscreen/index.d.ts +6 -0
- package/src/hooks/interactive/use-screen-orientation/index.d.ts +25 -0
- package/src/hooks/interactive/use-scroll/index.d.ts +20 -0
- package/src/hooks/interactive/use-sound-effect/index.d.ts +6 -0
- package/src/hooks/pagination/types.d.ts +60 -0
- package/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +17 -0
- package/src/hooks/pagination/use-static-pagination/index.d.ts +24 -0
- package/src/hooks/plugin/use-resize-observer/index.d.ts +13 -0
- package/src/hooks/plugin/use-svga-animation/index.d.ts +25 -0
- package/src/hooks/plugin/use-svga-player/index.d.ts +24 -0
- package/src/hooks/tools/use-append-to/index.d.ts +7 -0
- package/src/hooks/tools/use-body-locked/index.d.ts +10 -0
- package/src/hooks/tools/use-browser/index.d.ts +14 -0
- package/src/hooks/tools/use-copy-text/index.d.ts +9 -0
- package/src/hooks/tools/use-count-down/index.d.ts +39 -0
- package/src/hooks/tools/use-event-bus/index.d.ts +19 -0
- package/src/hooks/tools/use-event-listener/index.d.ts +2 -0
- package/src/hooks/tools/use-link-open/index.d.ts +3 -0
- package/src/hooks/tools/use-set-interval/index.d.ts +9 -0
- package/src/hooks/tools/use-set-timeout/index.d.ts +9 -0
- package/src/hooks/tools/use-simple-visible/index.d.ts +41 -0
- package/src/hooks/tools/use-target-event-emitter/index.d.ts +10 -0
- package/src/hooks/tools/use-window-resize-listener/index.d.ts +34 -0
- package/src/hooks/vue/use-model-value/index.d.ts +13 -0
- package/src/hooks/vue/use-vue/index.d.ts +15 -0
- package/src/index.d.ts +6 -0
- package/src/interface/index.d.ts +4 -0
- package/src/lang/common/en.json.d.ts +14 -0
- package/src/lang/common/index.d.ts +4 -0
- package/src/lang/common/ja.json.d.ts +13 -0
- package/src/lang/common/ko.json.d.ts +13 -0
- package/src/lang/common/ru.json.d.ts +13 -0
- package/src/lang/common/zh-CN.json.d.ts +14 -0
- package/src/lang/common/zh-TW.json.d.ts +13 -0
- package/src/lang/exports.d.ts +2 -0
- package/src/lang/hook.d.ts +12 -0
- package/src/lang/internal/en.json.d.ts +21 -0
- package/src/lang/internal/index.d.ts +34 -0
- package/src/lang/internal/ja.json.d.ts +21 -0
- package/src/lang/internal/ko.json.d.ts +21 -0
- package/src/lang/internal/ru.json.d.ts +21 -0
- package/src/lang/internal/zh-CN.json.d.ts +21 -0
- package/src/lang/internal/zh-TW.json.d.ts +21 -0
- package/src/lang/types.d.ts +12 -0
- package/src/lang/utils.d.ts +1 -0
- package/src/plugins/async-validator/index.d.ts +3 -0
- package/src/plugins/exports.d.ts +2 -0
- package/src/plugins/polyv-ui/area-utils.d.ts +13 -0
- package/src/plugins/polyv-ui/mobile-import.d.ts +1 -0
- package/src/plugins/polyv-ui/types.d.ts +19 -0
- package/src/plugins/svgaplayerweb/load-svga-player.d.ts +15 -0
- package/src/utils/dom.d.ts +5 -0
- package/src/vue-utils/emit-utils.d.ts +12 -0
- package/src/vue-utils/index.d.ts +18 -0
- package/src/vue-utils/props-utils.d.ts +61 -0
- package/styles/animation.scss +24 -0
- package/styles/mixins.scss +123 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
formField: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
12
|
+
label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
13
|
+
labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
14
|
+
labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
15
|
+
contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
16
|
+
showErrorMessage: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
20
|
+
labelModel: import('vue-types').VueTypeDef<"header" | "inline">;
|
|
21
|
+
required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
isFormItem: true;
|
|
26
|
+
formItemIsError: import('vue').ComputedRef<boolean>;
|
|
27
|
+
setErrorMessage(message: string | undefined): void;
|
|
28
|
+
removeErrorMessage(): void;
|
|
29
|
+
validateFormItem(validateOptions?: import('..').FormValidateOptions): Promise<void>;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
31
|
+
formField: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
32
|
+
label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
33
|
+
labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
34
|
+
labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
35
|
+
contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
36
|
+
showErrorMessage: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
40
|
+
labelModel: import('vue-types').VueTypeDef<"header" | "inline">;
|
|
41
|
+
required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
required: boolean;
|
|
46
|
+
showErrorMessage: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$scopedSlots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { VueProps } from '../../../vue-utils';
|
|
2
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
3
|
+
import { FormValidateOptions } from '../types';
|
|
4
|
+
export declare const formItemProps: () => {
|
|
5
|
+
/** 该节点属于表单数据中的哪个字段 */
|
|
6
|
+
formField: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
7
|
+
/** 节点标签 */
|
|
8
|
+
label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
9
|
+
/** 表单标题宽度 */
|
|
10
|
+
labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
11
|
+
/** 表单标题高度 */
|
|
12
|
+
labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
13
|
+
/** 表单输入框内容宽度 */
|
|
14
|
+
contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
15
|
+
/** 是否显示异常信息 */
|
|
16
|
+
showErrorMessage: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 节点异常信息 */
|
|
20
|
+
errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
21
|
+
/** label 模式 */
|
|
22
|
+
labelModel: import('vue-types').VueTypeDef<"header" | "inline">;
|
|
23
|
+
/** 是否显示必填星号 */
|
|
24
|
+
required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 表单节点对象
|
|
30
|
+
*/
|
|
31
|
+
export interface FormItemInstance {
|
|
32
|
+
isFormItem: true;
|
|
33
|
+
/** 表单节点是否验证异常 */
|
|
34
|
+
formItemIsError: ComputedRef<boolean>;
|
|
35
|
+
/** 设置异常提示 */
|
|
36
|
+
setErrorMessage(message: string | undefined): void;
|
|
37
|
+
/** 移除异常提示 */
|
|
38
|
+
removeErrorMessage(): void;
|
|
39
|
+
/** 验证表单节点 */
|
|
40
|
+
validateFormItem(validateOptions?: FormValidateOptions): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 判断 vue 实例是否为 <form-item>
|
|
44
|
+
* @param instance 实例
|
|
45
|
+
*/
|
|
46
|
+
export declare const isFormItemInstance: (instance: unknown) => instance is FormItemInstance;
|
|
47
|
+
export declare const FORM_ITEM_PROVIDE_KEY: InjectionKey<FormItemInstance>;
|
|
48
|
+
export declare const useFormItemInject: () => FormItemInstance | undefined;
|
|
49
|
+
export declare const useFormItem: (options: {
|
|
50
|
+
props: VueProps<typeof formItemProps>;
|
|
51
|
+
}) => {
|
|
52
|
+
required: ComputedRef<boolean>;
|
|
53
|
+
labelText: ComputedRef<string | undefined>;
|
|
54
|
+
labelModel: ComputedRef<"header" | "inline">;
|
|
55
|
+
labelStyle: ComputedRef<{
|
|
56
|
+
width?: undefined;
|
|
57
|
+
height?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
width: string | undefined;
|
|
60
|
+
height: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
contentWidthStyle: ComputedRef<string | undefined>;
|
|
63
|
+
contentStyle: ComputedRef<{
|
|
64
|
+
width: string | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
itemErrorMessage: import('vue').Ref<string | undefined>;
|
|
67
|
+
formItemIsError: ComputedRef<boolean>;
|
|
68
|
+
removeErrorMessage: () => void;
|
|
69
|
+
validateFormItem: (validateOptions?: FormValidateOptions) => Promise<void>;
|
|
70
|
+
formItemInstance: FormItemInstance;
|
|
71
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
value: boolean;
|
|
17
|
+
content: string;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VueProps } from '../../../vue-utils';
|
|
2
|
+
export declare const formProtocolProps: () => {
|
|
3
|
+
/** 是否选中 */
|
|
4
|
+
value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** 协议内容 */
|
|
8
|
+
content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const useFormProtocol: (options: {
|
|
13
|
+
props: VueProps<typeof formProtocolProps>;
|
|
14
|
+
}) => {
|
|
15
|
+
modelValue: import('vue').ComputedRef<boolean>;
|
|
16
|
+
onCheckboxChange: (checked: boolean) => void;
|
|
17
|
+
protocolContentRef: import('vue').Ref<HTMLDivElement | undefined>;
|
|
18
|
+
contentHtml: import('vue').ComputedRef<string>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
value: import('vue-types').VueTypeDef<any>;
|
|
12
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
value: import('vue-types').VueTypeDef<any>;
|
|
14
|
+
}>>, {}>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$scopedSlots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
value: import('vue-types').VueTypeDef<any>;
|
|
12
|
+
label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** 是否禁用 */
|
|
16
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 是否显示背景色 */
|
|
20
|
+
showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** 显示前缀 */
|
|
24
|
+
showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
value: import('vue-types').VueTypeDef<any>;
|
|
29
|
+
label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/** 是否禁用 */
|
|
33
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
/** 是否显示背景色 */
|
|
37
|
+
showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
/** 显示前缀 */
|
|
41
|
+
showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
label: string;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
showBackground: boolean;
|
|
48
|
+
showPrefix: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$scopedSlots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
export type FormRadioValue = any;
|
|
3
|
+
export interface RadioGroupInjectData {
|
|
4
|
+
modelValue: ComputedRef<FormRadioValue>;
|
|
5
|
+
emitInput: (value: FormRadioValue) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const RADIO_GROUP_INJECT_KEY: InjectionKey<RadioGroupInjectData>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
debounceSubmit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
type: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonType>> & {
|
|
9
|
+
default: import('../../normal-button').ButtonType;
|
|
10
|
+
};
|
|
11
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
size: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonSize, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonSize>> & {
|
|
15
|
+
default: import('../../normal-button').ButtonSize;
|
|
16
|
+
};
|
|
17
|
+
outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
debounceSubmit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
type: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonType>> & {
|
|
34
|
+
default: import('../../normal-button').ButtonType;
|
|
35
|
+
};
|
|
36
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
size: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonSize, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonSize>> & {
|
|
40
|
+
default: import('../../normal-button').ButtonSize;
|
|
41
|
+
};
|
|
42
|
+
outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
type: import('../../normal-button').ButtonType;
|
|
53
|
+
text: string;
|
|
54
|
+
square: boolean;
|
|
55
|
+
block: boolean;
|
|
56
|
+
size: import('../../normal-button').ButtonSize;
|
|
57
|
+
outline: boolean;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
debounceSubmit: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VueProps } from '../../../vue-utils';
|
|
2
|
+
export declare const formSubmitButtonProps: () => {
|
|
3
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
/** 防抖提交,默认:false */
|
|
7
|
+
debounceSubmit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
type: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonType>> & {
|
|
11
|
+
default: import('../../normal-button').ButtonType;
|
|
12
|
+
};
|
|
13
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
size: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonSize, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonSize>> & {
|
|
17
|
+
default: import('../../normal-button').ButtonSize;
|
|
18
|
+
};
|
|
19
|
+
outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const useFormSubmitButton: (options: {
|
|
30
|
+
props: VueProps<typeof formSubmitButtonProps>;
|
|
31
|
+
}) => {
|
|
32
|
+
buttonIsDisabled: import('vue').ComputedRef<boolean>;
|
|
33
|
+
checkDisabled: () => Promise<void>;
|
|
34
|
+
onButtonClick: () => void;
|
|
35
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
formData: import('vue-types').VueTypeValidableDef<{
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}, import('vue-types/dist/types').ValidatorFunction<{
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>> & {
|
|
16
|
+
default: () => {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
formRules: import('vue-types').VueTypeValidableDef<import('async-validator').Rules, import('vue-types/dist/types').ValidatorFunction<import('async-validator').Rules>> & {
|
|
21
|
+
default: () => import('async-validator').Rules;
|
|
22
|
+
};
|
|
23
|
+
labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
24
|
+
labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
25
|
+
contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
26
|
+
submitAction: import('vue-types').VueTypeValidableDef<(...args: any[]) => any, import('vue-types/dist/types').ValidatorFunction<(...args: any[]) => any>>;
|
|
27
|
+
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
28
|
+
default: "header" | "inline";
|
|
29
|
+
};
|
|
30
|
+
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
validateCurrentForm: (validateOptions?: import('..').FormValidateOptions) => Promise<void>;
|
|
35
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
"submit-form": (arg: import('../../..').UniversalParams) => void;
|
|
37
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
formData: import('vue-types').VueTypeValidableDef<{
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}, import('vue-types/dist/types').ValidatorFunction<{
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}>> & {
|
|
43
|
+
default: () => {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
formRules: import('vue-types').VueTypeValidableDef<import('async-validator').Rules, import('vue-types/dist/types').ValidatorFunction<import('async-validator').Rules>> & {
|
|
48
|
+
default: () => import('async-validator').Rules;
|
|
49
|
+
};
|
|
50
|
+
labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
51
|
+
labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
52
|
+
contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
53
|
+
submitAction: import('vue-types').VueTypeValidableDef<(...args: any[]) => any, import('vue-types/dist/types').ValidatorFunction<(...args: any[]) => any>>;
|
|
54
|
+
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
55
|
+
default: "header" | "inline";
|
|
56
|
+
};
|
|
57
|
+
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
}>>, {
|
|
61
|
+
formData: {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
};
|
|
64
|
+
formRules: import('async-validator').Rules;
|
|
65
|
+
labelModel: "header" | "inline";
|
|
66
|
+
debug: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$scopedSlots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { UniversalParams } from '../../../interface';
|
|
2
|
+
import { ValidatorRules } from '../../../plugins/async-validator';
|
|
3
|
+
import { VueEmit, VueProps } from '../../../vue-utils';
|
|
4
|
+
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
5
|
+
import { FormValidateOptions } from '../types';
|
|
6
|
+
export declare const formWrapProps: () => {
|
|
7
|
+
/** 绑定的表单对象 */
|
|
8
|
+
formData: import('vue-types').VueTypeValidableDef<{
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}, import('vue-types/dist/types').ValidatorFunction<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>> & {
|
|
13
|
+
default: () => {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
/** 验证规则 */
|
|
18
|
+
formRules: import('vue-types').VueTypeValidableDef<ValidatorRules, import('vue-types/dist/types').ValidatorFunction<ValidatorRules>> & {
|
|
19
|
+
default: () => ValidatorRules;
|
|
20
|
+
};
|
|
21
|
+
/** 表单标题宽度 */
|
|
22
|
+
labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
23
|
+
/** 表单标题高度 */
|
|
24
|
+
labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
25
|
+
/** 表单输入框内容宽度 */
|
|
26
|
+
contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
27
|
+
/** 表单提交方法 */
|
|
28
|
+
submitAction: import('vue-types').VueTypeValidableDef<(...args: any[]) => any, import('vue-types/dist/types').ValidatorFunction<(...args: any[]) => any>>;
|
|
29
|
+
/** label 模式,默认:inline */
|
|
30
|
+
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
31
|
+
default: "header" | "inline";
|
|
32
|
+
};
|
|
33
|
+
/** 是否开启 debug 打印,默认:false */
|
|
34
|
+
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const formWrapEmits: () => {
|
|
39
|
+
'submit-form': import('../../../vue-utils').EmitFuncType<UniversalParams>;
|
|
40
|
+
};
|
|
41
|
+
export type FormWrapProps = VueProps<typeof formWrapProps>;
|
|
42
|
+
/** <form-wrap> 注入类型 */
|
|
43
|
+
export interface FormWrapInjectData {
|
|
44
|
+
/** 是否正在提交 */
|
|
45
|
+
isSubmiting: Ref<boolean>;
|
|
46
|
+
/** debug */
|
|
47
|
+
debug: ComputedRef<boolean>;
|
|
48
|
+
/** 验证当前表单 */
|
|
49
|
+
validateCurrentForm(validateOptions?: FormValidateOptions): Promise<void>;
|
|
50
|
+
/** 提交当前表单 */
|
|
51
|
+
submitForm(validateOptions?: FormValidateOptions): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
export declare const FORM_WRAP_PROPS_PROVIDE_KEY: InjectionKey<FormWrapProps>;
|
|
54
|
+
export declare const useFormWrapPropsInject: () => FormWrapProps | undefined;
|
|
55
|
+
export declare const FORM_WRAP_PROVIDE_KEY: InjectionKey<FormWrapInjectData>;
|
|
56
|
+
export declare const useFormWrapInject: () => FormWrapInjectData | undefined;
|
|
57
|
+
export declare const useFormWrap: (options: {
|
|
58
|
+
props: VueProps<typeof formWrapProps>;
|
|
59
|
+
emit: VueEmit<typeof formWrapEmits>;
|
|
60
|
+
}) => {
|
|
61
|
+
isSubmiting: Ref<boolean>;
|
|
62
|
+
validateCurrentForm: (validateOptions?: FormValidateOptions) => Promise<void>;
|
|
63
|
+
submitForm: (validateOptions: FormValidateOptions) => Promise<void>;
|
|
64
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VueProps } from '../../../vue-utils';
|
|
2
|
+
import { FormSize } from '../types';
|
|
3
|
+
export declare const formCommonProps: () => {
|
|
4
|
+
/** 尺寸 */
|
|
5
|
+
size: import('vue-types').VueTypeValidableDef<FormSize, import('vue-types/dist/types').ValidatorFunction<FormSize>>;
|
|
6
|
+
/** 是否进行表单验证 */
|
|
7
|
+
validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const useFormCommon: (options: {
|
|
12
|
+
props: VueProps<typeof formCommonProps>;
|
|
13
|
+
classPrefix: string;
|
|
14
|
+
}) => {
|
|
15
|
+
commonClassNames: import('vue').ComputedRef<string[]>;
|
|
16
|
+
};
|
|
17
|
+
/** 表单组件下的验证状态 hook */
|
|
18
|
+
export declare const useFormCommonValidate: (options: {
|
|
19
|
+
props: VueProps<typeof formCommonProps>;
|
|
20
|
+
}) => {
|
|
21
|
+
validateCurrentFormItem: () => Promise<void>;
|
|
22
|
+
blurToValidateItem: () => Promise<void>;
|
|
23
|
+
focusToRemoveError: () => void;
|
|
24
|
+
formItemIsError: import('vue').ComputedRef<boolean>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './form-area-picker';
|
|
2
|
+
export * from './form-checkbox';
|
|
3
|
+
export * from './form-input';
|
|
4
|
+
export * from './form-item';
|
|
5
|
+
export * from './form-protocol';
|
|
6
|
+
export * from './form-radio';
|
|
7
|
+
export * from './form-submit-button';
|
|
8
|
+
export * from './form-wrap';
|
|
9
|
+
export * from './types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 表单尺寸 */
|
|
2
|
+
export declare enum FormSize {
|
|
3
|
+
/** 默认 - 48px */
|
|
4
|
+
Default = "default",
|
|
5
|
+
/** 中 - 40px */
|
|
6
|
+
Medium = "medium",
|
|
7
|
+
/** 小 - 32px */
|
|
8
|
+
Small = "small"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 表单验证选项
|
|
12
|
+
*/
|
|
13
|
+
export interface FormValidateOptions {
|
|
14
|
+
/** 是否显示异常消息 */
|
|
15
|
+
showErrorMessage?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const formItemLabelModels: readonly ["inline", "header"];
|
|
18
|
+
/** 表单节点 label 样式,inline-行内,header-头部 */
|
|
19
|
+
export type FormItemLabelModel = typeof formItemLabelModels[number];
|