@polyv/vue-components 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vue2/index.es.js +9741 -9273
- package/vue2/src/components/animation/bubble-animation/bubble-animation.vue.d.ts +19 -2
- package/vue2/src/components/animation/bubble-animation/hooks/props-define.d.ts +30 -0
- package/vue2/src/components/business/data-export/data-export-entrance/use-data-export-entrance.d.ts +2 -2
- package/vue2/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +1 -1
- package/vue2/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +8 -0
- package/vue2/src/components/button/button.vue.d.ts +2 -1
- package/vue2/src/components/button/use-button.d.ts +6 -1
- package/vue2/src/components/dropdown/dropdown.vue.d.ts +10 -10
- package/vue2/src/components/dropdown/use-dropdown.d.ts +4 -4
- package/vue2/src/components/exports.d.ts +0 -1
- package/vue2/src/components/form/area-picker/area-picker.vue.d.ts +1 -1
- package/vue2/src/components/form/checkbox/checkbox-group.vue.d.ts +1 -1
- package/vue2/src/components/form/checkbox/checkbox.vue.d.ts +7 -0
- package/vue2/src/components/form/checkbox/use-checkbox.d.ts +14 -1
- package/vue2/src/components/form/form-item/form-item.vue.d.ts +5 -2
- package/vue2/src/components/form/form-item/use-form-item.d.ts +4 -8
- package/vue2/src/components/form/form-submit-button/form-submit-button.vue.d.ts +1 -1
- package/vue2/src/components/form/form-wrap/form-wrap.vue.d.ts +0 -7
- package/vue2/src/components/form/form-wrap/use-form-wrap.d.ts +3 -9
- package/vue2/src/components/form/index.d.ts +1 -0
- package/vue2/src/components/form/input/input.vue.d.ts +19 -11
- package/vue2/src/components/form/input/use-input.d.ts +19 -7
- package/vue2/src/components/form/switch/index.d.ts +2 -0
- package/vue2/src/components/form/switch/switch.vue.d.ts +51 -0
- package/vue2/src/components/form/switch/use-switch.d.ts +69 -0
- package/vue2/src/components/form/types/index.d.ts +8 -1
- package/vue2/src/components/icons/icons/minus/index.d.ts +6 -0
- package/vue2/src/components/icons/map.d.ts +1 -0
- package/vue2/src/components/loading/loading.vue.d.ts +3 -1
- package/vue2/src/components/loading/types.d.ts +5 -1
- package/vue2/src/components/loading/use-loading-component.d.ts +4 -0
- package/vue2/src/components/message-box/_component/message-box-element.vue.d.ts +2 -2
- package/vue2/src/components/message-box/_component/use-message-box-element.d.ts +0 -13
- package/vue2/src/components/popper/popper-reference.vue.d.ts +1 -3
- package/vue2/src/components/popper/popper.vue.d.ts +11 -11
- package/vue2/src/components/popper/props-define.d.ts +4 -4
- package/vue2/src/components/popup/hooks/popup-props.d.ts +11 -0
- package/vue2/src/components/popup/hooks/use-popup-draggable.d.ts +1 -1
- package/vue2/src/components/popup/popup.vue.d.ts +10 -3
- package/vue2/src/components/slot/index.d.ts +6 -1
- package/vue2/src/components/switch/switch.vue.d.ts +5 -5
- package/vue2/src/components/switch/use-switch.d.ts +2 -2
- package/vue2/src/components/toast/_component/toast-element.vue.d.ts +1 -1
- package/vue2/src/components/tooltip/directive.d.ts +12 -0
- package/vue2/src/components/tooltip/index.d.ts +1 -0
- package/vue2/src/components/tooltip/tooltip-popper.vue.d.ts +8 -0
- package/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -24
- package/vue2/src/components/tooltip/use-tooltip.d.ts +4 -2
- package/vue2/src/hooks/animation/use-special-effect/index.d.ts +19 -0
- package/vue2/src/hooks/business/use-app-unique-id/index.d.ts +12 -0
- package/vue2/src/hooks/business/use-config-provider/index.d.ts +0 -18
- package/vue2/src/hooks/business/use-nickname/index.d.ts +3 -0
- package/vue2/src/hooks/business/use-page-fullscreen/index.d.ts +14 -0
- package/vue2/src/hooks/business/use-resize-oss-image/index.d.ts +2 -1
- package/vue2/src/hooks/business/use-server/index.d.ts +4 -4
- package/vue2/src/hooks/business/use-short-number/index.d.ts +3 -0
- package/vue2/src/hooks/business/use-skin-color/index.d.ts +12 -1
- package/vue2/src/hooks/business/use-track-event/index.d.ts +8 -0
- package/vue2/src/hooks/components/use-auto-topmost/index.d.ts +19 -6
- package/vue2/src/hooks/components/use-popper/_hooks/common.d.ts +4 -0
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-append.d.ts +2 -0
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-arrow.d.ts +2 -2
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-core.d.ts +4 -4
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-element.d.ts +7 -0
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-interactive.d.ts +2 -2
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-size.d.ts +2 -0
- package/vue2/src/hooks/components/use-popper/_hooks/use-popper-visible.d.ts +1 -1
- package/vue2/src/hooks/components/use-popper/_popper-type.d.ts +98 -48
- package/vue2/src/hooks/components/use-popper/index.d.ts +2 -28
- package/vue2/src/hooks/element/use-append-to/index.d.ts +7 -0
- package/vue2/src/hooks/element/use-element-size/index.d.ts +4 -1
- package/vue2/src/hooks/{tools → element}/use-event-listener/index.d.ts +1 -1
- package/{vue3/src/hooks/plugin → vue2/src/hooks/element}/use-resize-observer/index.d.ts +1 -7
- package/vue2/src/hooks/{tools → element}/use-scroll-lock/index.d.ts +2 -2
- package/vue2/src/hooks/element/use-text-ellipsis/index.d.ts +2 -2
- package/vue2/src/hooks/exports.d.ts +13 -4
- package/vue2/src/hooks/interactive/use-fullscreen/index.d.ts +26 -25
- package/vue2/src/hooks/interactive/use-fullscreen/types.d.ts +19 -0
- package/vue2/src/hooks/interactive/use-hover/index.d.ts +16 -4
- package/vue2/src/hooks/interactive/use-hover-visible/index.d.ts +24 -7
- package/vue2/src/hooks/interactive/use-outside/common.d.ts +9 -0
- package/vue2/src/hooks/interactive/use-outside/index.d.ts +3 -24
- package/vue2/src/hooks/interactive/use-outside/types.d.ts +18 -0
- package/vue2/src/hooks/interactive/use-outside/use-click-outside.d.ts +8 -0
- package/vue2/src/hooks/interactive/use-outside/use-mouse-outside.d.ts +2 -0
- package/vue2/src/hooks/interactive/use-press-hold/index.d.ts +5 -0
- package/vue2/src/hooks/interactive/use-screen-orientation/index.d.ts +14 -13
- package/vue2/src/hooks/interactive/use-scroll/index.d.ts +42 -12
- package/vue2/src/hooks/interactive/use-sound-effect/index.d.ts +1 -1
- package/vue2/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +2 -2
- package/vue2/src/hooks/state/create-global-store/index.d.ts +6 -0
- package/vue2/src/hooks/tools/use-event-bus/index.d.ts +9 -1
- package/vue2/src/hooks/tools/use-queue/index.d.ts +29 -0
- package/vue2/src/index.d.ts +1 -0
- package/vue2/src/lang/hook.d.ts +8 -0
- package/vue2/src/lang/internal/en.json.d.ts +8 -0
- package/vue2/src/lang/internal/index.d.ts +8 -0
- package/vue2/src/lang/internal/ja.json.d.ts +8 -0
- package/vue2/src/lang/internal/ko.json.d.ts +8 -0
- package/vue2/src/lang/internal/ru.json.d.ts +8 -0
- package/vue2/src/lang/internal/zh-CN.json.d.ts +8 -0
- package/vue2/src/lang/internal/zh-TW.json.d.ts +8 -0
- package/vue2/src/vue-utils/index.d.ts +4 -4
- package/vue2/src/vue-utils/props-utils.d.ts +1 -0
- package/vue2/src/vue-utils/version-compatible/types.d.ts +1 -0
- package/vue3/index.es.js +9746 -9272
- package/vue3/src/components/animation/bubble-animation/bubble-animation.vue.d.ts +19 -2
- package/vue3/src/components/animation/bubble-animation/hooks/props-define.d.ts +30 -0
- package/vue3/src/components/business/data-export/data-export-entrance/use-data-export-entrance.d.ts +2 -2
- package/vue3/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +1 -1
- package/vue3/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +8 -0
- package/vue3/src/components/button/button.vue.d.ts +2 -1
- package/vue3/src/components/button/use-button.d.ts +6 -1
- package/vue3/src/components/dropdown/dropdown.vue.d.ts +10 -10
- package/vue3/src/components/dropdown/use-dropdown.d.ts +4 -4
- package/vue3/src/components/exports.d.ts +0 -1
- package/vue3/src/components/form/area-picker/area-picker.vue.d.ts +1 -1
- package/vue3/src/components/form/checkbox/checkbox-group.vue.d.ts +1 -1
- package/vue3/src/components/form/checkbox/checkbox.vue.d.ts +7 -0
- package/vue3/src/components/form/checkbox/use-checkbox.d.ts +14 -1
- package/vue3/src/components/form/form-item/form-item.vue.d.ts +5 -2
- package/vue3/src/components/form/form-item/use-form-item.d.ts +4 -8
- package/vue3/src/components/form/form-submit-button/form-submit-button.vue.d.ts +1 -1
- package/vue3/src/components/form/form-wrap/form-wrap.vue.d.ts +0 -7
- package/vue3/src/components/form/form-wrap/use-form-wrap.d.ts +3 -9
- package/vue3/src/components/form/index.d.ts +1 -0
- package/vue3/src/components/form/input/input.vue.d.ts +19 -11
- package/vue3/src/components/form/input/use-input.d.ts +19 -7
- package/vue3/src/components/form/switch/index.d.ts +2 -0
- package/vue3/src/components/form/switch/switch.vue.d.ts +51 -0
- package/vue3/src/components/form/switch/use-switch.d.ts +69 -0
- package/vue3/src/components/form/types/index.d.ts +8 -1
- package/vue3/src/components/icons/icons/minus/index.d.ts +6 -0
- package/vue3/src/components/icons/map.d.ts +1 -0
- package/vue3/src/components/loading/loading.vue.d.ts +3 -1
- package/vue3/src/components/loading/types.d.ts +5 -1
- package/vue3/src/components/loading/use-loading-component.d.ts +4 -0
- package/vue3/src/components/message-box/_component/message-box-element.vue.d.ts +2 -2
- package/vue3/src/components/message-box/_component/use-message-box-element.d.ts +0 -13
- package/vue3/src/components/popper/popper-reference.vue.d.ts +1 -3
- package/vue3/src/components/popper/popper.vue.d.ts +11 -11
- package/vue3/src/components/popper/props-define.d.ts +4 -4
- package/vue3/src/components/popup/hooks/popup-props.d.ts +11 -0
- package/vue3/src/components/popup/hooks/use-popup-draggable.d.ts +1 -1
- package/vue3/src/components/popup/popup.vue.d.ts +10 -3
- package/vue3/src/components/slot/index.d.ts +6 -1
- package/vue3/src/components/switch/switch.vue.d.ts +5 -5
- package/vue3/src/components/switch/use-switch.d.ts +2 -2
- package/vue3/src/components/toast/_component/toast-element.vue.d.ts +1 -1
- package/vue3/src/components/tooltip/directive.d.ts +12 -0
- package/vue3/src/components/tooltip/index.d.ts +1 -0
- package/vue3/src/components/tooltip/tooltip-popper.vue.d.ts +8 -0
- package/vue3/src/components/tooltip/tooltip.vue.d.ts +24 -24
- package/vue3/src/components/tooltip/use-tooltip.d.ts +4 -2
- package/vue3/src/hooks/animation/use-special-effect/index.d.ts +19 -0
- package/vue3/src/hooks/business/use-app-unique-id/index.d.ts +12 -0
- package/vue3/src/hooks/business/use-config-provider/index.d.ts +0 -18
- package/vue3/src/hooks/business/use-nickname/index.d.ts +3 -0
- package/vue3/src/hooks/business/use-page-fullscreen/index.d.ts +14 -0
- package/vue3/src/hooks/business/use-resize-oss-image/index.d.ts +2 -1
- package/vue3/src/hooks/business/use-server/index.d.ts +4 -4
- package/vue3/src/hooks/business/use-short-number/index.d.ts +3 -0
- package/vue3/src/hooks/business/use-skin-color/index.d.ts +12 -1
- package/vue3/src/hooks/business/use-track-event/index.d.ts +8 -0
- package/vue3/src/hooks/components/use-auto-topmost/index.d.ts +19 -6
- package/vue3/src/hooks/components/use-popper/_hooks/common.d.ts +4 -0
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-append.d.ts +2 -0
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-arrow.d.ts +2 -2
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-core.d.ts +4 -4
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-element.d.ts +7 -0
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-interactive.d.ts +2 -2
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-size.d.ts +2 -0
- package/vue3/src/hooks/components/use-popper/_hooks/use-popper-visible.d.ts +1 -1
- package/vue3/src/hooks/components/use-popper/_popper-type.d.ts +98 -48
- package/vue3/src/hooks/components/use-popper/index.d.ts +2 -28
- package/vue3/src/hooks/element/use-append-to/index.d.ts +7 -0
- package/vue3/src/hooks/element/use-element-size/index.d.ts +4 -1
- package/vue3/src/hooks/{tools → element}/use-event-listener/index.d.ts +1 -1
- package/{vue2/src/hooks/plugin → vue3/src/hooks/element}/use-resize-observer/index.d.ts +1 -7
- package/vue3/src/hooks/{tools → element}/use-scroll-lock/index.d.ts +2 -2
- package/vue3/src/hooks/element/use-text-ellipsis/index.d.ts +2 -2
- package/vue3/src/hooks/exports.d.ts +13 -4
- package/vue3/src/hooks/interactive/use-fullscreen/index.d.ts +26 -25
- package/vue3/src/hooks/interactive/use-fullscreen/types.d.ts +19 -0
- package/vue3/src/hooks/interactive/use-hover/index.d.ts +16 -4
- package/vue3/src/hooks/interactive/use-hover-visible/index.d.ts +24 -7
- package/vue3/src/hooks/interactive/use-outside/common.d.ts +9 -0
- package/vue3/src/hooks/interactive/use-outside/index.d.ts +3 -24
- package/vue3/src/hooks/interactive/use-outside/types.d.ts +18 -0
- package/vue3/src/hooks/interactive/use-outside/use-click-outside.d.ts +8 -0
- package/vue3/src/hooks/interactive/use-outside/use-mouse-outside.d.ts +2 -0
- package/vue3/src/hooks/interactive/use-press-hold/index.d.ts +5 -0
- package/vue3/src/hooks/interactive/use-screen-orientation/index.d.ts +14 -13
- package/vue3/src/hooks/interactive/use-scroll/index.d.ts +42 -12
- package/vue3/src/hooks/interactive/use-sound-effect/index.d.ts +1 -1
- package/vue3/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +2 -2
- package/vue3/src/hooks/state/create-global-store/index.d.ts +6 -0
- package/vue3/src/hooks/tools/use-event-bus/index.d.ts +9 -1
- package/vue3/src/hooks/tools/use-queue/index.d.ts +29 -0
- package/vue3/src/index.d.ts +1 -0
- package/vue3/src/lang/hook.d.ts +8 -0
- package/vue3/src/lang/internal/en.json.d.ts +8 -0
- package/vue3/src/lang/internal/index.d.ts +8 -0
- package/vue3/src/lang/internal/ja.json.d.ts +8 -0
- package/vue3/src/lang/internal/ko.json.d.ts +8 -0
- package/vue3/src/lang/internal/ru.json.d.ts +8 -0
- package/vue3/src/lang/internal/zh-CN.json.d.ts +8 -0
- package/vue3/src/lang/internal/zh-TW.json.d.ts +8 -0
- package/vue3/src/vue-utils/index.d.ts +4 -4
- package/vue3/src/vue-utils/props-utils.d.ts +1 -0
- package/vue3/src/vue-utils/version-compatible/types.d.ts +1 -0
- package/vue2/src/hooks/interactive/use-page-fullscreen/index.d.ts +0 -6
- package/vue2/src/hooks/platform/weixin/load-wx-sdk.d.ts +0 -9
- package/vue2/src/hooks/tools/use-append-to/index.d.ts +0 -7
- package/vue3/src/hooks/interactive/use-page-fullscreen/index.d.ts +0 -6
- package/vue3/src/hooks/platform/weixin/load-wx-sdk.d.ts +0 -9
- package/vue3/src/hooks/tools/use-append-to/index.d.ts +0 -7
- /package/vue2/src/{hooks/interactive/use-bezier-momentum/index.d.ts → components/zoom-container/hooks/use-bezier-momentum.d.ts} +0 -0
- /package/vue3/src/{hooks/interactive/use-bezier-momentum/index.d.ts → components/zoom-container/hooks/use-bezier-momentum.d.ts} +0 -0
|
@@ -2,6 +2,7 @@ declare function __VLS_template(): {
|
|
|
2
2
|
attrs: Partial<{}>;
|
|
3
3
|
slots: {
|
|
4
4
|
trigger?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {
|
|
7
8
|
canvasRef: HTMLCanvasElement;
|
|
@@ -32,9 +33,17 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
32
33
|
triggerSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
33
34
|
default: number;
|
|
34
35
|
};
|
|
36
|
+
clickEnabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
holdEnabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
35
42
|
}, {
|
|
36
43
|
pushAnimation: (data?: import('./types').BubbleData) => void;
|
|
37
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
"trigger-action": (arg?: void | undefined) => void;
|
|
46
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
38
47
|
bubbles: import('vue-types').VueTypeValidableDef<import('./types').BubbleData[], import('vue-types/dist/types').ValidatorFunction<import('./types').BubbleData[]>> & {
|
|
39
48
|
default: () => import('./types').BubbleData[];
|
|
40
49
|
};
|
|
@@ -56,14 +65,22 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
56
65
|
triggerSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
57
66
|
default: number;
|
|
58
67
|
};
|
|
68
|
+
clickEnabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
holdEnabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
59
74
|
}>>, {
|
|
60
75
|
width: number;
|
|
61
76
|
height: number;
|
|
62
|
-
trigger: boolean;
|
|
63
77
|
bubbles: import('./types').BubbleData[];
|
|
64
78
|
maxCount: number;
|
|
65
79
|
appearPlacement: "bottom" | "bottom-start" | "bottom-end";
|
|
80
|
+
trigger: boolean;
|
|
66
81
|
triggerSize: number;
|
|
82
|
+
clickEnabled: boolean;
|
|
83
|
+
holdEnabled: boolean;
|
|
67
84
|
}>;
|
|
68
85
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
69
86
|
export default _default;
|
|
@@ -50,4 +50,34 @@ export declare const bubbleAnimationProps: () => {
|
|
|
50
50
|
triggerSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
51
51
|
default: number;
|
|
52
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* 单击开关
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
clickEnabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 按住开关
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
holdEnabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
53
67
|
};
|
|
68
|
+
export declare const bubbleAnimationEmits: () => {
|
|
69
|
+
/**
|
|
70
|
+
* 触发节点动作
|
|
71
|
+
*/
|
|
72
|
+
'trigger-action': import('../../../../vue-utils').EmitFuncType<void>;
|
|
73
|
+
};
|
|
74
|
+
export interface BubbleAnimationSlots {
|
|
75
|
+
/**
|
|
76
|
+
* 触发节点插槽
|
|
77
|
+
*/
|
|
78
|
+
trigger: void;
|
|
79
|
+
/**
|
|
80
|
+
* 内容插槽
|
|
81
|
+
*/
|
|
82
|
+
'-': void;
|
|
83
|
+
}
|
package/vue3/src/components/business/data-export/data-export-entrance/use-data-export-entrance.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export declare const dataExportEntranceProps: () => {
|
|
|
11
11
|
export declare const useDataExportEntrance: (options: {
|
|
12
12
|
props: VueProps<typeof dataExportEntranceProps>;
|
|
13
13
|
}) => {
|
|
14
|
-
referenceRef:
|
|
15
|
-
popperRef:
|
|
14
|
+
referenceRef: import('vue').Ref<HTMLElement | undefined>;
|
|
15
|
+
popperRef: import('vue').Ref<HTMLElement | undefined>;
|
|
16
16
|
popperVisible: import('vue').Ref<boolean>;
|
|
17
17
|
onClickEntrance: () => void;
|
|
18
18
|
tipsShow: import('vue').Ref<boolean>;
|
package/vue3/src/components/business/data-export/data-export-record/use-data-export-record.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const useDataExportRecord: (options: {
|
|
|
20
20
|
}) => {
|
|
21
21
|
visible: import('vue').Ref<boolean>;
|
|
22
22
|
recordList: import('vue').Ref<DataExportRecordData[]>;
|
|
23
|
-
scrollRef: import('vue').Ref<
|
|
23
|
+
scrollRef: import('vue').Ref<HTMLElement | undefined>;
|
|
24
24
|
openRecord: () => void;
|
|
25
25
|
closeRecord: () => void;
|
|
26
26
|
onClickClearRecord: () => Promise<void>;
|
|
@@ -66,6 +66,14 @@ export declare const useRewardReceive: (options: {
|
|
|
66
66
|
error2: string;
|
|
67
67
|
submitText: string;
|
|
68
68
|
};
|
|
69
|
+
messageBox: {
|
|
70
|
+
confirm: string;
|
|
71
|
+
cancel: string;
|
|
72
|
+
delete: string;
|
|
73
|
+
clear: string;
|
|
74
|
+
submit: string;
|
|
75
|
+
known: string;
|
|
76
|
+
};
|
|
69
77
|
areaPicker: {
|
|
70
78
|
province: string;
|
|
71
79
|
city: string;
|
|
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
21
|
click: (arg: MouseEvent) => void;
|
|
22
|
+
"click-native": (arg: MouseEvent) => void;
|
|
22
23
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
23
24
|
type: import('vue-types').VueTypeValidableDef<import('./type').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('./type').ButtonType>> & {
|
|
24
25
|
default: import('./type').ButtonType;
|
|
@@ -41,10 +42,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
41
42
|
}>>, {
|
|
42
43
|
square: boolean;
|
|
43
44
|
type: import('./type').ButtonType;
|
|
45
|
+
block: boolean;
|
|
44
46
|
size: import('./type').ButtonSize;
|
|
45
47
|
outline: boolean;
|
|
46
48
|
disabled: boolean;
|
|
47
|
-
block: boolean;
|
|
48
49
|
}>, {
|
|
49
50
|
default?(_: {}): any;
|
|
50
51
|
}>;
|
|
@@ -46,10 +46,15 @@ export declare const buttonProps: () => {
|
|
|
46
46
|
};
|
|
47
47
|
export declare const buttonEmits: () => {
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 点击事件,禁用时不会触发
|
|
50
50
|
* @cbName 鼠标事件
|
|
51
51
|
*/
|
|
52
52
|
click: import('../../vue-utils').EmitFuncType<MouseEvent>;
|
|
53
|
+
/**
|
|
54
|
+
* 点击事件,禁用时会触发
|
|
55
|
+
* @cbName 鼠标事件
|
|
56
|
+
*/
|
|
57
|
+
'click-native': import('../../vue-utils').EmitFuncType<MouseEvent>;
|
|
53
58
|
};
|
|
54
59
|
export declare const useButton: (options: {
|
|
55
60
|
props: VueProps<typeof buttonProps>;
|
|
@@ -12,11 +12,11 @@ declare function __VLS_template(): {
|
|
|
12
12
|
};
|
|
13
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
14
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
15
|
-
trigger: import('vue-types').VueTypeDef<"click" | "
|
|
16
|
-
default: "click" | "
|
|
15
|
+
trigger: import('vue-types').VueTypeDef<"click" | "focus" | "hover" | "long-press" | "custom"> & {
|
|
16
|
+
default: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
17
17
|
};
|
|
18
|
-
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "
|
|
19
|
-
default: "bottom" | "left" | "right" | "top" | "
|
|
18
|
+
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end"> & {
|
|
19
|
+
default: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
20
20
|
};
|
|
21
21
|
showArrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
22
22
|
default: boolean;
|
|
@@ -30,11 +30,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
30
30
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
31
|
command: (arg: string) => void;
|
|
32
32
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
-
trigger: import('vue-types').VueTypeDef<"click" | "
|
|
34
|
-
default: "click" | "
|
|
33
|
+
trigger: import('vue-types').VueTypeDef<"click" | "focus" | "hover" | "long-press" | "custom"> & {
|
|
34
|
+
default: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
35
35
|
};
|
|
36
|
-
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "
|
|
37
|
-
default: "bottom" | "left" | "right" | "top" | "
|
|
36
|
+
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end"> & {
|
|
37
|
+
default: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
38
38
|
};
|
|
39
39
|
showArrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
40
40
|
default: boolean;
|
|
@@ -46,9 +46,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
}>>, {
|
|
49
|
-
trigger: "click" | "hover" | "focus" | "long-press" | "custom";
|
|
50
|
-
placement: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
51
49
|
disabled: boolean;
|
|
50
|
+
trigger: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
51
|
+
placement: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
52
52
|
showArrow: boolean;
|
|
53
53
|
referenceClass: string;
|
|
54
54
|
}>;
|
|
@@ -5,16 +5,16 @@ export declare const dropdownProps: () => {
|
|
|
5
5
|
* @propType PopperTrigger
|
|
6
6
|
* @default click
|
|
7
7
|
*/
|
|
8
|
-
trigger: import('vue-types').VueTypeDef<"click" | "
|
|
9
|
-
default: "click" | "
|
|
8
|
+
trigger: import('vue-types').VueTypeDef<"click" | "focus" | "hover" | "long-press" | "custom"> & {
|
|
9
|
+
default: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* 弹层位置
|
|
13
13
|
* @propType PopperPlacement
|
|
14
14
|
* @default bottom-end
|
|
15
15
|
*/
|
|
16
|
-
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "
|
|
17
|
-
default: "bottom" | "left" | "right" | "top" | "
|
|
16
|
+
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end"> & {
|
|
17
|
+
default: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* 显示箭头
|
|
@@ -13,7 +13,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
13
13
|
default: () => FormCheckboxValue[];
|
|
14
14
|
};
|
|
15
15
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
|
|
16
|
+
change: (arg: FormCheckboxValue[]) => void;
|
|
17
17
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
18
18
|
"v-model-key": import('vue-types').VueTypeValidableDef<FormCheckboxValue[], import('vue-types/dist/types').ValidatorFunction<FormCheckboxValue[]>> & {
|
|
19
19
|
default: () => FormCheckboxValue[];
|
|
@@ -27,6 +27,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
27
27
|
showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
+
indeterminate: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
30
33
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
34
|
change: (arg: boolean) => void;
|
|
32
35
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -49,6 +52,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
49
52
|
showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
50
53
|
default: boolean;
|
|
51
54
|
};
|
|
55
|
+
indeterminate: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
52
58
|
}>>, {
|
|
53
59
|
label: string;
|
|
54
60
|
circle: boolean;
|
|
@@ -56,6 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
56
62
|
checked: boolean;
|
|
57
63
|
showBackground: boolean;
|
|
58
64
|
showPrefix: boolean;
|
|
65
|
+
indeterminate: boolean;
|
|
59
66
|
}>;
|
|
60
67
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
61
68
|
export default _default;
|
|
@@ -8,7 +8,13 @@ export declare const checkboxGroupProps: () => {
|
|
|
8
8
|
default: () => FormCheckboxValue[];
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare const checkboxGroupEmits: () => {
|
|
11
|
+
export declare const checkboxGroupEmits: () => {
|
|
12
|
+
/**
|
|
13
|
+
* 修改
|
|
14
|
+
* @cbName 复选框组值
|
|
15
|
+
*/
|
|
16
|
+
change: import('../../../vue-utils').EmitFuncType<FormCheckboxValue[]>;
|
|
17
|
+
};
|
|
12
18
|
export declare const checkboxProps: () => {
|
|
13
19
|
/**
|
|
14
20
|
* 是否选中,可通过 `change` 事件更新
|
|
@@ -55,6 +61,13 @@ export declare const checkboxProps: () => {
|
|
|
55
61
|
showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
56
62
|
default: boolean;
|
|
57
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* 设置 `indeterminate` 状态,只负责样式控制
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
indeterminate: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
58
71
|
};
|
|
59
72
|
export declare const checkboxEmits: () => {
|
|
60
73
|
/**
|
|
@@ -3,7 +3,9 @@ declare function __VLS_template(): {
|
|
|
3
3
|
slots: {
|
|
4
4
|
default?(_: {}): any;
|
|
5
5
|
};
|
|
6
|
-
refs: {
|
|
6
|
+
refs: {
|
|
7
|
+
itemWrapRef: HTMLDivElement;
|
|
8
|
+
};
|
|
7
9
|
rootEl: HTMLDivElement;
|
|
8
10
|
};
|
|
9
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -22,7 +24,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
22
24
|
default: boolean;
|
|
23
25
|
};
|
|
24
26
|
}, {
|
|
25
|
-
|
|
27
|
+
formItemId: string;
|
|
28
|
+
scrollIntoView(): void;
|
|
26
29
|
formItemIsError: import('vue').ComputedRef<boolean>;
|
|
27
30
|
setErrorMessage(message: string | undefined): void;
|
|
28
31
|
removeErrorMessage(): void;
|
|
@@ -49,7 +49,9 @@ export declare const formItemProps: () => {
|
|
|
49
49
|
* 表单节点对象
|
|
50
50
|
*/
|
|
51
51
|
export interface FormItemInstance {
|
|
52
|
-
|
|
52
|
+
formItemId: string;
|
|
53
|
+
/** 滚动到表单节点 */
|
|
54
|
+
scrollIntoView(): void;
|
|
53
55
|
/** 表单节点是否验证异常 */
|
|
54
56
|
formItemIsError: ComputedRef<boolean>;
|
|
55
57
|
/** 设置异常提示 */
|
|
@@ -59,18 +61,12 @@ export interface FormItemInstance {
|
|
|
59
61
|
/** 验证表单节点 */
|
|
60
62
|
validateFormItem(validateOptions?: FormValidateOptions): Promise<void>;
|
|
61
63
|
}
|
|
62
|
-
/**
|
|
63
|
-
* 判断 vue 实例是否为 <form-item>
|
|
64
|
-
* @param instance 实例
|
|
65
|
-
*/
|
|
66
|
-
export declare const isFormItemInstance: (instance: unknown) => instance is FormItemInstance;
|
|
67
64
|
export declare const FORM_ITEM_PROVIDE_KEY: InjectionKey<FormItemInstance>;
|
|
68
65
|
export declare const useFormItemInject: () => FormItemInstance | undefined;
|
|
69
66
|
export declare const useFormItem: (options: {
|
|
70
67
|
props: VueProps<typeof formItemProps>;
|
|
71
68
|
}) => {
|
|
72
|
-
|
|
73
|
-
labelText: ComputedRef<string | undefined>;
|
|
69
|
+
itemWrapRef: import('vue').Ref<HTMLDivElement | undefined>;
|
|
74
70
|
labelModel: ComputedRef<"header" | "inline">;
|
|
75
71
|
labelStyle: ComputedRef<{
|
|
76
72
|
width?: undefined;
|
|
@@ -52,10 +52,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
52
52
|
square: boolean;
|
|
53
53
|
text: string;
|
|
54
54
|
type: import('../../button').ButtonType;
|
|
55
|
+
block: boolean;
|
|
55
56
|
size: import('../../button').ButtonSize;
|
|
56
57
|
outline: boolean;
|
|
57
58
|
disabled: boolean;
|
|
58
|
-
block: boolean;
|
|
59
59
|
debounceSubmit: boolean;
|
|
60
60
|
}>;
|
|
61
61
|
export default _default;
|
|
@@ -21,9 +21,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
21
21
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
22
22
|
default: "header" | "inline";
|
|
23
23
|
};
|
|
24
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
24
|
size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
|
|
28
25
|
}, {
|
|
29
26
|
validateCurrentForm: (validateOptions?: import('..').FormValidateOptions) => Promise<void>;
|
|
@@ -43,15 +40,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
43
40
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
44
41
|
default: "header" | "inline";
|
|
45
42
|
};
|
|
46
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
47
|
-
default: boolean;
|
|
48
|
-
};
|
|
49
43
|
size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
|
|
50
44
|
}>>, {
|
|
51
45
|
formData: import('../../..').UniversalParams;
|
|
52
46
|
formRules: import('async-validator').Rules;
|
|
53
47
|
labelModel: "header" | "inline";
|
|
54
|
-
debug: boolean;
|
|
55
48
|
}>;
|
|
56
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
57
50
|
export default _default;
|
|
@@ -2,6 +2,7 @@ import { UniversalParams } from '../../../interface';
|
|
|
2
2
|
import { ValidatorRules } from '../../../plugins/async-validator';
|
|
3
3
|
import { VueEmit, VueProps } from '../../../vue-utils';
|
|
4
4
|
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
5
|
+
import { FormItemInstance } from '../form-item/use-form-item';
|
|
5
6
|
import { FormSize, FormValidateOptions } from '../types';
|
|
6
7
|
export type FormSubmitAction = (formData: UniversalParams) => Promise<void>;
|
|
7
8
|
export declare const formWrapProps: () => {
|
|
@@ -45,13 +46,6 @@ export declare const formWrapProps: () => {
|
|
|
45
46
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
46
47
|
default: "header" | "inline";
|
|
47
48
|
};
|
|
48
|
-
/**
|
|
49
|
-
* 是否开启 debug 打印
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
49
|
/**
|
|
56
50
|
* 表单尺寸
|
|
57
51
|
*/
|
|
@@ -68,12 +62,12 @@ export declare const formWrapEmits: () => {
|
|
|
68
62
|
export type FormWrapProps = VueProps<typeof formWrapProps>;
|
|
69
63
|
/** <form-wrap> 注入类型 */
|
|
70
64
|
export interface FormWrapInjectData {
|
|
65
|
+
addFormItem: (formItem: FormItemInstance) => void;
|
|
66
|
+
removeFormItem: (formItemId: string) => void;
|
|
71
67
|
/** 表单尺寸 */
|
|
72
68
|
size: ComputedRef<FormSize | undefined>;
|
|
73
69
|
/** 是否正在提交 */
|
|
74
70
|
isSubmiting: Ref<boolean>;
|
|
75
|
-
/** debug */
|
|
76
|
-
debug: ComputedRef<boolean>;
|
|
77
71
|
/** 验证当前表单 */
|
|
78
72
|
validateCurrentForm(validateOptions?: FormValidateOptions): Promise<void>;
|
|
79
73
|
/** 提交当前表单 */
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
2
|
-
"v-model-key": import('vue-types').VueTypeDef<import('./use-input').InputValueType> & {
|
|
3
|
-
default: import('./use-input').InputValueType;
|
|
4
|
-
};
|
|
5
2
|
readonly: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
6
3
|
default: boolean;
|
|
7
4
|
};
|
|
@@ -26,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
26
23
|
suffixText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
27
24
|
default: string;
|
|
28
25
|
};
|
|
29
|
-
|
|
26
|
+
clearable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
30
27
|
default: boolean;
|
|
31
28
|
};
|
|
32
29
|
useTextarea: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
@@ -35,22 +32,26 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
35
32
|
rows: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
36
33
|
default: number;
|
|
37
34
|
};
|
|
35
|
+
autoFocus: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
38
|
size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
|
|
39
39
|
validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
40
40
|
default: boolean;
|
|
41
41
|
};
|
|
42
|
+
"v-model-key": import('vue-types').VueTypeDef<import('./use-input').InputValueType> & {
|
|
43
|
+
default: import('./use-input').InputValueType;
|
|
44
|
+
};
|
|
42
45
|
}, {
|
|
43
46
|
forceUpdate(): void;
|
|
44
47
|
focusInput(): void;
|
|
45
48
|
blurInput(): void;
|
|
46
49
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
-
focus: (arg: import('./use-input').InputValueType) => void;
|
|
48
50
|
blur: (arg: import('./use-input').InputValueType) => void;
|
|
51
|
+
focus: (arg: import('./use-input').InputValueType) => void;
|
|
52
|
+
clear: (arg?: void | undefined) => void;
|
|
49
53
|
enter: (arg: import('./use-input').InputValueType) => void;
|
|
50
54
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
-
"v-model-key": import('vue-types').VueTypeDef<import('./use-input').InputValueType> & {
|
|
52
|
-
default: import('./use-input').InputValueType;
|
|
53
|
-
};
|
|
54
55
|
readonly: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
55
56
|
default: boolean;
|
|
56
57
|
};
|
|
@@ -75,7 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
75
76
|
suffixText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
76
77
|
default: string;
|
|
77
78
|
};
|
|
78
|
-
|
|
79
|
+
clearable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
79
80
|
default: boolean;
|
|
80
81
|
};
|
|
81
82
|
useTextarea: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
@@ -84,24 +85,31 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
84
85
|
rows: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
85
86
|
default: number;
|
|
86
87
|
};
|
|
88
|
+
autoFocus: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
87
91
|
size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
|
|
88
92
|
validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
89
93
|
default: boolean;
|
|
90
94
|
};
|
|
95
|
+
"v-model-key": import('vue-types').VueTypeDef<import('./use-input').InputValueType> & {
|
|
96
|
+
default: import('./use-input').InputValueType;
|
|
97
|
+
};
|
|
91
98
|
}>>, {
|
|
92
99
|
"v-model-key": import('./use-input').InputValueType;
|
|
93
100
|
type: string;
|
|
94
|
-
placeholder: string;
|
|
95
101
|
disabled: boolean;
|
|
102
|
+
placeholder: string;
|
|
96
103
|
validateForm: boolean;
|
|
97
104
|
readonly: boolean;
|
|
98
105
|
maxlength: number;
|
|
99
106
|
showWordLimit: boolean;
|
|
100
107
|
prefixText: string;
|
|
101
108
|
suffixText: string;
|
|
102
|
-
|
|
109
|
+
clearable: boolean;
|
|
103
110
|
useTextarea: boolean;
|
|
104
111
|
rows: number;
|
|
112
|
+
autoFocus: boolean;
|
|
105
113
|
}>, {
|
|
106
114
|
prefix?(_: {}): any;
|
|
107
115
|
suffix?(_: {}): any;
|
|
@@ -12,12 +12,6 @@ export interface InputInstance {
|
|
|
12
12
|
}
|
|
13
13
|
export type InputValueType = string | number;
|
|
14
14
|
export declare const inputProps: () => {
|
|
15
|
-
/**
|
|
16
|
-
* 绑定值,支持 v-model
|
|
17
|
-
*/
|
|
18
|
-
"v-model-key": import('vue-types').VueTypeDef<InputValueType> & {
|
|
19
|
-
default: InputValueType;
|
|
20
|
-
};
|
|
21
15
|
/**
|
|
22
16
|
* 只读
|
|
23
17
|
* @default false
|
|
@@ -78,7 +72,7 @@ export declare const inputProps: () => {
|
|
|
78
72
|
* 清空
|
|
79
73
|
* @default false
|
|
80
74
|
*/
|
|
81
|
-
|
|
75
|
+
clearable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
82
76
|
default: boolean;
|
|
83
77
|
};
|
|
84
78
|
/**
|
|
@@ -95,10 +89,24 @@ export declare const inputProps: () => {
|
|
|
95
89
|
rows: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
96
90
|
default: number;
|
|
97
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* 自动聚焦
|
|
94
|
+
* @version v1.3.0
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
autoFocus: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
98
100
|
size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
|
|
99
101
|
validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
100
102
|
default: boolean;
|
|
101
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* 绑定值,支持 v-model
|
|
106
|
+
*/
|
|
107
|
+
"v-model-key": import('vue-types').VueTypeDef<InputValueType> & {
|
|
108
|
+
default: InputValueType;
|
|
109
|
+
};
|
|
102
110
|
};
|
|
103
111
|
export declare const inputEmits: () => {
|
|
104
112
|
/**
|
|
@@ -119,6 +127,10 @@ export declare const inputEmits: () => {
|
|
|
119
127
|
* @cbType InputValueType
|
|
120
128
|
*/
|
|
121
129
|
enter: import('../../../vue-utils').EmitFuncType<InputValueType>;
|
|
130
|
+
/**
|
|
131
|
+
* 触发清空事件
|
|
132
|
+
*/
|
|
133
|
+
clear: import('../../../vue-utils').EmitFuncType<void>;
|
|
122
134
|
};
|
|
123
135
|
/**
|
|
124
136
|
* 输入框插槽
|