@opentinyvue/vue-float-button 3.21.0 → 3.22.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/lib/index.js +5 -5
- package/package.json +9 -8
- package/src/index.d.ts +7 -7
- package/src/pc.vue.d.ts +21 -21
package/lib/index.js
CHANGED
|
@@ -7,9 +7,9 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import PcTemplate from "./pc.js";
|
|
12
|
-
import {
|
|
12
|
+
import { isServer } from "@opentinyvue/utils";
|
|
13
13
|
var template = function template2(mode) {
|
|
14
14
|
var _process$env;
|
|
15
15
|
typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
@@ -93,8 +93,8 @@ var floatButtonProps = _extends({}, $props, {
|
|
|
93
93
|
},
|
|
94
94
|
// 设置需要监听其滚动事件的元素
|
|
95
95
|
element: {
|
|
96
|
-
default:
|
|
97
|
-
type:
|
|
96
|
+
default: !isServer ? document.body : null,
|
|
97
|
+
type: !isServer ? HTMLElement : Object
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
var FloatButton = defineComponent({
|
|
@@ -113,7 +113,7 @@ var FloatButton = defineComponent({
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
|
-
var version = "3.
|
|
116
|
+
var version = "3.22.0";
|
|
117
117
|
FloatButton.install = function(Vue) {
|
|
118
118
|
Vue.component(FloatButton.name, FloatButton);
|
|
119
119
|
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-float-button",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.22.0",
|
|
4
5
|
"description": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
5
8
|
"main": "./lib/index.js",
|
|
6
9
|
"module": "./lib/index.js",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"type": "module",
|
|
9
10
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/
|
|
11
|
-
"@opentinyvue/vue-
|
|
12
|
-
"@opentinyvue/vue-
|
|
13
|
-
"@opentinyvue/vue-
|
|
11
|
+
"@opentinyvue/utils": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
15
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
14
16
|
},
|
|
15
|
-
"license": "MIT",
|
|
16
17
|
"types": "index.d.ts",
|
|
17
18
|
"scripts": {
|
|
18
19
|
"build": "pnpm -w build:ui $npm_package_name",
|
package/src/index.d.ts
CHANGED
|
@@ -247,24 +247,24 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
247
247
|
}>>, {
|
|
248
248
|
disabled: boolean;
|
|
249
249
|
icon: string | Record<string, any>;
|
|
250
|
-
|
|
251
|
-
size: string;
|
|
252
|
-
left: string;
|
|
253
|
-
right: string;
|
|
250
|
+
href: string;
|
|
254
251
|
top: string;
|
|
252
|
+
right: string;
|
|
255
253
|
bottom: string;
|
|
254
|
+
left: string;
|
|
255
|
+
size: string;
|
|
256
|
+
type: string;
|
|
256
257
|
target: string;
|
|
258
|
+
element: any;
|
|
259
|
+
loading: boolean;
|
|
257
260
|
tiny_mode_root: boolean;
|
|
258
261
|
trigger: string;
|
|
259
262
|
resetTime: number;
|
|
260
|
-
href: string;
|
|
261
|
-
loading: boolean;
|
|
262
263
|
description: string;
|
|
263
264
|
shape: string;
|
|
264
265
|
open: boolean;
|
|
265
266
|
tooltip: string;
|
|
266
267
|
backTop: boolean;
|
|
267
268
|
visibilityHeight: number;
|
|
268
|
-
element: any;
|
|
269
269
|
}, {}>;
|
|
270
270
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -2,13 +2,16 @@ import type { IFloatButtonApi } from '@opentinyvue/vue-renderless/types/float-bu
|
|
|
2
2
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
3
|
disabled?: any;
|
|
4
4
|
icon?: any;
|
|
5
|
-
|
|
6
|
-
size?: any;
|
|
7
|
-
left?: any;
|
|
8
|
-
right?: any;
|
|
5
|
+
href?: any;
|
|
9
6
|
top?: any;
|
|
7
|
+
right?: any;
|
|
10
8
|
bottom?: any;
|
|
9
|
+
left?: any;
|
|
10
|
+
size?: any;
|
|
11
|
+
type?: any;
|
|
11
12
|
target?: any;
|
|
13
|
+
element?: any;
|
|
14
|
+
loading?: any;
|
|
12
15
|
tiny_mode?: any;
|
|
13
16
|
tiny_mode_root?: any;
|
|
14
17
|
tiny_template?: any;
|
|
@@ -18,25 +21,25 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
18
21
|
tiny_chart_theme?: any;
|
|
19
22
|
trigger?: any;
|
|
20
23
|
resetTime?: any;
|
|
21
|
-
href?: any;
|
|
22
|
-
loading?: any;
|
|
23
24
|
description?: any;
|
|
24
25
|
shape?: any;
|
|
25
26
|
open?: any;
|
|
26
27
|
tooltip?: any;
|
|
27
28
|
backTop?: any;
|
|
28
29
|
visibilityHeight?: any;
|
|
29
|
-
element?: any;
|
|
30
30
|
}>, IFloatButtonApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "mouseout" | "mouseover")[], "click" | "mouseout" | "mouseover", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
31
|
disabled?: any;
|
|
32
32
|
icon?: any;
|
|
33
|
-
|
|
34
|
-
size?: any;
|
|
35
|
-
left?: any;
|
|
36
|
-
right?: any;
|
|
33
|
+
href?: any;
|
|
37
34
|
top?: any;
|
|
35
|
+
right?: any;
|
|
38
36
|
bottom?: any;
|
|
37
|
+
left?: any;
|
|
38
|
+
size?: any;
|
|
39
|
+
type?: any;
|
|
39
40
|
target?: any;
|
|
41
|
+
element?: any;
|
|
42
|
+
loading?: any;
|
|
40
43
|
tiny_mode?: any;
|
|
41
44
|
tiny_mode_root?: any;
|
|
42
45
|
tiny_template?: any;
|
|
@@ -46,15 +49,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
46
49
|
tiny_chart_theme?: any;
|
|
47
50
|
trigger?: any;
|
|
48
51
|
resetTime?: any;
|
|
49
|
-
href?: any;
|
|
50
|
-
loading?: any;
|
|
51
52
|
description?: any;
|
|
52
53
|
shape?: any;
|
|
53
54
|
open?: any;
|
|
54
55
|
tooltip?: any;
|
|
55
56
|
backTop?: any;
|
|
56
57
|
visibilityHeight?: any;
|
|
57
|
-
element?: any;
|
|
58
58
|
}>>> & {
|
|
59
59
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
60
60
|
onMouseout?: ((...args: any[]) => any) | undefined;
|
|
@@ -62,13 +62,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
62
62
|
}, {
|
|
63
63
|
readonly disabled?: any;
|
|
64
64
|
readonly icon?: any;
|
|
65
|
-
readonly
|
|
66
|
-
readonly size?: any;
|
|
67
|
-
readonly left?: any;
|
|
68
|
-
readonly right?: any;
|
|
65
|
+
readonly href?: any;
|
|
69
66
|
readonly top?: any;
|
|
67
|
+
readonly right?: any;
|
|
70
68
|
readonly bottom?: any;
|
|
69
|
+
readonly left?: any;
|
|
70
|
+
readonly size?: any;
|
|
71
|
+
readonly type?: any;
|
|
71
72
|
readonly target?: any;
|
|
73
|
+
readonly element?: any;
|
|
74
|
+
readonly loading?: any;
|
|
72
75
|
readonly tiny_mode?: any;
|
|
73
76
|
readonly tiny_mode_root?: any;
|
|
74
77
|
readonly tiny_template?: any;
|
|
@@ -78,14 +81,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
78
81
|
readonly tiny_chart_theme?: any;
|
|
79
82
|
readonly trigger?: any;
|
|
80
83
|
readonly resetTime?: any;
|
|
81
|
-
readonly href?: any;
|
|
82
|
-
readonly loading?: any;
|
|
83
84
|
readonly description?: any;
|
|
84
85
|
readonly shape?: any;
|
|
85
86
|
readonly open?: any;
|
|
86
87
|
readonly tooltip?: any;
|
|
87
88
|
readonly backTop?: any;
|
|
88
89
|
readonly visibilityHeight?: any;
|
|
89
|
-
readonly element?: any;
|
|
90
90
|
}, {}>;
|
|
91
91
|
export default _default;
|