cleek 2.0.1 → 2.0.2
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/cleek.es.js +6 -2
- package/dist/cleek.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -11453,7 +11453,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11453
11453
|
const props = __props;
|
|
11454
11454
|
const altNeeded = ref(false);
|
|
11455
11455
|
let context;
|
|
11456
|
+
let isMounted = ref(false);
|
|
11456
11457
|
const imageUrl = computed(() => {
|
|
11458
|
+
if (!isMounted.value)
|
|
11459
|
+
return "";
|
|
11457
11460
|
if (props.isFullPath)
|
|
11458
11461
|
return props.src;
|
|
11459
11462
|
return getImg(props.src);
|
|
@@ -11512,12 +11515,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11512
11515
|
function getImg(src) {
|
|
11513
11516
|
let path = "";
|
|
11514
11517
|
console.log("context.$cleekOptions", context.$cleekOptions);
|
|
11515
|
-
if (context.$cleekOptions
|
|
11518
|
+
if (context.$cleekOptions)
|
|
11516
11519
|
path = context.$cleekOptions.imgPath;
|
|
11517
11520
|
return `${path}${src}`;
|
|
11518
11521
|
}
|
|
11519
11522
|
onMounted(() => {
|
|
11520
11523
|
context = getCurrentInstance().ctx;
|
|
11524
|
+
isMounted.value = true;
|
|
11521
11525
|
});
|
|
11522
11526
|
return (_ctx, _cache) => {
|
|
11523
11527
|
return openBlock(), createElementBlock("div", {
|
|
@@ -11534,7 +11538,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11534
11538
|
};
|
|
11535
11539
|
}
|
|
11536
11540
|
});
|
|
11537
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
11541
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-78f4ca32"]]);
|
|
11538
11542
|
const _hoisted_1$d = ["for"];
|
|
11539
11543
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11540
11544
|
return openBlock(), createElementBlock("label", {
|