Skip to content

Commit 229c437

Browse files
committed
fix: prevent undefined style bindings
1 parent 455cafc commit 229c437

4 files changed

+13
-7
lines changed

dist/vue-infinite-loading.esm.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ var script = /* #__PURE__ */defineComponent({
449449
!this.$slots[name] && !config.slots[key].render || this.$slots[name] && this.$slots[name]()[0].type === Text) {
450450
// only apply default styles for pure text slot
451451
styles[key] = SLOT_STYLES;
452+
} else {
453+
styles[key] = {};
452454
}
453455
});
454456
return styles;
@@ -680,7 +682,7 @@ var script = /* #__PURE__ */defineComponent({
680682

681683
});
682684

683-
pushScopeId("data-v-ce57e962");
685+
pushScopeId("data-v-7456bf16");
684686

685687
const _hoisted_1 = {
686688
class: "infinite-loading-container"
@@ -733,11 +735,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
733735
}, null, 8, _hoisted_3)], 64))])], 4), [[vShow, _ctx.isShowError]])]);
734736
}
735737

736-
var css_248z = ".infinite-loading-container[data-v-ce57e962] {\n clear: both;\n text-align: center;\n}\n.infinite-loading-container[data-v-ce57e962] *[class^=loading-] {\n display: inline-block;\n margin: 5px 0;\n width: 28px;\n height: 28px;\n font-size: 28px;\n line-height: 28px;\n border-radius: 50%;\n}\n.btn-try-infinite[data-v-ce57e962] {\n margin-top: 5px;\n padding: 5px 10px;\n color: #999;\n font-size: 14px;\n line-height: 1;\n background: transparent;\n border: 1px solid #ccc;\n border-radius: 3px;\n outline: none;\n cursor: pointer;\n}\n.btn-try-infinite[data-v-ce57e962]:not(:active):hover {\n opacity: 0.8;\n}\n";
738+
var css_248z = ".infinite-loading-container[data-v-7456bf16] {\n clear: both;\n text-align: center;\n}\n.infinite-loading-container[data-v-7456bf16] *[class^=loading-] {\n display: inline-block;\n margin: 5px 0;\n width: 28px;\n height: 28px;\n font-size: 28px;\n line-height: 28px;\n border-radius: 50%;\n}\n.btn-try-infinite[data-v-7456bf16] {\n margin-top: 5px;\n padding: 5px 10px;\n color: #999;\n font-size: 14px;\n line-height: 1;\n background: transparent;\n border: 1px solid #ccc;\n border-radius: 3px;\n outline: none;\n cursor: pointer;\n}\n.btn-try-infinite[data-v-7456bf16]:not(:active):hover {\n opacity: 0.8;\n}\n";
737739
styleInject(css_248z);
738740

739741
script.render = render;
740-
script.__scopeId = "data-v-ce57e962";
742+
script.__scopeId = "data-v-7456bf16";
741743

742744
// Import vue component
743745
// IIFE injects install function into component, allowing component

0 commit comments

Comments
 (0)