@polyv/vue-components 1.2.1 → 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 +9742 -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 +9747 -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
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
"v-model-key": import('vue-types').VueTypeDef<import('./use-switch').SwitchValue>;
|
|
3
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
activeValue: import('vue-types').VueTypeDef<import('./use-switch').SwitchValue> & {
|
|
7
|
+
default: import('./use-switch').SwitchValue;
|
|
8
|
+
};
|
|
9
|
+
inactiveValue: import('vue-types').VueTypeDef<import('./use-switch').SwitchValue> & {
|
|
10
|
+
default: import('./use-switch').SwitchValue;
|
|
11
|
+
};
|
|
12
|
+
activeColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
inactiveColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
size: import('vue-types').VueTypeDef<"default" | "medium" | "mini"> & {
|
|
19
|
+
default: "default" | "medium" | "mini";
|
|
20
|
+
};
|
|
21
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
change: (arg: import('./use-switch').SwitchValue) => void;
|
|
23
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
"v-model-key": import('vue-types').VueTypeDef<import('./use-switch').SwitchValue>;
|
|
25
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
activeValue: import('vue-types').VueTypeDef<import('./use-switch').SwitchValue> & {
|
|
29
|
+
default: import('./use-switch').SwitchValue;
|
|
30
|
+
};
|
|
31
|
+
inactiveValue: import('vue-types').VueTypeDef<import('./use-switch').SwitchValue> & {
|
|
32
|
+
default: import('./use-switch').SwitchValue;
|
|
33
|
+
};
|
|
34
|
+
activeColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
inactiveColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
size: import('vue-types').VueTypeDef<"default" | "medium" | "mini"> & {
|
|
41
|
+
default: "default" | "medium" | "mini";
|
|
42
|
+
};
|
|
43
|
+
}>>, {
|
|
44
|
+
size: "default" | "medium" | "mini";
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
activeValue: import('./use-switch').SwitchValue;
|
|
47
|
+
inactiveValue: import('./use-switch').SwitchValue;
|
|
48
|
+
activeColor: string;
|
|
49
|
+
inactiveColor: string;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { VueEmit, VueProps } from '../../../vue-utils';
|
|
2
|
+
export type SwitchValue = boolean | number | string;
|
|
3
|
+
declare const switchSizes: readonly ["default", "medium", "mini"];
|
|
4
|
+
export type SwitchSize = (typeof switchSizes)[number];
|
|
5
|
+
export declare const switchProps: () => {
|
|
6
|
+
/**
|
|
7
|
+
* 是否选中,支持 v-model
|
|
8
|
+
*/
|
|
9
|
+
"v-model-key": import('vue-types').VueTypeDef<SwitchValue>;
|
|
10
|
+
/**
|
|
11
|
+
* 是否禁用
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 激活值
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
activeValue: import('vue-types').VueTypeDef<SwitchValue> & {
|
|
22
|
+
default: SwitchValue;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 非激活值
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
inactiveValue: import('vue-types').VueTypeDef<SwitchValue> & {
|
|
29
|
+
default: SwitchValue;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 激活颜色
|
|
33
|
+
*/
|
|
34
|
+
activeColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 非激活颜色
|
|
39
|
+
*/
|
|
40
|
+
inactiveColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 大小
|
|
45
|
+
* @default 'default'
|
|
46
|
+
*/
|
|
47
|
+
size: import('vue-types').VueTypeDef<"default" | "medium" | "mini"> & {
|
|
48
|
+
default: "default" | "medium" | "mini";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const switchEmits: () => {
|
|
52
|
+
/**
|
|
53
|
+
* 开关切换
|
|
54
|
+
* @cbName 开关值
|
|
55
|
+
* @cbType SwitchValue
|
|
56
|
+
*/
|
|
57
|
+
change: import('../../../vue-utils').EmitFuncType<SwitchValue>;
|
|
58
|
+
};
|
|
59
|
+
export declare const useSwitch: (options: {
|
|
60
|
+
props: VueProps<typeof switchProps>;
|
|
61
|
+
emit: VueEmit<typeof switchEmits>;
|
|
62
|
+
}) => {
|
|
63
|
+
isOpened: import('vue').ComputedRef<boolean>;
|
|
64
|
+
switchStyle: import('vue').ComputedRef<{
|
|
65
|
+
backgroundColor: string;
|
|
66
|
+
}>;
|
|
67
|
+
toggleSwitch: () => void;
|
|
68
|
+
};
|
|
69
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormItemInstance } from '../form-item';
|
|
1
2
|
/** 表单尺寸 */
|
|
2
3
|
export declare enum FormSize {
|
|
3
4
|
/**
|
|
@@ -20,8 +21,14 @@ export declare enum FormSize {
|
|
|
20
21
|
* 表单验证选项
|
|
21
22
|
*/
|
|
22
23
|
export interface FormValidateOptions {
|
|
23
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* 是否显示异常消息
|
|
26
|
+
*/
|
|
24
27
|
showErrorMessage?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 验证失败回调
|
|
30
|
+
*/
|
|
31
|
+
validateFailedCallback?: (formItem: FormItemInstance) => unknown;
|
|
25
32
|
}
|
|
26
33
|
export declare const formItemLabelModels: readonly ["inline", "header"];
|
|
27
34
|
/** 表单节点 label 样式,inline-行内,header-头部 */
|
|
@@ -24,6 +24,7 @@ export { default as PwcIconExport } from './icons/export';
|
|
|
24
24
|
export { default as PwcIconInfoRoundFill } from './icons/info-round-fill';
|
|
25
25
|
export { default as PwcIconList } from './icons/list';
|
|
26
26
|
export { default as PwcIconLoading } from './icons/loading';
|
|
27
|
+
export { default as PwcIconMinus } from './icons/minus';
|
|
27
28
|
export { default as PwcIconQuestionRound } from './icons/question-round';
|
|
28
29
|
export { default as PwcIconSearch } from './icons/search';
|
|
29
30
|
export { default as PwcIconSuccessRound } from './icons/success-round';
|
|
@@ -9,6 +9,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
9
|
type: import('vue-types').VueTypeDef<"circle" | "dot"> & {
|
|
10
10
|
default: "circle" | "dot";
|
|
11
11
|
};
|
|
12
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
12
13
|
}, {
|
|
13
14
|
topmostElem: () => Promise<void>;
|
|
14
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -22,9 +23,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
23
|
type: import('vue-types').VueTypeDef<"circle" | "dot"> & {
|
|
23
24
|
default: "circle" | "dot";
|
|
24
25
|
};
|
|
26
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
25
27
|
}>>, {
|
|
26
28
|
type: "circle" | "dot";
|
|
27
|
-
size: number | "auto";
|
|
28
29
|
color: string;
|
|
30
|
+
size: number | "auto";
|
|
29
31
|
}>;
|
|
30
32
|
export default _default;
|
|
@@ -23,4 +23,8 @@ export declare const loadingProps: () => {
|
|
|
23
23
|
type: import('vue-types').VueTypeDef<"circle" | "dot"> & {
|
|
24
24
|
default: "circle" | "dot";
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* 文案
|
|
28
|
+
*/
|
|
29
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
26
30
|
};
|
|
@@ -39,8 +39,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
39
39
|
default: string;
|
|
40
40
|
};
|
|
41
41
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
-
confirm: (arg?: string | void | undefined) => void;
|
|
43
42
|
cancel: (arg?: void | undefined) => void;
|
|
43
|
+
confirm: (arg?: string | void | undefined) => void;
|
|
44
44
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
45
45
|
message: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
46
46
|
default: string;
|
|
@@ -83,8 +83,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
83
83
|
};
|
|
84
84
|
}>>, {
|
|
85
85
|
type: string;
|
|
86
|
-
description: string;
|
|
87
86
|
message: string;
|
|
87
|
+
description: string;
|
|
88
88
|
placeholder: string;
|
|
89
89
|
showCancelButton: boolean;
|
|
90
90
|
showConfirmButton: boolean;
|
|
@@ -74,9 +74,6 @@ export declare const useMessageBoxElement: (options: {
|
|
|
74
74
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
75
75
|
default: "header" | "inline";
|
|
76
76
|
};
|
|
77
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
78
|
-
default: boolean;
|
|
79
|
-
};
|
|
80
77
|
size: import('vue-types').VueTypeValidableDef<import('../../form').FormSize, import('vue-types/dist/types').ValidatorFunction<import('../../form').FormSize>>;
|
|
81
78
|
}>>, Readonly<import('vue').ExtractPropTypes<{
|
|
82
79
|
formData: import('vue-types').VueTypeValidableDef<import('../../..').UniversalParams, import('vue-types/dist/types').ValidatorFunction<import('../../..').UniversalParams>> & {
|
|
@@ -92,9 +89,6 @@ export declare const useMessageBoxElement: (options: {
|
|
|
92
89
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
93
90
|
default: "header" | "inline";
|
|
94
91
|
};
|
|
95
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
92
|
size: import('vue-types').VueTypeValidableDef<import('../../form').FormSize, import('vue-types/dist/types').ValidatorFunction<import('../../form').FormSize>>;
|
|
99
93
|
}>>, {
|
|
100
94
|
"submit-form": (arg: import('../../..').UniversalParams) => void;
|
|
@@ -102,7 +96,6 @@ export declare const useMessageBoxElement: (options: {
|
|
|
102
96
|
formData: import('../../..').UniversalParams;
|
|
103
97
|
formRules: ValidatorRules;
|
|
104
98
|
labelModel: "header" | "inline";
|
|
105
|
-
debug: boolean;
|
|
106
99
|
}, true, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
107
100
|
formData: import('vue-types').VueTypeValidableDef<import('../../..').UniversalParams, import('vue-types/dist/types').ValidatorFunction<import('../../..').UniversalParams>> & {
|
|
108
101
|
default: () => import('../../..').UniversalParams;
|
|
@@ -117,9 +110,6 @@ export declare const useMessageBoxElement: (options: {
|
|
|
117
110
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
118
111
|
default: "header" | "inline";
|
|
119
112
|
};
|
|
120
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
113
|
size: import('vue-types').VueTypeValidableDef<import('../../form').FormSize, import('vue-types/dist/types').ValidatorFunction<import('../../form').FormSize>>;
|
|
124
114
|
}>>> & import('vue').ShallowUnwrapRef<{
|
|
125
115
|
validateCurrentForm: (validateOptions?: import('../../form').FormValidateOptions) => Promise<void>;
|
|
@@ -137,9 +127,6 @@ export declare const useMessageBoxElement: (options: {
|
|
|
137
127
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
|
|
138
128
|
default: "header" | "inline";
|
|
139
129
|
};
|
|
140
|
-
debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
141
|
-
default: boolean;
|
|
142
|
-
};
|
|
143
130
|
size: import('vue-types').VueTypeValidableDef<import('../../form').FormSize, import('vue-types/dist/types').ValidatorFunction<import('../../form').FormSize>>;
|
|
144
131
|
}>> & {
|
|
145
132
|
$scopedSlots: {
|
|
@@ -3,9 +3,7 @@ declare function __VLS_template(): {
|
|
|
3
3
|
slots: {
|
|
4
4
|
default?(_: {}): any;
|
|
5
5
|
};
|
|
6
|
-
refs: {
|
|
7
|
-
referenceRef: (import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{}>>, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, true, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{}>>> & import('vue').ShallowUnwrapRef<() => import('vue').VNode[] | undefined> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{}>>) | null;
|
|
8
|
-
};
|
|
6
|
+
refs: {};
|
|
9
7
|
rootEl: Element;
|
|
10
8
|
};
|
|
11
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -10,11 +10,11 @@ declare function __VLS_template(): {
|
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
12
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
-
trigger: import('vue-types').VueTypeDef<"click" | "
|
|
14
|
-
default: "click" | "
|
|
13
|
+
trigger: import('vue-types').VueTypeDef<"click" | "focus" | "hover" | "long-press" | "custom"> & {
|
|
14
|
+
default: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
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
|
arrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
20
20
|
default: boolean;
|
|
@@ -29,11 +29,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
29
29
|
popperRef: import('vue').Ref<any>;
|
|
30
30
|
popperVisible: import('vue').Ref<boolean>;
|
|
31
31
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
32
|
-
trigger: import('vue-types').VueTypeDef<"click" | "
|
|
33
|
-
default: "click" | "
|
|
32
|
+
trigger: import('vue-types').VueTypeDef<"click" | "focus" | "hover" | "long-press" | "custom"> & {
|
|
33
|
+
default: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
34
34
|
};
|
|
35
|
-
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "
|
|
36
|
-
default: "bottom" | "left" | "right" | "top" | "
|
|
35
|
+
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"> & {
|
|
36
|
+
default: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
37
37
|
};
|
|
38
38
|
arrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
39
39
|
default: boolean;
|
|
@@ -44,10 +44,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
beforeShowPopper: import('vue-types').VueTypeValidableDef<import('../../hooks/components/use-popper').BeforeShowPopper, import('vue-types/dist/types').ValidatorFunction<import('../../hooks/components/use-popper').BeforeShowPopper>>;
|
|
46
46
|
}>>, {
|
|
47
|
-
trigger: "click" | "hover" | "focus" | "long-press" | "custom";
|
|
48
|
-
placement: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
49
|
-
arrow: boolean;
|
|
50
47
|
disabled: boolean;
|
|
48
|
+
trigger: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
49
|
+
arrow: boolean;
|
|
50
|
+
placement: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
51
51
|
}>;
|
|
52
52
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
53
|
export default _default;
|
|
@@ -4,15 +4,15 @@ export declare const popperProps: () => {
|
|
|
4
4
|
* 触发方式
|
|
5
5
|
* @default click
|
|
6
6
|
*/
|
|
7
|
-
trigger: import('vue-types').VueTypeDef<"click" | "
|
|
8
|
-
default: "click" | "
|
|
7
|
+
trigger: import('vue-types').VueTypeDef<"click" | "focus" | "hover" | "long-press" | "custom"> & {
|
|
8
|
+
default: "click" | "focus" | "hover" | "long-press" | "custom";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* 弹层位置
|
|
12
12
|
* @default bottom
|
|
13
13
|
*/
|
|
14
|
-
placement: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "top" | "
|
|
15
|
-
default: "bottom" | "left" | "right" | "top" | "
|
|
14
|
+
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"> & {
|
|
15
|
+
default: "bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* 是否显示箭头
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PopupConfig, CustomClosePopup } from '../types';
|
|
2
2
|
export declare const popupProps: () => {
|
|
3
|
+
ignoreSkinColor: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
3
6
|
/**
|
|
4
7
|
* 是否显示,支持 v-model
|
|
5
8
|
*/
|
|
@@ -190,6 +193,14 @@ export declare const popupProps: () => {
|
|
|
190
193
|
popupTransition: import('vue-types').VueTypeDef<string | boolean> & {
|
|
191
194
|
default: string | boolean;
|
|
192
195
|
};
|
|
196
|
+
/**
|
|
197
|
+
* 是否插入到全屏的元素中
|
|
198
|
+
* @version v1.3.0
|
|
199
|
+
* @default true
|
|
200
|
+
*/
|
|
201
|
+
insertFullscreen: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
193
204
|
};
|
|
194
205
|
export declare const popupEmits: () => {
|
|
195
206
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueProps } from '../../../vue-utils';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
|
-
import { popupProps } from './popup-props';
|
|
4
3
|
import { PopupPosition } from '../types';
|
|
4
|
+
import { popupProps } from './popup-props';
|
|
5
5
|
export declare const usePopupDraggable: (options: {
|
|
6
6
|
props: VueProps<typeof popupProps>;
|
|
7
7
|
bodyRef: Ref<HTMLDivElement | undefined>;
|
|
@@ -97,12 +97,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
97
97
|
popupTransition: import('vue-types').VueTypeDef<string | boolean> & {
|
|
98
98
|
default: string | boolean;
|
|
99
99
|
};
|
|
100
|
+
insertFullscreen: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
100
103
|
}, {
|
|
101
104
|
resetScroll: () => Promise<void>;
|
|
102
105
|
setupBackAction: (data?: import('./types').PopupBackActionData) => void;
|
|
103
106
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
104
|
-
"after-enter": (arg?: void | undefined) => void;
|
|
105
107
|
"after-leave": (arg?: void | undefined) => void;
|
|
108
|
+
"after-enter": (arg?: void | undefined) => void;
|
|
106
109
|
"click-back": (arg?: void | undefined) => void;
|
|
107
110
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
108
111
|
ignoreSkinColor: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
@@ -184,13 +187,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
184
187
|
popupTransition: import('vue-types').VueTypeDef<string | boolean> & {
|
|
185
188
|
default: string | boolean;
|
|
186
189
|
};
|
|
190
|
+
insertFullscreen: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
187
193
|
}>>, {
|
|
188
194
|
title: string;
|
|
189
195
|
"v-model-key": boolean;
|
|
190
196
|
ignoreSkinColor: boolean;
|
|
191
|
-
background: string;
|
|
192
|
-
appendTo: HTMLElement | undefined;
|
|
193
197
|
titleStyle: import('vue').CSSProperties;
|
|
198
|
+
background: string;
|
|
194
199
|
closeable: boolean;
|
|
195
200
|
showHeader: boolean;
|
|
196
201
|
headerStyle: import('vue').CSSProperties;
|
|
@@ -201,6 +206,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
201
206
|
dynamicHeight: boolean;
|
|
202
207
|
fillBody: boolean;
|
|
203
208
|
bodyStyle: import('vue').CSSProperties;
|
|
209
|
+
appendTo: HTMLElement | undefined;
|
|
204
210
|
closeOnMask: boolean;
|
|
205
211
|
showScrollbar: boolean;
|
|
206
212
|
draggable: boolean;
|
|
@@ -208,6 +214,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
208
214
|
bodyLocked: boolean;
|
|
209
215
|
hiddenShadow: boolean;
|
|
210
216
|
popupTransition: string | boolean;
|
|
217
|
+
insertFullscreen: boolean;
|
|
211
218
|
}>;
|
|
212
219
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
213
220
|
export default _default;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export declare const PwcOnlySlot: import('vue').DefineComponent<{
|
|
3
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<any, import('vue-types/dist/types').ValidatorFunction<any>>;
|
|
4
|
+
}, () => VNode[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
5
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<any, import('vue-types/dist/types').ValidatorFunction<any>>;
|
|
6
|
+
}>>, {}>;
|
|
@@ -15,8 +15,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
15
15
|
inactiveColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
-
size: import('vue-types').VueTypeDef<"default" | "
|
|
19
|
-
default: "default" | "
|
|
18
|
+
size: import('vue-types').VueTypeDef<"default" | "medium" | "mini"> & {
|
|
19
|
+
default: "default" | "medium" | "mini";
|
|
20
20
|
};
|
|
21
21
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
22
|
change: (arg: import('./use-switch').SwitchValue) => void;
|
|
@@ -37,11 +37,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
37
37
|
inactiveColor: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
|
-
size: import('vue-types').VueTypeDef<"default" | "
|
|
41
|
-
default: "default" | "
|
|
40
|
+
size: import('vue-types').VueTypeDef<"default" | "medium" | "mini"> & {
|
|
41
|
+
default: "default" | "medium" | "mini";
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
44
|
-
size: "default" | "
|
|
44
|
+
size: "default" | "medium" | "mini";
|
|
45
45
|
disabled: boolean;
|
|
46
46
|
activeValue: import('./use-switch').SwitchValue;
|
|
47
47
|
inactiveValue: import('./use-switch').SwitchValue;
|
|
@@ -44,8 +44,8 @@ export declare const switchProps: () => {
|
|
|
44
44
|
* 大小
|
|
45
45
|
* @default 'default'
|
|
46
46
|
*/
|
|
47
|
-
size: import('vue-types').VueTypeDef<"default" | "
|
|
48
|
-
default: "default" | "
|
|
47
|
+
size: import('vue-types').VueTypeDef<"default" | "medium" | "mini"> & {
|
|
48
|
+
default: "default" | "medium" | "mini";
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
export declare const switchEmits: () => {
|
|
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
27
27
|
}, {
|
|
28
28
|
openToast: () => void;
|
|
29
29
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
"after-enter": (arg?: void | undefined) => void;
|
|
31
30
|
"after-leave": (arg?: void | undefined) => void;
|
|
31
|
+
"after-enter": (arg?: void | undefined) => void;
|
|
32
32
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
33
33
|
"v-model-key": import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
34
34
|
default: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentInstance } from '../../vue-utils';
|
|
2
|
+
import { default as TooltipPopper } from './tooltip-popper.vue';
|
|
3
|
+
import { TooltipOptions } from './use-tooltip';
|
|
4
|
+
declare const INSTANCE_KEY: unique symbol;
|
|
5
|
+
interface TooltipElement extends HTMLElement {
|
|
6
|
+
[INSTANCE_KEY]?: {
|
|
7
|
+
tooltipVm: ComponentInstance<typeof TooltipPopper>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
type TooltipBinding = string | TooltipOptions;
|
|
11
|
+
export declare const vTooltip: import('vue').Directive<TooltipElement, TooltipBinding>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TooltipOptions } from './use-tooltip';
|
|
2
|
+
declare function setOptions(options: TooltipOptions): void;
|
|
3
|
+
declare function setReference(elem: HTMLElement): void;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
5
|
+
setOptions: typeof setOptions;
|
|
6
|
+
setReference: typeof setReference;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{}>>, {}>;
|
|
8
|
+
export default _default;
|