cleek 2.8.0 → 2.8.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 +69 -25
- package/dist/cleek.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -47158,7 +47158,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent$1({
|
|
|
47158
47158
|
} else if (props.color && hooks9.isColorTemplateVariable(props.color)) {
|
|
47159
47159
|
classes.push(`ck-component__color-background--${props.color}`);
|
|
47160
47160
|
}
|
|
47161
|
-
console.log("TAMA\xD1O", props.icon, props.size);
|
|
47162
47161
|
if (props.size)
|
|
47163
47162
|
classes.push(`ck-icon__cleek-small`);
|
|
47164
47163
|
if (props.size === "m")
|
|
@@ -47190,7 +47189,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent$1({
|
|
|
47190
47189
|
};
|
|
47191
47190
|
}
|
|
47192
47191
|
});
|
|
47193
|
-
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
47192
|
+
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-f10bef6e"]]);
|
|
47194
47193
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
47195
47194
|
const _sfc_main$t = {};
|
|
47196
47195
|
const _hoisted_1$m = { class: "ck-tr" };
|
|
@@ -49630,6 +49629,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
49630
49629
|
list.push(`align--${props.align}`);
|
|
49631
49630
|
return list;
|
|
49632
49631
|
});
|
|
49632
|
+
const currentStepGroup = computed$3(() => {
|
|
49633
|
+
if (props.maxStep === 1)
|
|
49634
|
+
return "";
|
|
49635
|
+
if (currentStep.value === 1)
|
|
49636
|
+
return "left";
|
|
49637
|
+
if (currentStep.value === props.maxStep)
|
|
49638
|
+
return "right";
|
|
49639
|
+
return "center";
|
|
49640
|
+
});
|
|
49633
49641
|
function goToPreviousStep() {
|
|
49634
49642
|
if (currentStep.value <= 1)
|
|
49635
49643
|
return;
|
|
@@ -49648,25 +49656,64 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
49648
49656
|
createVNode$1(_component_ck_button, {
|
|
49649
49657
|
group: "left",
|
|
49650
49658
|
icon: "arrow-left",
|
|
49659
|
+
type: unref$2(currentStep) === 1 ? "flat" : "",
|
|
49651
49660
|
onClick: _cache[0] || (_cache[0] = ($event) => goToPreviousStep())
|
|
49652
|
-
}),
|
|
49653
|
-
(openBlock$1(
|
|
49654
|
-
|
|
49655
|
-
|
|
49656
|
-
|
|
49657
|
-
|
|
49658
|
-
|
|
49659
|
-
|
|
49660
|
-
|
|
49661
|
-
|
|
49662
|
-
|
|
49663
|
-
|
|
49664
|
-
|
|
49661
|
+
}, null, 8, ["type"]),
|
|
49662
|
+
unref$2(currentStep) - 2 >= 1 ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49663
|
+
key: 0,
|
|
49664
|
+
group: "center",
|
|
49665
|
+
onClick: _cache[1] || (_cache[1] = ($event) => currentStep.value = unref$2(currentStep) - 2)
|
|
49666
|
+
}, {
|
|
49667
|
+
default: withCtx$1(() => [
|
|
49668
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) - 2), 1)
|
|
49669
|
+
]),
|
|
49670
|
+
_: 1
|
|
49671
|
+
})) : createCommentVNode$1("", true),
|
|
49672
|
+
unref$2(currentStep) - 1 >= 1 ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49673
|
+
key: 1,
|
|
49674
|
+
group: "center",
|
|
49675
|
+
onClick: _cache[2] || (_cache[2] = ($event) => currentStep.value = unref$2(currentStep) - 1)
|
|
49676
|
+
}, {
|
|
49677
|
+
default: withCtx$1(() => [
|
|
49678
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) - 1), 1)
|
|
49679
|
+
]),
|
|
49680
|
+
_: 1
|
|
49681
|
+
})) : createCommentVNode$1("", true),
|
|
49682
|
+
createVNode$1(_component_ck_button, {
|
|
49683
|
+
type: "filled",
|
|
49684
|
+
group: unref$2(currentStepGroup)
|
|
49685
|
+
}, {
|
|
49686
|
+
default: withCtx$1(() => [
|
|
49687
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep)), 1)
|
|
49688
|
+
]),
|
|
49689
|
+
_: 1
|
|
49690
|
+
}, 8, ["group"]),
|
|
49691
|
+
unref$2(currentStep) + 1 <= __props.maxStep ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49692
|
+
key: 2,
|
|
49693
|
+
group: "center",
|
|
49694
|
+
onClick: _cache[3] || (_cache[3] = ($event) => currentStep.value = unref$2(currentStep) + 1)
|
|
49695
|
+
}, {
|
|
49696
|
+
default: withCtx$1(() => [
|
|
49697
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) + 1), 1)
|
|
49698
|
+
]),
|
|
49699
|
+
_: 1
|
|
49700
|
+
})) : createCommentVNode$1("", true),
|
|
49701
|
+
unref$2(currentStep) + 2 <= __props.maxStep ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49702
|
+
key: 3,
|
|
49703
|
+
group: "center",
|
|
49704
|
+
onClick: _cache[4] || (_cache[4] = ($event) => currentStep.value = unref$2(currentStep) + 2)
|
|
49705
|
+
}, {
|
|
49706
|
+
default: withCtx$1(() => [
|
|
49707
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) + 2), 1)
|
|
49708
|
+
]),
|
|
49709
|
+
_: 1
|
|
49710
|
+
})) : createCommentVNode$1("", true),
|
|
49665
49711
|
createVNode$1(_component_ck_button, {
|
|
49666
49712
|
group: "right",
|
|
49667
49713
|
icon: "arrow-right",
|
|
49668
|
-
|
|
49669
|
-
|
|
49714
|
+
type: unref$2(currentStep) === __props.maxStep ? "flat" : "",
|
|
49715
|
+
onClick: _cache[5] || (_cache[5] = ($event) => goToNextStep())
|
|
49716
|
+
}, null, 8, ["type"])
|
|
49670
49717
|
], 2);
|
|
49671
49718
|
};
|
|
49672
49719
|
}
|
|
@@ -58497,7 +58544,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
58497
58544
|
static: { type: Boolean },
|
|
58498
58545
|
dynamic: { type: Boolean }
|
|
58499
58546
|
},
|
|
58500
|
-
|
|
58547
|
+
emits: ["click"],
|
|
58548
|
+
setup(__props, { emit: emits }) {
|
|
58501
58549
|
const props = __props;
|
|
58502
58550
|
let cleekOptions2 = ref();
|
|
58503
58551
|
const altNeeded = ref(false);
|
|
@@ -58563,10 +58611,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
58563
58611
|
return props.borderColor;
|
|
58564
58612
|
return globalVariables.defaultImgBorderColor;
|
|
58565
58613
|
});
|
|
58566
|
-
function clickImg() {
|
|
58567
|
-
if (props.zoom)
|
|
58568
|
-
;
|
|
58569
|
-
}
|
|
58570
58614
|
function getImg(src) {
|
|
58571
58615
|
var _a, _b, _c, _d, _e;
|
|
58572
58616
|
let basePath = (_a = cleekOptions2.value) == null ? void 0 : _a.img.basePath;
|
|
@@ -58586,7 +58630,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
58586
58630
|
return openBlock$1(), createElementBlock$1("div", {
|
|
58587
58631
|
class: normalizeClass$1(["ck-img", unref$2(computedClass)]),
|
|
58588
58632
|
style: normalizeStyle$1(unref$2(computedStyle)),
|
|
58589
|
-
onClick: _cache[1] || (_cache[1] = ($event) =>
|
|
58633
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emits("click", $event))
|
|
58590
58634
|
}, [
|
|
58591
58635
|
createElementVNode("img", {
|
|
58592
58636
|
src: unref$2(imageUrl),
|
|
@@ -58598,7 +58642,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
58598
58642
|
};
|
|
58599
58643
|
}
|
|
58600
58644
|
});
|
|
58601
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
58645
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-0310a72e"]]);
|
|
58602
58646
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
58603
58647
|
const _withScopeId$2 = (n) => (pushScopeId$1("data-v-494ed67e"), n = n(), popScopeId$1(), n);
|
|
58604
58648
|
const _hoisted_1$8 = ["onKeyup"];
|
|
@@ -59102,7 +59146,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
59102
59146
|
};
|
|
59103
59147
|
}
|
|
59104
59148
|
});
|
|
59105
|
-
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
59149
|
+
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9c00736c"]]);
|
|
59106
59150
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
59107
59151
|
const _withScopeId$1 = (n) => (pushScopeId$1("data-v-7400e90e"), n = n(), popScopeId$1(), n);
|
|
59108
59152
|
const _hoisted_1$5 = ["disabled"];
|