@polyv/vue-components 1.12.1 → 1.13.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 +16 -9
- package/vue2/index.es.js +8473 -8421
- package/vue2/src/components/business/data-export/data-export-record/data-export-record.vue.d.ts +763 -0
- package/vue2/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +330 -0
- package/vue2/src/components/business/external-links/use-external-links.d.ts +2 -15
- package/vue2/src/components/form/file-upload/index.d.ts +11 -6
- package/vue2/src/components/form/file-upload/src/file-upload.vue.d.ts +7 -2
- package/vue2/src/components/form/file-upload/src/hooks/props-define.d.ts +20 -2
- package/vue2/src/components/form/file-upload/src/hooks/use-file-upload-slots.d.ts +2 -1
- package/vue2/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +1 -1
- package/vue2/src/components/form/form-item/index.d.ts +20 -0
- package/vue2/src/components/form/form-item/src/form-item.vue.d.ts +7 -0
- package/vue2/src/components/form/form-item/src/hooks/props-define.d.ts +6 -0
- package/vue2/src/components/image-cropper/src/cropper-layer/use-cropper-layer.d.ts +4 -2
- package/vue2/src/components/popup/src/hooks/popup-props.d.ts +2 -0
- package/vue2/src/components/resize-box/resize-box.vue.d.ts +4 -1
- package/vue2/src/components/resize-box/type.d.ts +28 -0
- package/vue2/src/components/resize-box/use-resize-box.d.ts +3 -1
- package/vue2/src/components/slider/index.d.ts +7 -0
- package/vue2/src/components/slider/src/props-define.d.ts +7 -0
- package/vue2/src/components/slider/src/slider.vue.d.ts +7 -0
- package/vue2/src/components/toast/_component/position-management.d.ts +6 -0
- package/vue2/src/components/toast/_component/toast-element.vue.d.ts +15 -8
- package/vue2/src/components/toast/_component/use-toast-element.d.ts +20 -6
- package/vue2/src/components/toast/types.d.ts +20 -2
- package/vue2/src/hooks/business/use-resize-oss-image/index.d.ts +1 -1
- package/vue2/src/hooks/tools/use-count-down/index.d.ts +1 -1
- package/vue2/src/hooks/tools/use-event-bus/index.d.ts +1 -1
- package/vue2/src/hooks/tools/use-target-event-emitter/index.d.ts +1 -1
- package/vue3/index.es.js +9000 -8948
- package/vue3/src/components/business/data-export/data-export-record/data-export-record.vue.d.ts +763 -0
- package/vue3/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +330 -0
- package/vue3/src/components/business/external-links/use-external-links.d.ts +2 -15
- package/vue3/src/components/form/file-upload/index.d.ts +11 -6
- package/vue3/src/components/form/file-upload/src/file-upload.vue.d.ts +7 -2
- package/vue3/src/components/form/file-upload/src/hooks/props-define.d.ts +20 -2
- package/vue3/src/components/form/file-upload/src/hooks/use-file-upload-slots.d.ts +2 -1
- package/vue3/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +1 -1
- package/vue3/src/components/form/form-item/index.d.ts +20 -0
- package/vue3/src/components/form/form-item/src/form-item.vue.d.ts +7 -0
- package/vue3/src/components/form/form-item/src/hooks/props-define.d.ts +6 -0
- package/vue3/src/components/image-cropper/src/cropper-layer/use-cropper-layer.d.ts +4 -2
- package/vue3/src/components/popup/src/hooks/popup-props.d.ts +2 -0
- package/vue3/src/components/resize-box/resize-box.vue.d.ts +4 -1
- package/vue3/src/components/resize-box/type.d.ts +28 -0
- package/vue3/src/components/resize-box/use-resize-box.d.ts +3 -1
- package/vue3/src/components/slider/index.d.ts +7 -0
- package/vue3/src/components/slider/src/props-define.d.ts +7 -0
- package/vue3/src/components/slider/src/slider.vue.d.ts +7 -0
- package/vue3/src/components/toast/_component/position-management.d.ts +6 -0
- package/vue3/src/components/toast/_component/toast-element.vue.d.ts +15 -8
- package/vue3/src/components/toast/_component/use-toast-element.d.ts +20 -6
- package/vue3/src/components/toast/types.d.ts +20 -2
- package/vue3/src/hooks/business/use-resize-oss-image/index.d.ts +1 -1
- package/vue3/src/hooks/tools/use-count-down/index.d.ts +1 -1
- package/vue3/src/hooks/tools/use-event-bus/index.d.ts +1 -1
- package/vue3/src/hooks/tools/use-target-event-emitter/index.d.ts +1 -1
|
@@ -29,6 +29,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
31
31
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline" | "box">;
|
|
32
|
+
boxStatic: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
32
35
|
required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
33
36
|
default: boolean;
|
|
34
37
|
};
|
|
@@ -67,6 +70,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
67
70
|
};
|
|
68
71
|
errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
69
72
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline" | "box">;
|
|
73
|
+
boxStatic: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
70
76
|
required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
71
77
|
default: boolean;
|
|
72
78
|
};
|
|
@@ -85,6 +91,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
85
91
|
}>>, {
|
|
86
92
|
required: boolean;
|
|
87
93
|
showErrorMessage: boolean;
|
|
94
|
+
boxStatic: boolean;
|
|
88
95
|
tipsInline: boolean;
|
|
89
96
|
validateData: any;
|
|
90
97
|
blurValidate: boolean;
|
|
@@ -40,6 +40,12 @@ export declare const formItemProps: () => {
|
|
|
40
40
|
* @propType FormItemLabelModel
|
|
41
41
|
*/
|
|
42
42
|
labelModel: import('vue-types').VueTypeDef<"header" | "inline" | "box">;
|
|
43
|
+
/**
|
|
44
|
+
* box 模式下静态显示,不显示背景和内边距
|
|
45
|
+
*/
|
|
46
|
+
boxStatic: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
43
49
|
/**
|
|
44
50
|
* 是否显示必填星号
|
|
45
51
|
* @default false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** 8 个控制点方向 */
|
|
2
2
|
export type HandleDirection = 'tl' | 't' | 'tr' | 'r' | 'br' | 'b' | 'bl' | 'l';
|
|
3
|
+
type CropperDragEvent = MouseEvent | TouchEvent;
|
|
3
4
|
export declare function useCropperLayer(): {
|
|
4
5
|
dragging: import('vue').Ref<boolean>;
|
|
5
6
|
cropBoxStyle: import('vue').ComputedRef<{
|
|
@@ -35,7 +36,8 @@ export declare function useCropperLayer(): {
|
|
|
35
36
|
height: string;
|
|
36
37
|
};
|
|
37
38
|
}>;
|
|
38
|
-
onBoxMouseDown: (event:
|
|
39
|
-
onHandleMouseDown: (event:
|
|
39
|
+
onBoxMouseDown: (event: CropperDragEvent) => void;
|
|
40
|
+
onHandleMouseDown: (event: CropperDragEvent, direction: HandleDirection) => void;
|
|
40
41
|
resizeBox: boolean;
|
|
41
42
|
};
|
|
43
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormatProps } from '../../../../vue-utils';
|
|
1
2
|
import { PopupConfig, CustomClosePopup, CustomBackPopup } from '../types';
|
|
2
3
|
/** 弹层主题,compact 紧凑型,standard 标准型,custom 自定义 */
|
|
3
4
|
export declare const popupEffects: readonly ["compact", "standard", "custom"];
|
|
@@ -252,6 +253,7 @@ export declare const popupProps: () => {
|
|
|
252
253
|
*/
|
|
253
254
|
headerTooltip: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
254
255
|
};
|
|
256
|
+
export type PopupProps = FormatProps<typeof popupProps>;
|
|
255
257
|
export declare const popupEmits: () => {
|
|
256
258
|
/**
|
|
257
259
|
* 弹层动画离开之后
|
|
@@ -41,7 +41,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
41
41
|
storageKey: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
42
42
|
default: string;
|
|
43
43
|
};
|
|
44
|
-
}, {
|
|
44
|
+
}, {
|
|
45
|
+
getSize: () => import('./type').ResizeBoxCurrentSize;
|
|
46
|
+
setSize: (size: import('./type').ResizeBoxSize) => void;
|
|
47
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
48
|
resize: (arg: import('./type').ResizeEventData) => void;
|
|
46
49
|
"resize-start": (arg: import('./type').ResizeEventData) => void;
|
|
47
50
|
"resize-end": (arg: import('./type').ResizeEventData) => void;
|
|
@@ -32,3 +32,31 @@ export interface ResizeEventData {
|
|
|
32
32
|
/** 原始事件 */
|
|
33
33
|
event: MouseEvent;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* 尺寸设置数据
|
|
37
|
+
*/
|
|
38
|
+
export interface ResizeBoxSize {
|
|
39
|
+
/** 宽度 */
|
|
40
|
+
width?: number;
|
|
41
|
+
/** 高度 */
|
|
42
|
+
height?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 当前尺寸数据
|
|
46
|
+
*/
|
|
47
|
+
export interface ResizeBoxCurrentSize {
|
|
48
|
+
/** 宽度 */
|
|
49
|
+
width: number;
|
|
50
|
+
/** 高度 */
|
|
51
|
+
height: number;
|
|
52
|
+
}
|
|
53
|
+
export interface ResizeBoxExpose {
|
|
54
|
+
/**
|
|
55
|
+
* 获取当前容器尺寸
|
|
56
|
+
*/
|
|
57
|
+
getSize: () => ResizeBoxCurrentSize;
|
|
58
|
+
/**
|
|
59
|
+
* 设置容器尺寸
|
|
60
|
+
*/
|
|
61
|
+
setSize: (size: ResizeBoxSize) => void;
|
|
62
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VueEmit, VueProps } from '../../vue-utils';
|
|
2
|
-
import { ResizeDirection, ResizeEventData } from './type';
|
|
2
|
+
import { ResizeDirection, ResizeBoxCurrentSize, ResizeBoxSize, ResizeEventData } from './type';
|
|
3
3
|
export declare const resizeBoxProps: () => {
|
|
4
4
|
/**
|
|
5
5
|
* 初始宽度
|
|
@@ -102,4 +102,6 @@ export declare const useResizeBox: (options: {
|
|
|
102
102
|
isResizing: import('vue').Ref<boolean>;
|
|
103
103
|
showHandleControl: (direction: ResizeDirection) => boolean;
|
|
104
104
|
handleMouseDown: (event: MouseEvent, direction: ResizeDirection) => void;
|
|
105
|
+
setSize: (size: ResizeBoxSize) => void;
|
|
106
|
+
getSize: () => ResizeBoxCurrentSize;
|
|
105
107
|
};
|
|
@@ -37,6 +37,9 @@ export declare const PwcSlider: import('../../vue-utils/install-utils').SFCInsta
|
|
|
37
37
|
default: number;
|
|
38
38
|
};
|
|
39
39
|
sliderBarHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
40
|
+
sliderBarBg: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
40
43
|
buttonSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
41
44
|
default: number;
|
|
42
45
|
};
|
|
@@ -81,6 +84,9 @@ export declare const PwcSlider: import('../../vue-utils/install-utils').SFCInsta
|
|
|
81
84
|
default: number;
|
|
82
85
|
};
|
|
83
86
|
sliderBarHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
87
|
+
sliderBarBg: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
84
90
|
buttonSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
85
91
|
default: number;
|
|
86
92
|
};
|
|
@@ -97,6 +103,7 @@ export declare const PwcSlider: import('../../vue-utils/install-utils').SFCInsta
|
|
|
97
103
|
cssRotateAngle: 0 | 180 | 90 | 270;
|
|
98
104
|
progressBarVisible: boolean;
|
|
99
105
|
hotAreaHeight: number;
|
|
106
|
+
sliderBarBg: string;
|
|
100
107
|
buttonSize: number;
|
|
101
108
|
}>, import('../../vue-utils/install-utils').InstallOptions>;
|
|
102
109
|
export * from './src/props-define';
|
|
@@ -97,6 +97,13 @@ export declare const sliderProps: () => {
|
|
|
97
97
|
* 滑块条高度
|
|
98
98
|
*/
|
|
99
99
|
sliderBarHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
100
|
+
/**
|
|
101
|
+
* 滑块条背景
|
|
102
|
+
* @default ''
|
|
103
|
+
*/
|
|
104
|
+
sliderBarBg: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
100
107
|
/**
|
|
101
108
|
* 按钮大小
|
|
102
109
|
* @default 14
|
|
@@ -37,6 +37,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
37
37
|
default: number;
|
|
38
38
|
};
|
|
39
39
|
sliderBarHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
40
|
+
sliderBarBg: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
40
43
|
buttonSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
41
44
|
default: number;
|
|
42
45
|
};
|
|
@@ -81,6 +84,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
81
84
|
default: number;
|
|
82
85
|
};
|
|
83
86
|
sliderBarHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
87
|
+
sliderBarBg: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
84
90
|
buttonSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
85
91
|
default: number;
|
|
86
92
|
};
|
|
@@ -97,6 +103,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
97
103
|
cssRotateAngle: 0 | 180 | 90 | 270;
|
|
98
104
|
progressBarVisible: boolean;
|
|
99
105
|
hotAreaHeight: number;
|
|
106
|
+
sliderBarBg: string;
|
|
100
107
|
buttonSize: number;
|
|
101
108
|
}>;
|
|
102
109
|
export default _default;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { BusinessType } from '../../../hooks/business/use-business-type';
|
|
1
2
|
import { ToastType } from '../types';
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
default?(_: {}): any;
|
|
6
7
|
};
|
|
7
|
-
refs: {
|
|
8
|
+
refs: {
|
|
9
|
+
toastRef: HTMLDivElement;
|
|
10
|
+
};
|
|
8
11
|
rootEl: Element;
|
|
9
12
|
};
|
|
10
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -21,11 +24,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
21
24
|
duration: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
22
25
|
default: number;
|
|
23
26
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
effect: import('vue-types').VueTypeDef<"light" | "black">;
|
|
28
|
+
showMode: import('vue-types').VueTypeDef<"center" | "stack">;
|
|
29
|
+
showIcon: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
30
|
+
business: import('vue-types').VueTypeValidableDef<BusinessType, import('vue-types/dist/types').ValidatorFunction<BusinessType>>;
|
|
27
31
|
}, {
|
|
28
32
|
openToast: () => void;
|
|
33
|
+
closeToast: () => void;
|
|
34
|
+
resetCloseTimer: () => void;
|
|
35
|
+
isToastVisible: () => boolean;
|
|
29
36
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
37
|
"after-leave": (arg?: void | undefined) => void;
|
|
31
38
|
"after-enter": (arg?: void | undefined) => void;
|
|
@@ -42,15 +49,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
42
49
|
duration: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
43
50
|
default: number;
|
|
44
51
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
effect: import('vue-types').VueTypeDef<"light" | "black">;
|
|
53
|
+
showMode: import('vue-types').VueTypeDef<"center" | "stack">;
|
|
54
|
+
showIcon: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
55
|
+
business: import('vue-types').VueTypeValidableDef<BusinessType, import('vue-types/dist/types').ValidatorFunction<BusinessType>>;
|
|
48
56
|
}>>, {
|
|
49
57
|
"v-model-key": boolean;
|
|
50
58
|
type: ToastType;
|
|
51
59
|
duration: number;
|
|
52
60
|
message: string;
|
|
53
|
-
showIcon: boolean;
|
|
54
61
|
}>;
|
|
55
62
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
56
63
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormatEmit, FormatProps, VueEmit, VueProps } from '../../../vue-utils';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
import { ToastType, ToastShowMode } from '../types';
|
|
3
4
|
export declare const toastProps: () => {
|
|
4
5
|
/**
|
|
5
6
|
* 是否显示绑定值
|
|
@@ -29,12 +30,20 @@ export declare const toastProps: () => {
|
|
|
29
30
|
default: number;
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @
|
|
33
|
+
* 提示主题,未传时根据业务类型自动设置
|
|
34
|
+
* @propType ToastEffect
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
effect: import('vue-types').VueTypeDef<"light" | "black">;
|
|
37
|
+
/**
|
|
38
|
+
* 显示方式,center 居中,stack 排列
|
|
39
|
+
* @propType ToastShowMode
|
|
40
|
+
*/
|
|
41
|
+
showMode: import('vue-types').VueTypeDef<"center" | "stack">;
|
|
42
|
+
/**
|
|
43
|
+
* 显示图标,未传时 black 主题默认不显示,light 主题默认显示
|
|
44
|
+
*/
|
|
45
|
+
showIcon: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
46
|
+
business: import('vue-types').VueTypeValidableDef<import('../../../hooks/business/use-business-type').BusinessType, import('vue-types/dist/types').ValidatorFunction<import('../../../hooks/business/use-business-type').BusinessType>>;
|
|
38
47
|
};
|
|
39
48
|
export declare const toastEmits: () => {
|
|
40
49
|
/**
|
|
@@ -54,10 +63,15 @@ export type ToastEmitsType = FormatEmit<typeof toastEmits>;
|
|
|
54
63
|
export declare const useToastElement: (options: {
|
|
55
64
|
props: VueProps<typeof toastProps>;
|
|
56
65
|
emit: VueEmit<typeof toastEmits>;
|
|
66
|
+
showMode: ComputedRef<ToastShowMode>;
|
|
57
67
|
}) => {
|
|
58
68
|
toastVisible: import('vue').Ref<boolean>;
|
|
69
|
+
stackOffset: import('vue').Ref<number>;
|
|
59
70
|
openToast: () => void;
|
|
60
71
|
closeToast: () => void;
|
|
72
|
+
resetCloseTimer: () => void;
|
|
73
|
+
isToastVisible: () => boolean;
|
|
74
|
+
updateToastHeight: (height: number) => void;
|
|
61
75
|
onAfterLeave: () => void;
|
|
62
76
|
onAfterEnter: () => void;
|
|
63
77
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BusinessType } from '../../hooks/business/use-business-type';
|
|
1
2
|
/**
|
|
2
3
|
* 提示类型
|
|
3
4
|
*/
|
|
@@ -13,6 +14,12 @@ export declare enum ToastType {
|
|
|
13
14
|
/** 加载中提示 */
|
|
14
15
|
Loading = "loading"
|
|
15
16
|
}
|
|
17
|
+
/** 提示主题,black 黑色,light 浅色 */
|
|
18
|
+
export declare const toastEffects: readonly ["black", "light"];
|
|
19
|
+
export type ToastEffect = (typeof toastEffects)[number];
|
|
20
|
+
/** 提示显示方式,center 居中,stack 排列 */
|
|
21
|
+
export declare const toastShowModes: readonly ["center", "stack"];
|
|
22
|
+
export type ToastShowMode = (typeof toastShowModes)[number];
|
|
16
23
|
export interface ToastOptions {
|
|
17
24
|
/**
|
|
18
25
|
* 关闭时间
|
|
@@ -20,8 +27,19 @@ export interface ToastOptions {
|
|
|
20
27
|
*/
|
|
21
28
|
duration?: number;
|
|
22
29
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @default false
|
|
30
|
+
* 显示图标,未传时 black 主题默认不显示,light 主题默认显示
|
|
25
31
|
*/
|
|
26
32
|
showIcon?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 提示主题
|
|
35
|
+
*/
|
|
36
|
+
effect?: ToastEffect;
|
|
37
|
+
/**
|
|
38
|
+
* 显示方式
|
|
39
|
+
*/
|
|
40
|
+
showMode?: ToastShowMode;
|
|
41
|
+
/**
|
|
42
|
+
* 业务类型
|
|
43
|
+
*/
|
|
44
|
+
business?: BusinessType;
|
|
27
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOSSCompressOptions } from '@polyv/utils
|
|
1
|
+
import { IOSSCompressOptions } from '@polyv/utils-image';
|
|
2
2
|
export declare const useResizeOssImage: () => {
|
|
3
3
|
appendToOssProcess: (url: string, additionalParams: string) => string;
|
|
4
4
|
resizeOSSImg: (url: string, options?: IOSSCompressOptions | number) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybeResponsive } from '../../../vue-utils';
|
|
2
|
-
import { IRemaining as CountDownSurplusData } from '@polyv/utils
|
|
2
|
+
import { IRemaining as CountDownSurplusData } from '@polyv/utils-countdown';
|
|
3
3
|
import { ComputedRef, Ref } from 'vue';
|
|
4
4
|
export interface UseCountDownOptions {
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@polyv/utils
|
|
1
|
+
import { EventEmitter } from '@polyv/utils-event';
|
|
2
2
|
import { UseAutoListenFn, UseAutoListenOptions } from '../use-auto-listen';
|
|
3
3
|
declare module '../../business/use-config-provider' {
|
|
4
4
|
interface ConfigProviderInjectData {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, EventHandler, EventRelationsType, EventType } from '@polyv/utils
|
|
1
|
+
import { EventEmitter, EventHandler, EventRelationsType, EventType } from '@polyv/utils-event';
|
|
2
2
|
import { UseAutoListenFn, UseAutoListenOptions } from '../use-auto-listen';
|
|
3
3
|
export type TargetEventListeners<R extends EventRelationsType, E extends EventType> = {
|
|
4
4
|
[event in E]?: EventHandler<R, event>;
|