cleek 2.4.30 → 2.4.31
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 +13 -6
- package/dist/cleek.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -2906,7 +2906,9 @@ const cleekOptions = {
|
|
|
2906
2906
|
headerAlign: "",
|
|
2907
2907
|
headerColor: "",
|
|
2908
2908
|
acceptBtnType: "",
|
|
2909
|
-
cancelBtnType: ""
|
|
2909
|
+
cancelBtnType: "",
|
|
2910
|
+
maxWidth: "",
|
|
2911
|
+
fontSize: ""
|
|
2910
2912
|
},
|
|
2911
2913
|
styles: {
|
|
2912
2914
|
layout: "base",
|
|
@@ -22343,7 +22345,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22343
22345
|
layout: null,
|
|
22344
22346
|
textColor: null,
|
|
22345
22347
|
headerColor: null,
|
|
22346
|
-
headerAlign: null
|
|
22348
|
+
headerAlign: null,
|
|
22349
|
+
fontSize: null
|
|
22347
22350
|
},
|
|
22348
22351
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
22349
22352
|
setup(__props, { emit: emits }) {
|
|
@@ -22370,13 +22373,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22370
22373
|
return list;
|
|
22371
22374
|
});
|
|
22372
22375
|
const computedStyleContent = computed$2(() => {
|
|
22373
|
-
var _a;
|
|
22376
|
+
var _a, _b, _c;
|
|
22374
22377
|
const list = [];
|
|
22375
|
-
|
|
22376
|
-
|
|
22378
|
+
const maxWidth = props.maxWidth || ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.maxWidth);
|
|
22379
|
+
if (maxWidth)
|
|
22380
|
+
list.push({ "max-width": maxWidth });
|
|
22381
|
+
const fontSize = props.fontSize || ((_b = cleekOptions2.value) == null ? void 0 : _b.popup.fontSize);
|
|
22382
|
+
if (fontSize)
|
|
22383
|
+
list.push({ "font-size": fontSize });
|
|
22377
22384
|
if (props.width)
|
|
22378
22385
|
list.push({ width: props.width });
|
|
22379
|
-
const textColor = props.textColor || ((
|
|
22386
|
+
const textColor = props.textColor || ((_c = cleekOptions2.value) == null ? void 0 : _c.popup.textColor);
|
|
22380
22387
|
if (textColor && !hooks8.isColorTemplateVariable(textColor)) {
|
|
22381
22388
|
list.push(`ck-component__color--${textColor}`);
|
|
22382
22389
|
list.push({ color: textColor });
|