cleek 2.7.20 → 2.8.1
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 +81 -21
- package/dist/cleek.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -3799,7 +3799,8 @@ const cleekOptions = {
|
|
|
3799
3799
|
button: {
|
|
3800
3800
|
type: "outlined",
|
|
3801
3801
|
layout: "base",
|
|
3802
|
-
backgroundColor: "transparent"
|
|
3802
|
+
backgroundColor: "transparent",
|
|
3803
|
+
textColor: ""
|
|
3803
3804
|
},
|
|
3804
3805
|
div: {
|
|
3805
3806
|
gap: 0
|
|
@@ -47383,6 +47384,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
|
|
|
47383
47384
|
isLoading: { type: Boolean },
|
|
47384
47385
|
type: null,
|
|
47385
47386
|
color: null,
|
|
47387
|
+
textColor: null,
|
|
47386
47388
|
backgroundColor: null,
|
|
47387
47389
|
align: null,
|
|
47388
47390
|
size: null,
|
|
@@ -47420,6 +47422,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
|
|
|
47420
47422
|
return cleekOptions2.value.button.backgroundColor;
|
|
47421
47423
|
return defaultBackgroundColor;
|
|
47422
47424
|
});
|
|
47425
|
+
const realTextColor = computed$3(() => {
|
|
47426
|
+
if (props.textColor)
|
|
47427
|
+
return props.textColor;
|
|
47428
|
+
if (cleekOptions2.value && !props.type)
|
|
47429
|
+
return cleekOptions2.value.button.textColor;
|
|
47430
|
+
return "";
|
|
47431
|
+
});
|
|
47423
47432
|
const computedClass = computed$3(() => {
|
|
47424
47433
|
var _a;
|
|
47425
47434
|
const list = [];
|
|
@@ -47435,6 +47444,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
|
|
|
47435
47444
|
if (realBackgroundColor.value !== defaultBackgroundColor && hooks9.isColorTemplateVariable(realBackgroundColor.value)) {
|
|
47436
47445
|
list.push(`ck-component__bg-color--${realBackgroundColor.value}`);
|
|
47437
47446
|
}
|
|
47447
|
+
if (realTextColor.value && hooks9.isColorTemplateVariable(realTextColor.value)) {
|
|
47448
|
+
list.push(`ck-component__color--${realTextColor.value}`);
|
|
47449
|
+
}
|
|
47438
47450
|
const align = props.align || defaultAlign;
|
|
47439
47451
|
if (align === "center" || align === "right") {
|
|
47440
47452
|
list.push(`ck-button__align--${props.align}`);
|
|
@@ -47450,7 +47462,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
|
|
|
47450
47462
|
return list;
|
|
47451
47463
|
});
|
|
47452
47464
|
const computedStyle = computed$3(() => {
|
|
47453
|
-
var _a, _b;
|
|
47454
47465
|
const list = [];
|
|
47455
47466
|
let isWidthDefined = false;
|
|
47456
47467
|
if (props.widthBreaks) {
|
|
@@ -47460,12 +47471,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
|
|
|
47460
47471
|
list.push({ width });
|
|
47461
47472
|
}
|
|
47462
47473
|
}
|
|
47474
|
+
if (realTextColor.value && !hooks9.isColorTemplateVariable(realTextColor.value)) {
|
|
47475
|
+
list.push({ color: realTextColor.value });
|
|
47476
|
+
}
|
|
47463
47477
|
if (props.width && !isWidthDefined)
|
|
47464
47478
|
list.push({ width: props.width });
|
|
47465
47479
|
if (realBackgroundColor.value !== defaultBackgroundColor && !hooks9.isColorTemplateVariable(realBackgroundColor.value)) {
|
|
47466
47480
|
list.push({ "background-color": realBackgroundColor.value });
|
|
47467
|
-
} else if ((_a = cleekOptions2.value) == null ? void 0 : _a.darkMode) {
|
|
47468
|
-
list.push({ "background-color": (_b = cleekOptions2.value) == null ? void 0 : _b.darkModeColorItems });
|
|
47469
47481
|
}
|
|
47470
47482
|
return list;
|
|
47471
47483
|
});
|
|
@@ -47508,7 +47520,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
|
|
|
47508
47520
|
};
|
|
47509
47521
|
}
|
|
47510
47522
|
});
|
|
47511
|
-
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
47523
|
+
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-302a41b5"]]);
|
|
47512
47524
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
47513
47525
|
const _hoisted_1$j = ["for"];
|
|
47514
47526
|
const _sfc_main$o = /* @__PURE__ */ defineComponent$1({
|
|
@@ -49618,6 +49630,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
49618
49630
|
list.push(`align--${props.align}`);
|
|
49619
49631
|
return list;
|
|
49620
49632
|
});
|
|
49633
|
+
const currentStepGroup = computed$3(() => {
|
|
49634
|
+
if (props.maxStep === 1)
|
|
49635
|
+
return "";
|
|
49636
|
+
if (currentStep.value === 1)
|
|
49637
|
+
return "left";
|
|
49638
|
+
if (currentStep.value === props.maxStep)
|
|
49639
|
+
return "right";
|
|
49640
|
+
return "center";
|
|
49641
|
+
});
|
|
49621
49642
|
function goToPreviousStep() {
|
|
49622
49643
|
if (currentStep.value <= 1)
|
|
49623
49644
|
return;
|
|
@@ -49636,25 +49657,64 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
49636
49657
|
createVNode$1(_component_ck_button, {
|
|
49637
49658
|
group: "left",
|
|
49638
49659
|
icon: "arrow-left",
|
|
49660
|
+
type: unref$2(currentStep) === 1 ? "flat" : "",
|
|
49639
49661
|
onClick: _cache[0] || (_cache[0] = ($event) => goToPreviousStep())
|
|
49640
|
-
}),
|
|
49641
|
-
(openBlock$1(
|
|
49642
|
-
|
|
49643
|
-
|
|
49644
|
-
|
|
49645
|
-
|
|
49646
|
-
|
|
49647
|
-
|
|
49648
|
-
|
|
49649
|
-
|
|
49650
|
-
|
|
49651
|
-
|
|
49652
|
-
|
|
49662
|
+
}, null, 8, ["type"]),
|
|
49663
|
+
unref$2(currentStep) - 2 >= 1 ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49664
|
+
key: 0,
|
|
49665
|
+
group: "center",
|
|
49666
|
+
onClick: _cache[1] || (_cache[1] = ($event) => currentStep.value = unref$2(currentStep) - 2)
|
|
49667
|
+
}, {
|
|
49668
|
+
default: withCtx$1(() => [
|
|
49669
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) - 2), 1)
|
|
49670
|
+
]),
|
|
49671
|
+
_: 1
|
|
49672
|
+
})) : createCommentVNode$1("", true),
|
|
49673
|
+
unref$2(currentStep) - 1 >= 1 ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49674
|
+
key: 1,
|
|
49675
|
+
group: "center",
|
|
49676
|
+
onClick: _cache[2] || (_cache[2] = ($event) => currentStep.value = unref$2(currentStep) - 1)
|
|
49677
|
+
}, {
|
|
49678
|
+
default: withCtx$1(() => [
|
|
49679
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) - 1), 1)
|
|
49680
|
+
]),
|
|
49681
|
+
_: 1
|
|
49682
|
+
})) : createCommentVNode$1("", true),
|
|
49683
|
+
createVNode$1(_component_ck_button, {
|
|
49684
|
+
type: "filled",
|
|
49685
|
+
group: unref$2(currentStepGroup)
|
|
49686
|
+
}, {
|
|
49687
|
+
default: withCtx$1(() => [
|
|
49688
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep)), 1)
|
|
49689
|
+
]),
|
|
49690
|
+
_: 1
|
|
49691
|
+
}, 8, ["group"]),
|
|
49692
|
+
unref$2(currentStep) + 1 <= __props.maxStep ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49693
|
+
key: 2,
|
|
49694
|
+
group: "center",
|
|
49695
|
+
onClick: _cache[3] || (_cache[3] = ($event) => currentStep.value = unref$2(currentStep) + 1)
|
|
49696
|
+
}, {
|
|
49697
|
+
default: withCtx$1(() => [
|
|
49698
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) + 1), 1)
|
|
49699
|
+
]),
|
|
49700
|
+
_: 1
|
|
49701
|
+
})) : createCommentVNode$1("", true),
|
|
49702
|
+
unref$2(currentStep) + 2 <= __props.maxStep ? (openBlock$1(), createBlock$1(_component_ck_button, {
|
|
49703
|
+
key: 3,
|
|
49704
|
+
group: "center",
|
|
49705
|
+
onClick: _cache[4] || (_cache[4] = ($event) => currentStep.value = unref$2(currentStep) + 2)
|
|
49706
|
+
}, {
|
|
49707
|
+
default: withCtx$1(() => [
|
|
49708
|
+
createTextVNode$1(toDisplayString(unref$2(currentStep) + 2), 1)
|
|
49709
|
+
]),
|
|
49710
|
+
_: 1
|
|
49711
|
+
})) : createCommentVNode$1("", true),
|
|
49653
49712
|
createVNode$1(_component_ck_button, {
|
|
49654
49713
|
group: "right",
|
|
49655
49714
|
icon: "arrow-right",
|
|
49656
|
-
|
|
49657
|
-
|
|
49715
|
+
type: unref$2(currentStep) === __props.maxStep ? "flat" : "",
|
|
49716
|
+
onClick: _cache[5] || (_cache[5] = ($event) => goToNextStep())
|
|
49717
|
+
}, null, 8, ["type"])
|
|
49658
49718
|
], 2);
|
|
49659
49719
|
};
|
|
49660
49720
|
}
|
|
@@ -59090,7 +59150,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
59090
59150
|
};
|
|
59091
59151
|
}
|
|
59092
59152
|
});
|
|
59093
|
-
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
59153
|
+
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9c00736c"]]);
|
|
59094
59154
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
59095
59155
|
const _withScopeId$1 = (n) => (pushScopeId$1("data-v-7400e90e"), n = n(), popScopeId$1(), n);
|
|
59096
59156
|
const _hoisted_1$5 = ["disabled"];
|