cleek 2.7.20 → 2.8.0
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 -5
- package/dist/cleek.umd.js +13 -13
- 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({
|