@deot/vc 1.0.4 → 1.0.5
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/dist/index.iife.js +2 -1
- package/dist/index.umd.cjs +2 -1
- package/package.json +4 -4
package/dist/index.iife.js
CHANGED
|
@@ -13003,7 +13003,7 @@ var Vc = (function (exports, vue) {
|
|
|
13003
13003
|
Resize.on(options.wrapper.value, handleResize);
|
|
13004
13004
|
options.scrollToActive && vue.nextTick(options.scrollToActive);
|
|
13005
13005
|
});
|
|
13006
|
-
vue.
|
|
13006
|
+
vue.onBeforeUnmount(() => {
|
|
13007
13007
|
Resize.off(options.wrapper.value, handleResize);
|
|
13008
13008
|
timer.value && clearTimeout(timer.value);
|
|
13009
13009
|
});
|
|
@@ -13086,6 +13086,7 @@ var Vc = (function (exports, vue) {
|
|
|
13086
13086
|
const nav = vue.ref(null);
|
|
13087
13087
|
let tabs;
|
|
13088
13088
|
const refreshScroll = () => {
|
|
13089
|
+
if (!scroll.value) return;
|
|
13089
13090
|
const boxWidth = scroll.value.offsetWidth;
|
|
13090
13091
|
const totalWidth = nav.value.offsetWidth;
|
|
13091
13092
|
if (boxWidth < totalWidth) {
|
package/dist/index.umd.cjs
CHANGED
|
@@ -13006,7 +13006,7 @@
|
|
|
13006
13006
|
Resize.on(options.wrapper.value, handleResize);
|
|
13007
13007
|
options.scrollToActive && vue.nextTick(options.scrollToActive);
|
|
13008
13008
|
});
|
|
13009
|
-
vue.
|
|
13009
|
+
vue.onBeforeUnmount(() => {
|
|
13010
13010
|
Resize.off(options.wrapper.value, handleResize);
|
|
13011
13011
|
timer.value && clearTimeout(timer.value);
|
|
13012
13012
|
});
|
|
@@ -13089,6 +13089,7 @@
|
|
|
13089
13089
|
const nav = vue.ref(null);
|
|
13090
13090
|
let tabs;
|
|
13091
13091
|
const refreshScroll = () => {
|
|
13092
|
+
if (!scroll.value) return;
|
|
13092
13093
|
const boxWidth = scroll.value.offsetWidth;
|
|
13093
13094
|
const totalWidth = nav.value.offsetWidth;
|
|
13094
13095
|
if (boxWidth < totalWidth) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/vc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@deot/vc-components": "^1.0.
|
|
23
|
-
"@deot/vc-hooks": "^1.0.
|
|
24
|
-
"@deot/vc-shared": "^1.0.
|
|
22
|
+
"@deot/vc-components": "^1.0.5",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.5",
|
|
24
|
+
"@deot/vc-shared": "^1.0.5"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|