cleek 2.3.1 → 2.3.4
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 +17 -12
- package/dist/cleek.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -30,6 +30,9 @@ var defaultCleekOptions = {
|
|
|
30
30
|
},
|
|
31
31
|
button: {
|
|
32
32
|
type: "filled"
|
|
33
|
+
},
|
|
34
|
+
img: {
|
|
35
|
+
basePath: ""
|
|
33
36
|
}
|
|
34
37
|
};
|
|
35
38
|
var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -11580,8 +11583,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11580
11583
|
const realButtonType = computed$2(() => {
|
|
11581
11584
|
if (props.type)
|
|
11582
11585
|
return props.type;
|
|
11583
|
-
if (isMounted.value
|
|
11584
|
-
|
|
11586
|
+
if (isMounted.value) {
|
|
11587
|
+
console.log("$cleekOptions", $cleekOptions);
|
|
11588
|
+
if ($cleekOptions)
|
|
11589
|
+
return $cleekOptions.button.type;
|
|
11590
|
+
}
|
|
11585
11591
|
return defaultButtonType;
|
|
11586
11592
|
});
|
|
11587
11593
|
const computedClass = computed$2(() => {
|
|
@@ -11615,9 +11621,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11615
11621
|
onMounted(() => {
|
|
11616
11622
|
getCurrentInstance().ctx;
|
|
11617
11623
|
$cleekOptions = functions.getCleekOptions(getCurrentInstance);
|
|
11618
|
-
|
|
11619
|
-
isMounted.value = true;
|
|
11620
|
-
}, 3e3);
|
|
11624
|
+
isMounted.value = true;
|
|
11621
11625
|
});
|
|
11622
11626
|
return (_ctx, _cache) => {
|
|
11623
11627
|
return openBlock(), createElementBlock("button", {
|
|
@@ -11646,7 +11650,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11646
11650
|
};
|
|
11647
11651
|
}
|
|
11648
11652
|
});
|
|
11649
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
11653
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5fd48ae3"]]);
|
|
11650
11654
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11651
11655
|
const _hoisted_1$f = ["for"];
|
|
11652
11656
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -13633,7 +13637,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13633
13637
|
setup(__props) {
|
|
13634
13638
|
const props = __props;
|
|
13635
13639
|
const altNeeded = ref(false);
|
|
13636
|
-
let
|
|
13640
|
+
let $cleekOptions;
|
|
13641
|
+
const isMounted = ref(false);
|
|
13637
13642
|
const isFullPath = computed$2(() => {
|
|
13638
13643
|
return props.src.substring(0, 4) === "http";
|
|
13639
13644
|
});
|
|
@@ -13696,15 +13701,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13696
13701
|
}
|
|
13697
13702
|
function getImg(src) {
|
|
13698
13703
|
let path = "";
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
path = $cleekOptions.imgPath;
|
|
13704
|
+
if (isMounted.value) {
|
|
13705
|
+
if ($cleekOptions)
|
|
13706
|
+
path = $cleekOptions.img.basePath;
|
|
13703
13707
|
}
|
|
13704
13708
|
return `${path}${src}`;
|
|
13705
13709
|
}
|
|
13706
13710
|
onMounted(() => {
|
|
13707
13711
|
getCurrentInstance().ctx;
|
|
13712
|
+
$cleekOptions = functions.getCleekOptions(getCurrentInstance);
|
|
13708
13713
|
isMounted.value = true;
|
|
13709
13714
|
});
|
|
13710
13715
|
return (_ctx, _cache) => {
|
|
@@ -13723,7 +13728,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13723
13728
|
};
|
|
13724
13729
|
}
|
|
13725
13730
|
});
|
|
13726
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
13731
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b766b320"]]);
|
|
13727
13732
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13728
13733
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-a5198d80"), n = n(), popScopeId(), n);
|
|
13729
13734
|
const _hoisted_1$5 = ["onKeyup"];
|