@deot/vc-components 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.cjs +2 -1
- package/dist/index.iife.js +2 -1
- package/dist/index.js +2 -1
- package/dist/index.umd.cjs +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8266,7 +8266,7 @@ const useTabs = (options = {}) => {
|
|
|
8266
8266
|
helperResize.Resize.on(options.wrapper.value, handleResize);
|
|
8267
8267
|
options.scrollToActive && vue.nextTick(options.scrollToActive);
|
|
8268
8268
|
});
|
|
8269
|
-
vue.
|
|
8269
|
+
vue.onBeforeUnmount(() => {
|
|
8270
8270
|
helperResize.Resize.off(options.wrapper.value, handleResize);
|
|
8271
8271
|
timer.value && clearTimeout(timer.value);
|
|
8272
8272
|
});
|
|
@@ -8357,6 +8357,7 @@ const Tabs = /* @__PURE__ */ vue.defineComponent({
|
|
|
8357
8357
|
* 刷新是否需要滚动条
|
|
8358
8358
|
*/
|
|
8359
8359
|
const refreshScroll = () => {
|
|
8360
|
+
if (!scroll.value) return;
|
|
8360
8361
|
// 容器
|
|
8361
8362
|
const boxWidth = scroll.value.offsetWidth;
|
|
8362
8363
|
// 总长度
|
package/dist/index.iife.js
CHANGED
|
@@ -13563,7 +13563,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
13563
13563
|
Resize.on(options.wrapper.value, handleResize);
|
|
13564
13564
|
options.scrollToActive && vue.nextTick(options.scrollToActive);
|
|
13565
13565
|
});
|
|
13566
|
-
vue.
|
|
13566
|
+
vue.onBeforeUnmount(() => {
|
|
13567
13567
|
Resize.off(options.wrapper.value, handleResize);
|
|
13568
13568
|
timer.value && clearTimeout(timer.value);
|
|
13569
13569
|
});
|
|
@@ -13654,6 +13654,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
13654
13654
|
* 刷新是否需要滚动条
|
|
13655
13655
|
*/
|
|
13656
13656
|
const refreshScroll = () => {
|
|
13657
|
+
if (!scroll.value) return;
|
|
13657
13658
|
// 容器
|
|
13658
13659
|
const boxWidth = scroll.value.offsetWidth;
|
|
13659
13660
|
// 总长度
|
package/dist/index.js
CHANGED
|
@@ -8243,7 +8243,7 @@ const useTabs = (options = {}) => {
|
|
|
8243
8243
|
Resize.on(options.wrapper.value, handleResize);
|
|
8244
8244
|
options.scrollToActive && nextTick(options.scrollToActive);
|
|
8245
8245
|
});
|
|
8246
|
-
|
|
8246
|
+
onBeforeUnmount(() => {
|
|
8247
8247
|
Resize.off(options.wrapper.value, handleResize);
|
|
8248
8248
|
timer.value && clearTimeout(timer.value);
|
|
8249
8249
|
});
|
|
@@ -8334,6 +8334,7 @@ const Tabs = /* @__PURE__ */ defineComponent({
|
|
|
8334
8334
|
* 刷新是否需要滚动条
|
|
8335
8335
|
*/
|
|
8336
8336
|
const refreshScroll = () => {
|
|
8337
|
+
if (!scroll.value) return;
|
|
8337
8338
|
// 容器
|
|
8338
8339
|
const boxWidth = scroll.value.offsetWidth;
|
|
8339
8340
|
// 总长度
|
package/dist/index.umd.cjs
CHANGED
|
@@ -13566,7 +13566,7 @@
|
|
|
13566
13566
|
Resize.on(options.wrapper.value, handleResize);
|
|
13567
13567
|
options.scrollToActive && vue.nextTick(options.scrollToActive);
|
|
13568
13568
|
});
|
|
13569
|
-
vue.
|
|
13569
|
+
vue.onBeforeUnmount(() => {
|
|
13570
13570
|
Resize.off(options.wrapper.value, handleResize);
|
|
13571
13571
|
timer.value && clearTimeout(timer.value);
|
|
13572
13572
|
});
|
|
@@ -13657,6 +13657,7 @@
|
|
|
13657
13657
|
* 刷新是否需要滚动条
|
|
13658
13658
|
*/
|
|
13659
13659
|
const refreshScroll = () => {
|
|
13660
|
+
if (!scroll.value) return;
|
|
13660
13661
|
// 容器
|
|
13661
13662
|
const boxWidth = scroll.value.offsetWidth;
|
|
13662
13663
|
// 总长度
|