@opentinyvue/vue-float-button 2.21.0 → 2.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/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 = "2.
|
|
116
|
+
var version = "2.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": "2.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": "~2.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~2.22.0",
|
|
13
|
+
"@opentinyvue/vue-icon": "~2.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",
|