@deot/vc-components 1.0.3 → 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 +5 -4
- package/dist/index.iife.js +5 -4
- package/dist/index.js +5 -4
- package/dist/index.umd.cjs +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3163,14 +3163,14 @@ const Image = /* @__PURE__ */ vue.defineComponent({
|
|
|
3163
3163
|
return vue.createVNode("div", {
|
|
3164
3164
|
"style": its.value.style,
|
|
3165
3165
|
"class": [its.value.class, 'vc-image']
|
|
3166
|
-
}, [isLoading.value && slots.placeholder ? slots.placeholder() : vue.createVNode("div", {
|
|
3166
|
+
}, [isLoading.value && (slots.placeholder ? slots.placeholder() : vue.createVNode("div", {
|
|
3167
3167
|
"class": [{
|
|
3168
3168
|
'is-auto': isAuto.value
|
|
3169
3169
|
}, 'vc-image__placeholder'],
|
|
3170
3170
|
"style": pStyle.value
|
|
3171
|
-
}, null), !isLoading.value && isError.value && slots.error ? slots.error() : vue.createVNode("div", {
|
|
3171
|
+
}, null)), !isLoading.value && isError.value && (slots.error ? slots.error() : vue.createVNode("div", {
|
|
3172
3172
|
"class": "vc-image__error"
|
|
3173
|
-
}, [vue.createTextVNode("\u52A0\u8F7D\u5931\u8D25")]), !isLoading.value && !isError.value && vue.createVNode("img", vue.mergeProps({
|
|
3173
|
+
}, [vue.createTextVNode(" \u52A0\u8F7D\u5931\u8D25")])), !isLoading.value && !isError.value && vue.createVNode("img", vue.mergeProps({
|
|
3174
3174
|
"src": props.src,
|
|
3175
3175
|
"style": style.value,
|
|
3176
3176
|
"class": [{
|
|
@@ -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
|
@@ -7474,14 +7474,14 @@ var VcComponents = (function (exports, vue) {
|
|
|
7474
7474
|
return vue.createVNode("div", {
|
|
7475
7475
|
"style": its.value.style,
|
|
7476
7476
|
"class": [its.value.class, 'vc-image']
|
|
7477
|
-
}, [isLoading.value && slots.placeholder ? slots.placeholder() : vue.createVNode("div", {
|
|
7477
|
+
}, [isLoading.value && (slots.placeholder ? slots.placeholder() : vue.createVNode("div", {
|
|
7478
7478
|
"class": [{
|
|
7479
7479
|
'is-auto': isAuto.value
|
|
7480
7480
|
}, 'vc-image__placeholder'],
|
|
7481
7481
|
"style": pStyle.value
|
|
7482
|
-
}, null), !isLoading.value && isError.value && slots.error ? slots.error() : vue.createVNode("div", {
|
|
7482
|
+
}, null)), !isLoading.value && isError.value && (slots.error ? slots.error() : vue.createVNode("div", {
|
|
7483
7483
|
"class": "vc-image__error"
|
|
7484
|
-
}, [vue.createTextVNode("\u52A0\u8F7D\u5931\u8D25")]), !isLoading.value && !isError.value && vue.createVNode("img", vue.mergeProps({
|
|
7484
|
+
}, [vue.createTextVNode(" \u52A0\u8F7D\u5931\u8D25")])), !isLoading.value && !isError.value && vue.createVNode("img", vue.mergeProps({
|
|
7485
7485
|
"src": props.src,
|
|
7486
7486
|
"style": style.value,
|
|
7487
7487
|
"class": [{
|
|
@@ -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
|
@@ -3140,14 +3140,14 @@ const Image = /* @__PURE__ */ defineComponent({
|
|
|
3140
3140
|
return createVNode("div", {
|
|
3141
3141
|
"style": its.value.style,
|
|
3142
3142
|
"class": [its.value.class, 'vc-image']
|
|
3143
|
-
}, [isLoading.value && slots.placeholder ? slots.placeholder() : createVNode("div", {
|
|
3143
|
+
}, [isLoading.value && (slots.placeholder ? slots.placeholder() : createVNode("div", {
|
|
3144
3144
|
"class": [{
|
|
3145
3145
|
'is-auto': isAuto.value
|
|
3146
3146
|
}, 'vc-image__placeholder'],
|
|
3147
3147
|
"style": pStyle.value
|
|
3148
|
-
}, null), !isLoading.value && isError.value && slots.error ? slots.error() : createVNode("div", {
|
|
3148
|
+
}, null)), !isLoading.value && isError.value && (slots.error ? slots.error() : createVNode("div", {
|
|
3149
3149
|
"class": "vc-image__error"
|
|
3150
|
-
}, [createTextVNode("\u52A0\u8F7D\u5931\u8D25")]), !isLoading.value && !isError.value && createVNode("img", mergeProps({
|
|
3150
|
+
}, [createTextVNode(" \u52A0\u8F7D\u5931\u8D25")])), !isLoading.value && !isError.value && createVNode("img", mergeProps({
|
|
3151
3151
|
"src": props.src,
|
|
3152
3152
|
"style": style.value,
|
|
3153
3153
|
"class": [{
|
|
@@ -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
|
@@ -7477,14 +7477,14 @@
|
|
|
7477
7477
|
return vue.createVNode("div", {
|
|
7478
7478
|
"style": its.value.style,
|
|
7479
7479
|
"class": [its.value.class, 'vc-image']
|
|
7480
|
-
}, [isLoading.value && slots.placeholder ? slots.placeholder() : vue.createVNode("div", {
|
|
7480
|
+
}, [isLoading.value && (slots.placeholder ? slots.placeholder() : vue.createVNode("div", {
|
|
7481
7481
|
"class": [{
|
|
7482
7482
|
'is-auto': isAuto.value
|
|
7483
7483
|
}, 'vc-image__placeholder'],
|
|
7484
7484
|
"style": pStyle.value
|
|
7485
|
-
}, null), !isLoading.value && isError.value && slots.error ? slots.error() : vue.createVNode("div", {
|
|
7485
|
+
}, null)), !isLoading.value && isError.value && (slots.error ? slots.error() : vue.createVNode("div", {
|
|
7486
7486
|
"class": "vc-image__error"
|
|
7487
|
-
}, [vue.createTextVNode("\u52A0\u8F7D\u5931\u8D25")]), !isLoading.value && !isError.value && vue.createVNode("img", vue.mergeProps({
|
|
7487
|
+
}, [vue.createTextVNode(" \u52A0\u8F7D\u5931\u8D25")])), !isLoading.value && !isError.value && vue.createVNode("img", vue.mergeProps({
|
|
7488
7488
|
"src": props.src,
|
|
7489
7489
|
"style": style.value,
|
|
7490
7490
|
"class": [{
|
|
@@ -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
|
// 总长度
|