@polyv/vue-components 1.0.2 → 1.1.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/index.es.js +4453 -2279
- package/package.json +4 -3
- package/src/components/basic-countdown/use-basic-countdown.d.ts +27 -7
- package/src/components/{normal-button/normal-button.vue.d.ts → button/button.vue.d.ts} +6 -14
- package/src/components/button/index.d.ts +3 -0
- package/src/components/button/type.d.ts +50 -0
- package/src/components/{normal-button/use-normal-button.d.ts → button/use-button.d.ts} +33 -11
- package/src/components/carousel/index.d.ts +3 -0
- package/src/components/category-select/category-select-item.vue.d.ts +22 -0
- package/src/components/category-select/category-select.vue.d.ts +21 -0
- package/src/components/category-select/index.d.ts +3 -0
- package/src/components/category-select/use-category-select.d.ts +25 -0
- package/src/components/dropdown/dropdown-item.vue.d.ts +31 -0
- package/src/components/dropdown/dropdown-menu.vue.d.ts +17 -0
- package/src/components/dropdown/dropdown.vue.d.ts +61 -0
- package/src/components/dropdown/index.d.ts +4 -0
- package/src/components/dropdown/use-dropdown.d.ts +70 -0
- package/src/components/empty/empty.vue.d.ts +14 -0
- package/src/components/empty/index.d.ts +2 -0
- package/src/components/empty/use-empty.d.ts +14 -0
- package/src/components/exports.d.ts +8 -1
- package/src/components/form/{form-area-picker/form-area-picker.vue.d.ts → area-picker/area-picker.vue.d.ts} +7 -7
- package/src/components/form/area-picker/index.d.ts +2 -0
- package/src/components/form/{form-area-picker/use-form-area-picker.d.ts → area-picker/use-area-picker.d.ts} +26 -13
- package/src/components/form/checkbox/index.d.ts +4 -0
- package/src/components/form/{form-checkbox/use-form-checkbox.d.ts → checkbox/use-checkbox.d.ts} +47 -12
- package/src/components/form/form-item/use-form-item.d.ts +30 -9
- package/src/components/form/form-submit-button/form-submit-button.vue.d.ts +13 -13
- package/src/components/form/form-submit-button/use-form-submit-button.d.ts +12 -5
- package/src/components/form/form-wrap/form-wrap.vue.d.ts +2 -0
- package/src/components/form/form-wrap/use-form-wrap.d.ts +48 -9
- package/src/components/form/hooks/use-form-common.d.ts +13 -2
- package/src/components/form/index.d.ts +5 -5
- package/src/components/form/input/index.d.ts +2 -0
- package/src/components/form/{form-input/form-input.vue.d.ts → input/input.vue.d.ts} +19 -22
- package/src/components/form/{form-input/use-form-input.d.ts → input/use-input.d.ts} +89 -21
- package/src/components/form/protocol/index.d.ts +2 -0
- package/src/components/form/{form-protocol/use-form-protocol.d.ts → protocol/use-protocol.d.ts} +9 -5
- package/src/components/form/radio/index.d.ts +4 -0
- package/src/components/form/{form-radio/form-radio.vue.d.ts → radio/radio.vue.d.ts} +0 -6
- package/src/components/form/radio/use-radio.d.ts +41 -0
- package/src/components/form/types/index.d.ts +12 -3
- package/src/components/icons/icons/{info-round-filled → check-round-fill}/index.d.ts +1 -1
- package/src/components/icons/icons/close-round/index.d.ts +6 -0
- package/src/components/icons/icons/copy/index.d.ts +6 -0
- package/src/components/icons/icons/down-file/index.d.ts +6 -0
- package/src/components/icons/icons/down-load/index.d.ts +6 -0
- package/src/components/icons/icons/info-round-fill/index.d.ts +6 -0
- package/src/components/icons/icons/loading/index.d.ts +6 -0
- package/src/components/icons/icons/search/index.d.ts +6 -0
- package/src/components/icons/icons/triangle-down/index.d.ts +6 -0
- package/src/components/icons/icons/triangle-up/index.d.ts +6 -0
- package/src/components/icons/icons/warning-round-fill/index.d.ts +6 -0
- package/src/components/icons/icons/zoom-in/index.d.ts +6 -0
- package/src/components/icons/icons/zoom-out/index.d.ts +6 -0
- package/src/components/icons/map.d.ts +13 -1
- package/src/components/loading/directive.d.ts +16 -0
- package/src/components/loading/hook.d.ts +9 -0
- package/src/components/loading/index.d.ts +6 -0
- package/src/components/loading/loading-circle.vue.d.ts +2 -0
- package/src/components/loading/loading.vue.d.ts +30 -0
- package/src/components/loading/service.d.ts +11 -0
- package/src/components/loading/types.d.ts +24 -0
- package/src/components/loading/use-loading-component.d.ts +29 -0
- package/src/components/normal-pendant/index.d.ts +1 -0
- package/src/components/normal-pendant/normal-pendant.vue.d.ts +1 -8
- package/src/components/normal-pendant/use-normal-pendant.d.ts +36 -0
- package/src/components/popup/hooks/popup-props.d.ts +129 -37
- package/src/components/popup/hooks/use-popup-back.d.ts +1 -1
- package/src/components/popup/hooks/use-popup-config.d.ts +3 -0
- package/src/components/popup/hooks/use-popup-height.d.ts +1 -1
- package/src/components/popup/hooks/use-popup-scroll.d.ts +1 -0
- package/src/components/popup/hooks/use-popup-visible.d.ts +1 -0
- package/src/components/popup/popup.vue.d.ts +20 -15
- package/src/components/resize-box/index.d.ts +3 -0
- package/src/components/resize-box/resize-box.vue.d.ts +97 -0
- package/src/components/resize-box/type.d.ts +34 -0
- package/src/components/resize-box/use-resize-box.d.ts +105 -0
- package/src/components/reward-receive/entrance/reward-receive.vue.d.ts +4 -7
- package/src/components/reward-receive/hooks/use-reward-receive.d.ts +8 -3
- package/src/components/reward-receive/index.d.ts +1 -0
- package/src/components/switch/index.d.ts +2 -0
- package/src/components/switch/switch.vue.d.ts +51 -0
- package/src/components/switch/use-switch.d.ts +66 -0
- package/src/hooks/business/use-config-provider/index.d.ts +18 -5
- package/src/hooks/business/use-request/index.d.ts +56 -0
- package/src/hooks/business/use-resize-oss-image/index.d.ts +5 -0
- package/src/hooks/business/use-skin-color/index.d.ts +44 -0
- package/src/hooks/components/use-action-sheet/types.d.ts +27 -5
- package/src/hooks/components/use-image-preview/index.d.ts +12 -0
- package/src/hooks/components/use-message-box/_component/message-box-element.vue.d.ts +46 -11
- package/src/hooks/components/use-message-box/_component/use-message-box-element.d.ts +135 -3
- package/src/hooks/components/use-message-box/index.d.ts +3 -0
- package/src/hooks/components/use-message-box/types.d.ts +50 -8
- package/src/hooks/components/use-popper/_popper-type.d.ts +8 -4
- package/src/hooks/components/use-popper/index.d.ts +2 -2
- package/src/hooks/components/use-toast/_component/toast-element.vue.d.ts +32 -5
- package/src/hooks/components/use-toast/_component/use-toast-element.d.ts +37 -6
- package/src/hooks/components/use-toast/hook.d.ts +11 -0
- package/src/hooks/components/use-toast/index.d.ts +3 -10
- package/src/hooks/components/use-toast/types.d.ts +8 -2
- package/src/hooks/exports.d.ts +10 -1
- package/src/hooks/interactive/use-hover/index.d.ts +8 -0
- package/src/hooks/interactive/use-outside/index.d.ts +24 -0
- package/src/hooks/interactive/use-screen-orientation/index.d.ts +2 -2
- package/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +1 -0
- package/src/hooks/platform/weixin/load-wx-sdk.d.ts +9 -0
- package/src/hooks/platform/weixin/use-weixin-mini-program.d.ts +6 -0
- package/src/hooks/platform/weixin/use-weixin-sdk.d.ts +14 -0
- package/src/hooks/plugin/use-resize-observer/index.d.ts +1 -1
- package/src/hooks/tools/use-browser/index.d.ts +8 -0
- package/src/hooks/tools/use-download/index.d.ts +6 -0
- package/src/hooks/tools/use-event-listener/index.d.ts +1 -1
- package/src/hooks/tools/use-set-interval/index.d.ts +1 -0
- package/src/hooks/tools/use-set-timeout/index.d.ts +1 -0
- package/src/hooks/tools/use-simple-visible/index.d.ts +28 -7
- package/src/hooks/vue/use-storage-ref/index.d.ts +3 -0
- package/src/hooks/vue/use-vue/index.d.ts +15 -0
- package/src/lang/common/en.json.d.ts +5 -1
- package/src/lang/common/ja.json.d.ts +5 -1
- package/src/lang/common/ko.json.d.ts +5 -1
- package/src/lang/common/ru.json.d.ts +5 -1
- package/src/lang/common/zh-CN.json.d.ts +5 -1
- package/src/lang/common/zh-TW.json.d.ts +5 -1
- package/src/lang/internal/index.d.ts +4 -0
- package/src/plugins/polyv-ui/mobile-import.d.ts +1 -0
- package/src/vue-utils/emit-utils.d.ts +3 -1
- package/src/vue-utils/props-utils.d.ts +1 -3
- package/styles/animation.scss +0 -9
- package/styles/mixins.scss +8 -6
- package/styles/skin-color.scss +64 -0
- package/src/components/form/form-area-picker/index.d.ts +0 -2
- package/src/components/form/form-checkbox/index.d.ts +0 -4
- package/src/components/form/form-input/index.d.ts +0 -2
- package/src/components/form/form-protocol/index.d.ts +0 -2
- package/src/components/form/form-radio/index.d.ts +0 -3
- package/src/components/normal-button/index.d.ts +0 -3
- package/src/components/normal-button/type.d.ts +0 -28
- package/src/hooks/interactive/use-click-outside/index.d.ts +0 -14
- package/src/components/form/{form-checkbox/form-checkbox-group.vue.d.ts → checkbox/checkbox-group.vue.d.ts} +0 -0
- package/src/components/form/{form-checkbox/form-checkbox.vue.d.ts → checkbox/checkbox.vue.d.ts} +4 -4
- /package/src/components/form/{form-checkbox → checkbox}/type.d.ts +0 -0
- /package/src/components/form/{form-protocol/form-protocol.vue.d.ts → protocol/protocol.vue.d.ts} +0 -0
- /package/src/components/form/{form-radio/form-radio-group.vue.d.ts → radio/radio-group.vue.d.ts} +0 -0
- /package/src/components/form/{form-radio → radio}/type.d.ts +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const normalPendantProps: () => {
|
|
2
|
+
/**
|
|
3
|
+
* 挂件图标
|
|
4
|
+
*/
|
|
5
|
+
iconUrl: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 挂件文案
|
|
10
|
+
*/
|
|
11
|
+
text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 倒计时秒数
|
|
16
|
+
*/
|
|
17
|
+
countdownSecond: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 倒计时时间戳
|
|
22
|
+
*/
|
|
23
|
+
countdownTimestamp: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const normalPendantEmit: () => {
|
|
28
|
+
/**
|
|
29
|
+
* 点击挂件
|
|
30
|
+
*/
|
|
31
|
+
'click-pendant': import('../../vue-utils').EmitFuncType<void>;
|
|
32
|
+
/**
|
|
33
|
+
* 倒计时结束
|
|
34
|
+
*/
|
|
35
|
+
'countdown-finish': import('../../vue-utils').EmitFuncType<void>;
|
|
36
|
+
};
|
|
@@ -1,114 +1,206 @@
|
|
|
1
1
|
import { PopupConfig, CustomClosePopup } from '../types';
|
|
2
2
|
export declare const popupProps: () => {
|
|
3
|
+
/**
|
|
4
|
+
* 是否显示,支持 v-model
|
|
5
|
+
*/
|
|
3
6
|
value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
4
7
|
default: boolean;
|
|
5
8
|
};
|
|
6
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* 标题
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
7
13
|
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
8
14
|
default: string;
|
|
9
15
|
};
|
|
10
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* 标题样式
|
|
18
|
+
*/
|
|
11
19
|
titleStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
|
|
12
20
|
default: () => import('vue').CSSProperties;
|
|
13
21
|
};
|
|
14
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* 背景模式
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
15
26
|
backgroundMode: import('vue-types').VueTypeDef<"bg1">;
|
|
16
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* 背景
|
|
29
|
+
*/
|
|
17
30
|
background: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
18
31
|
default: string;
|
|
19
32
|
};
|
|
20
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* 是否可以关闭
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
21
37
|
closeable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
22
38
|
default: boolean;
|
|
23
39
|
};
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 是否显示返回按钮
|
|
42
|
+
* @propType boolean
|
|
43
|
+
*/
|
|
44
|
+
backable: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
45
|
+
/**
|
|
46
|
+
* 是否显示头部
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
29
49
|
showHeader: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
30
50
|
default: boolean;
|
|
31
51
|
};
|
|
32
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* 头部样式
|
|
54
|
+
*/
|
|
33
55
|
headerStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
|
|
34
56
|
default: () => import('vue').CSSProperties;
|
|
35
57
|
};
|
|
36
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* 打开事件
|
|
60
|
+
*/
|
|
37
61
|
openEvent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
38
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* 弹层位置,会根据设备类型自动选择位置
|
|
64
|
+
* @propType PopupPosition
|
|
65
|
+
*/
|
|
39
66
|
position: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "center">;
|
|
40
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* 在屏幕横屏时,强制使用的位置
|
|
69
|
+
* @propType PopupPosition
|
|
70
|
+
* @default 'right'
|
|
71
|
+
*/
|
|
41
72
|
horizontalScreenPosition: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "center"> & {
|
|
42
73
|
default: "bottom" | "left" | "right" | "center";
|
|
43
74
|
};
|
|
44
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* 在屏幕横屏时,弹层 className
|
|
77
|
+
*/
|
|
45
78
|
horizontalScreenClassName: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
46
79
|
default: string;
|
|
47
80
|
};
|
|
48
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* 宽度
|
|
83
|
+
*/
|
|
49
84
|
width: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
50
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* 高度
|
|
87
|
+
*/
|
|
51
88
|
height: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
52
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* 主体最大高度
|
|
91
|
+
* @propType number | string
|
|
92
|
+
* @default 0.85
|
|
93
|
+
*/
|
|
53
94
|
bodyMaxHeight: import('vue-types').VueTypeDef<string | number> & {
|
|
54
95
|
default: string | number;
|
|
55
96
|
};
|
|
56
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* 主体高度百分比
|
|
99
|
+
*/
|
|
57
100
|
bodyHeightPercent: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
58
101
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* 需要传入 bodyMaxHeight 且为 0~1 的数字后才生效
|
|
102
|
+
* 是否使用滚动条动态高度,需要传入 bodyHeightPercent 后才生效,需要传入 bodyMaxHeight 且为 0~1 的数字后才生效
|
|
103
|
+
* @default false
|
|
62
104
|
*/
|
|
63
105
|
dynamicHeight: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
64
106
|
default: boolean;
|
|
65
107
|
};
|
|
66
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* 是否填充主体
|
|
110
|
+
* @default false
|
|
111
|
+
*/
|
|
67
112
|
fillBody: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
68
113
|
default: boolean;
|
|
69
114
|
};
|
|
70
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* 主体样式
|
|
117
|
+
*/
|
|
71
118
|
bodyStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
|
|
72
119
|
default: () => import('vue').CSSProperties;
|
|
73
120
|
};
|
|
74
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* 插入到的节点
|
|
123
|
+
* @propType HTMLElement
|
|
124
|
+
*/
|
|
75
125
|
appendTo: import('vue-types').VueTypeDef<HTMLElement | undefined> & {
|
|
76
126
|
default: (() => HTMLElement) | undefined;
|
|
77
127
|
};
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
128
|
+
/**
|
|
129
|
+
* 是否显示遮罩层,开启 draggable 时,强制关闭
|
|
130
|
+
* @propType boolean
|
|
131
|
+
*/
|
|
132
|
+
showModal: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
133
|
+
/**
|
|
134
|
+
* 点击遮罩是否关闭
|
|
135
|
+
* @default true
|
|
136
|
+
*/
|
|
83
137
|
closeOnMask: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
84
138
|
default: boolean;
|
|
85
139
|
};
|
|
86
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* 弹层配置
|
|
142
|
+
*/
|
|
87
143
|
popupConfig: import('vue-types').VueTypeValidableDef<PopupConfig, import('vue-types/dist/types').ValidatorFunction<PopupConfig>>;
|
|
88
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* 是否显示滚动条
|
|
146
|
+
* @default true
|
|
147
|
+
*/
|
|
89
148
|
showScrollbar: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
90
149
|
default: boolean;
|
|
91
150
|
};
|
|
92
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* 自定义关闭弹层
|
|
153
|
+
*/
|
|
93
154
|
customClose: import('vue-types').VueTypeValidableDef<CustomClosePopup, import('vue-types/dist/types').ValidatorFunction<CustomClosePopup>>;
|
|
94
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* 窗口是否可以拖拽
|
|
157
|
+
* @description 仅 PC 端在 position 为 center 时有效
|
|
158
|
+
* @default false
|
|
159
|
+
*/
|
|
95
160
|
draggable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
96
161
|
default: boolean;
|
|
97
162
|
};
|
|
98
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* 用于计算定位的元素
|
|
165
|
+
* @default ''
|
|
166
|
+
*/
|
|
99
167
|
positionComputedElem: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
100
168
|
default: string;
|
|
101
169
|
};
|
|
102
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* 打开后禁止 body 滚动
|
|
172
|
+
* @default false
|
|
173
|
+
*/
|
|
103
174
|
bodyLocked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
104
175
|
default: boolean;
|
|
105
176
|
};
|
|
106
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* 隐藏弹层阴影
|
|
179
|
+
* @default false
|
|
180
|
+
*/
|
|
107
181
|
hiddenShadow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
108
182
|
default: boolean;
|
|
109
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
* 弹层动画
|
|
186
|
+
* @propType string | boolean
|
|
187
|
+
* @default true
|
|
188
|
+
*/
|
|
189
|
+
popupTransition: import('vue-types').VueTypeDef<string | boolean> & {
|
|
190
|
+
default: string | boolean;
|
|
191
|
+
};
|
|
110
192
|
};
|
|
111
193
|
export declare const popupEmits: () => {
|
|
194
|
+
/**
|
|
195
|
+
* 弹层动画离开之后
|
|
196
|
+
*/
|
|
112
197
|
'after-leave': import('../../../vue-utils').EmitFuncType<void>;
|
|
198
|
+
/**
|
|
199
|
+
* 弹层动画进入之后
|
|
200
|
+
*/
|
|
201
|
+
'after-enter': import('../../../vue-utils').EmitFuncType<void>;
|
|
202
|
+
/**
|
|
203
|
+
* 点击返回
|
|
204
|
+
*/
|
|
113
205
|
'click-back': import('../../../vue-utils').EmitFuncType<void>;
|
|
114
206
|
};
|
|
@@ -8,6 +8,6 @@ export declare const usePopupBack: (options: {
|
|
|
8
8
|
callbackCloseBody: () => void;
|
|
9
9
|
}) => {
|
|
10
10
|
onClickBack: () => void;
|
|
11
|
-
showBack: import('vue').ComputedRef<boolean>;
|
|
11
|
+
showBack: import('vue').ComputedRef<boolean | undefined>;
|
|
12
12
|
setupBackAction: (data?: PopupBackActionData) => void;
|
|
13
13
|
};
|
|
@@ -2,6 +2,9 @@ import { VueProps } from '../../../vue-utils';
|
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
3
|
import { PopupConfig } from '../types';
|
|
4
4
|
export declare const popupConfigProps: () => {
|
|
5
|
+
/**
|
|
6
|
+
* 弹层配置
|
|
7
|
+
*/
|
|
5
8
|
popupConfig: import('vue-types').VueTypeValidableDef<PopupConfig, import('vue-types/dist/types').ValidatorFunction<PopupConfig>>;
|
|
6
9
|
};
|
|
7
10
|
export interface PopupConfigInjectData {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueProps } from '../../../vue-utils';
|
|
2
|
-
import { popupProps } from './popup-props';
|
|
3
2
|
import { ComputedRef, Ref } from 'vue';
|
|
4
3
|
import { PopupPosition } from '../types';
|
|
4
|
+
import { popupProps } from './popup-props';
|
|
5
5
|
export declare const usePopupDynamicHeight: (options: {
|
|
6
6
|
props: VueProps<typeof popupProps>;
|
|
7
7
|
scrollRef: Ref<HTMLDivElement | undefined>;
|
|
@@ -7,6 +7,7 @@ export declare const usePopupVisible: (options: {
|
|
|
7
7
|
wrapVisible: import('vue').Ref<boolean>;
|
|
8
8
|
bodyVisible: import('vue').Ref<boolean>;
|
|
9
9
|
onAfterLeave: () => void;
|
|
10
|
+
onAfterEnter: () => void;
|
|
10
11
|
openPopup: () => void;
|
|
11
12
|
closePopup: () => void;
|
|
12
13
|
closeBody: () => void;
|
|
@@ -17,6 +17,9 @@ declare function __VLS_template(): {
|
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
19
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
20
|
+
ignoreSkinColor: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
20
23
|
value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
21
24
|
default: boolean;
|
|
22
25
|
};
|
|
@@ -33,9 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
33
36
|
closeable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
34
37
|
default: boolean;
|
|
35
38
|
};
|
|
36
|
-
backable: import('vue-types').
|
|
37
|
-
default: boolean | undefined;
|
|
38
|
-
};
|
|
39
|
+
backable: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
39
40
|
showHeader: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
40
41
|
default: boolean;
|
|
41
42
|
};
|
|
@@ -68,9 +69,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
68
69
|
appendTo: import('vue-types').VueTypeDef<HTMLElement | undefined> & {
|
|
69
70
|
default: (() => HTMLElement) | undefined;
|
|
70
71
|
};
|
|
71
|
-
showModal: import('vue-types').
|
|
72
|
-
default: boolean | undefined;
|
|
73
|
-
};
|
|
72
|
+
showModal: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
74
73
|
closeOnMask: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
75
74
|
default: boolean;
|
|
76
75
|
};
|
|
@@ -91,13 +90,20 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
91
90
|
hiddenShadow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
92
91
|
default: boolean;
|
|
93
92
|
};
|
|
93
|
+
popupTransition: import('vue-types').VueTypeDef<string | boolean> & {
|
|
94
|
+
default: string | boolean;
|
|
95
|
+
};
|
|
94
96
|
}, {
|
|
95
97
|
resetScroll: () => Promise<void>;
|
|
96
98
|
setupBackAction: (data?: import('./types').PopupBackActionData) => void;
|
|
97
99
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
100
|
"after-leave": (arg?: void | undefined) => void;
|
|
101
|
+
"after-enter": (arg?: void | undefined) => void;
|
|
99
102
|
"click-back": (arg?: void | undefined) => void;
|
|
100
103
|
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
104
|
+
ignoreSkinColor: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
101
107
|
value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
102
108
|
default: boolean;
|
|
103
109
|
};
|
|
@@ -114,9 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
114
120
|
closeable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
115
121
|
default: boolean;
|
|
116
122
|
};
|
|
117
|
-
backable: import('vue-types').
|
|
118
|
-
default: boolean | undefined;
|
|
119
|
-
};
|
|
123
|
+
backable: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
120
124
|
showHeader: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
121
125
|
default: boolean;
|
|
122
126
|
};
|
|
@@ -149,9 +153,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
149
153
|
appendTo: import('vue-types').VueTypeDef<HTMLElement | undefined> & {
|
|
150
154
|
default: (() => HTMLElement) | undefined;
|
|
151
155
|
};
|
|
152
|
-
showModal: import('vue-types').
|
|
153
|
-
default: boolean | undefined;
|
|
154
|
-
};
|
|
156
|
+
showModal: import('vue-types').VueTypeValidableDef<boolean | undefined, import('vue-types/dist/types').ValidatorFunction<boolean | undefined>>;
|
|
155
157
|
closeOnMask: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
156
158
|
default: boolean;
|
|
157
159
|
};
|
|
@@ -172,13 +174,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
172
174
|
hiddenShadow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
173
175
|
default: boolean;
|
|
174
176
|
};
|
|
177
|
+
popupTransition: import('vue-types').VueTypeDef<string | boolean> & {
|
|
178
|
+
default: string | boolean;
|
|
179
|
+
};
|
|
175
180
|
}>>, {
|
|
176
181
|
value: boolean;
|
|
177
182
|
title: string;
|
|
178
|
-
titleStyle: import('vue').CSSProperties;
|
|
179
183
|
background: string;
|
|
184
|
+
ignoreSkinColor: boolean;
|
|
185
|
+
titleStyle: import('vue').CSSProperties;
|
|
180
186
|
closeable: boolean;
|
|
181
|
-
backable: boolean | undefined;
|
|
182
187
|
showHeader: boolean;
|
|
183
188
|
headerStyle: import('vue').CSSProperties;
|
|
184
189
|
horizontalScreenPosition: "bottom" | "left" | "right" | "center";
|
|
@@ -188,13 +193,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
188
193
|
fillBody: boolean;
|
|
189
194
|
bodyStyle: import('vue').CSSProperties;
|
|
190
195
|
appendTo: HTMLElement | undefined;
|
|
191
|
-
showModal: boolean | undefined;
|
|
192
196
|
closeOnMask: boolean;
|
|
193
197
|
showScrollbar: boolean;
|
|
194
198
|
draggable: boolean;
|
|
195
199
|
positionComputedElem: string;
|
|
196
200
|
bodyLocked: boolean;
|
|
197
201
|
hiddenShadow: boolean;
|
|
202
|
+
popupTransition: string | boolean;
|
|
198
203
|
}>;
|
|
199
204
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
200
205
|
export default _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ResizeDirection } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
containerRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
14
|
+
width: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
height: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
minWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
minHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
maxWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
maxHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
handleSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
showHandles: import('vue-types').VueTypeDef<boolean | ResizeDirection[]> & {
|
|
39
|
+
default: boolean | (() => ResizeDirection[]);
|
|
40
|
+
};
|
|
41
|
+
storageKey: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
resize: (arg: import('./type').ResizeEventData) => void;
|
|
46
|
+
"resize-start": (arg: import('./type').ResizeEventData) => void;
|
|
47
|
+
"resize-end": (arg: import('./type').ResizeEventData) => void;
|
|
48
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
49
|
+
width: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
height: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
minWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
minHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
maxWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
maxHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
handleSize: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
showHandles: import('vue-types').VueTypeDef<boolean | ResizeDirection[]> & {
|
|
74
|
+
default: boolean | (() => ResizeDirection[]);
|
|
75
|
+
};
|
|
76
|
+
storageKey: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
}>>, {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
height: number;
|
|
82
|
+
maxHeight: number;
|
|
83
|
+
maxWidth: number;
|
|
84
|
+
minHeight: number;
|
|
85
|
+
minWidth: number;
|
|
86
|
+
width: number;
|
|
87
|
+
handleSize: number;
|
|
88
|
+
showHandles: boolean | ResizeDirection[];
|
|
89
|
+
storageKey: string;
|
|
90
|
+
}>;
|
|
91
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
92
|
+
export default _default;
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$scopedSlots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 拖拽方向
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ResizeDirection {
|
|
5
|
+
/** 上 */
|
|
6
|
+
Top = "top",
|
|
7
|
+
/** 右 */
|
|
8
|
+
Right = "right",
|
|
9
|
+
/** 下 */
|
|
10
|
+
Bottom = "bottom",
|
|
11
|
+
/** 左 */
|
|
12
|
+
Left = "left",
|
|
13
|
+
/** 左上 */
|
|
14
|
+
TopLeft = "top-left",
|
|
15
|
+
/** 右上 */
|
|
16
|
+
TopRight = "top-right",
|
|
17
|
+
/** 左下 */
|
|
18
|
+
BottomLeft = "bottom-left",
|
|
19
|
+
/** 右下 */
|
|
20
|
+
BottomRight = "bottom-right"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 尺寸变化事件数据
|
|
24
|
+
*/
|
|
25
|
+
export interface ResizeEventData {
|
|
26
|
+
/** 宽度 */
|
|
27
|
+
width: number;
|
|
28
|
+
/** 高度 */
|
|
29
|
+
height: number;
|
|
30
|
+
/** 拖拽方向 */
|
|
31
|
+
direction: ResizeDirection;
|
|
32
|
+
/** 原始事件 */
|
|
33
|
+
event: MouseEvent;
|
|
34
|
+
}
|