cleek 2.4.15 → 2.4.18
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 +108 -69
- package/dist/cleek.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -2901,6 +2901,11 @@ const cleekOptions = {
|
|
|
2901
2901
|
img: {
|
|
2902
2902
|
basePath: ""
|
|
2903
2903
|
},
|
|
2904
|
+
popup: {
|
|
2905
|
+
textColor: "",
|
|
2906
|
+
headerAlign: "",
|
|
2907
|
+
headerColor: ""
|
|
2908
|
+
},
|
|
2904
2909
|
styles: {
|
|
2905
2910
|
layout: "base",
|
|
2906
2911
|
borderColor: "#dae1e7"
|
|
@@ -18807,22 +18812,6 @@ var hooks8 = {
|
|
|
18807
18812
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
18808
18813
|
return classList2;
|
|
18809
18814
|
},
|
|
18810
|
-
geRealBorderColor(props, cleekOptions2) {
|
|
18811
|
-
var _a;
|
|
18812
|
-
if (props.borderColor)
|
|
18813
|
-
return props.borderColor;
|
|
18814
|
-
if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor)
|
|
18815
|
-
return cleekOptions2.styles.borderColor;
|
|
18816
|
-
return "";
|
|
18817
|
-
},
|
|
18818
|
-
geRealLayout(props, cleekOptions2) {
|
|
18819
|
-
var _a;
|
|
18820
|
-
if (props.layout)
|
|
18821
|
-
return props.layout;
|
|
18822
|
-
if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.layout)
|
|
18823
|
-
return cleekOptions2.styles.layout;
|
|
18824
|
-
return "";
|
|
18825
|
-
},
|
|
18826
18815
|
getWidthByWidthBreaks(widthBreaks, windowWidth) {
|
|
18827
18816
|
if (widthBreaks) {
|
|
18828
18817
|
let realWidthBreaks = [...widthBreaks];
|
|
@@ -20903,15 +20892,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20903
20892
|
const defaultButtonType = "outlined";
|
|
20904
20893
|
const defaultColor = "primary";
|
|
20905
20894
|
const defaultAlign = "left";
|
|
20906
|
-
let cleekOptions2;
|
|
20895
|
+
let cleekOptions2 = ref();
|
|
20907
20896
|
const realButtonType = computed$2(() => {
|
|
20908
20897
|
if (props.type)
|
|
20909
20898
|
return props.type;
|
|
20910
|
-
if (cleekOptions2)
|
|
20911
|
-
return cleekOptions2.button.type;
|
|
20899
|
+
if (cleekOptions2.value)
|
|
20900
|
+
return cleekOptions2.value.button.type;
|
|
20912
20901
|
return defaultButtonType;
|
|
20913
20902
|
});
|
|
20914
20903
|
const computedClass = computed$2(() => {
|
|
20904
|
+
var _a;
|
|
20915
20905
|
const list = [];
|
|
20916
20906
|
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
20917
20907
|
const color = props.color || defaultColor;
|
|
@@ -20926,7 +20916,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20926
20916
|
if (align === "center" || align === "right") {
|
|
20927
20917
|
list.push(`ck-button__align--${props.align}`);
|
|
20928
20918
|
}
|
|
20929
|
-
const layout =
|
|
20919
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
20930
20920
|
if (layout)
|
|
20931
20921
|
list.push(layout);
|
|
20932
20922
|
list.push(`type-${realButtonType.value}`);
|
|
@@ -20952,7 +20942,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20952
20942
|
emits("click", event);
|
|
20953
20943
|
}
|
|
20954
20944
|
onMounted(() => {
|
|
20955
|
-
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
20945
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
20956
20946
|
});
|
|
20957
20947
|
hooks8.preventUnusedError([
|
|
20958
20948
|
onClick2,
|
|
@@ -20986,7 +20976,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20986
20976
|
};
|
|
20987
20977
|
}
|
|
20988
20978
|
});
|
|
20989
|
-
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
20979
|
+
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-177f5b94"]]);
|
|
20990
20980
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
20991
20981
|
const _hoisted_1$h = ["for"];
|
|
20992
20982
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
@@ -21048,7 +21038,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21048
21038
|
setup(__props, { expose, emit: emits }) {
|
|
21049
21039
|
const props = __props;
|
|
21050
21040
|
expose({ setFocus, setSelect });
|
|
21051
|
-
let cleekOptions2;
|
|
21041
|
+
let cleekOptions2 = ref();
|
|
21052
21042
|
const defaultType = "text";
|
|
21053
21043
|
const defaultDelayChangeTime = 300;
|
|
21054
21044
|
const realInput = ref(null);
|
|
@@ -21082,6 +21072,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21082
21072
|
emits("change", event);
|
|
21083
21073
|
};
|
|
21084
21074
|
const computedClassInput = computed$2(() => {
|
|
21075
|
+
var _a, _b;
|
|
21085
21076
|
const list = [];
|
|
21086
21077
|
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
21087
21078
|
if (props.icon)
|
|
@@ -21092,20 +21083,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21092
21083
|
list.push(`align--${props.align}`);
|
|
21093
21084
|
if (props.hideBorder)
|
|
21094
21085
|
list.push("no-border");
|
|
21095
|
-
const layout =
|
|
21086
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
21096
21087
|
if (layout)
|
|
21097
21088
|
list.push(layout);
|
|
21098
21089
|
if (props.size)
|
|
21099
21090
|
list.push(`ck-input-size__${props.size}`);
|
|
21100
|
-
const borderColor =
|
|
21091
|
+
const borderColor = props.borderColor || ((_b = cleekOptions2.value) == null ? void 0 : _b.styles.borderColor);
|
|
21101
21092
|
if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
|
|
21102
21093
|
list.push(`ck-component__border-color--${borderColor}`);
|
|
21103
21094
|
}
|
|
21104
21095
|
return list;
|
|
21105
21096
|
});
|
|
21106
21097
|
const computedStyleInput = computed$2(() => {
|
|
21098
|
+
var _a;
|
|
21107
21099
|
const list = [];
|
|
21108
|
-
const borderColor =
|
|
21100
|
+
const borderColor = props.borderColor || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.borderColor);
|
|
21109
21101
|
if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
|
|
21110
21102
|
list.push({ "border-color": borderColor });
|
|
21111
21103
|
}
|
|
@@ -21146,7 +21138,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21146
21138
|
onClick2
|
|
21147
21139
|
]);
|
|
21148
21140
|
onMounted(() => {
|
|
21149
|
-
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
21141
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
21150
21142
|
});
|
|
21151
21143
|
return (_ctx, _cache) => {
|
|
21152
21144
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21198,7 +21190,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21198
21190
|
};
|
|
21199
21191
|
}
|
|
21200
21192
|
});
|
|
21201
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
21193
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-110a76c1"]]);
|
|
21202
21194
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21203
21195
|
const _hoisted_1$f = { class: "ck-table__header-items" };
|
|
21204
21196
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -22267,22 +22259,21 @@ const _hoisted_1$c = {
|
|
|
22267
22259
|
class: "ck-popup"
|
|
22268
22260
|
};
|
|
22269
22261
|
const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
|
|
22270
|
-
const _hoisted_3$5 = {
|
|
22271
|
-
const _hoisted_4$5 = {
|
|
22262
|
+
const _hoisted_3$5 = {
|
|
22272
22263
|
key: 0,
|
|
22273
22264
|
class: "ck-popup__title"
|
|
22274
22265
|
};
|
|
22275
|
-
const
|
|
22276
|
-
const
|
|
22266
|
+
const _hoisted_4$5 = { class: "ck-popup__slot-body" };
|
|
22267
|
+
const _hoisted_5$2 = {
|
|
22277
22268
|
key: 0,
|
|
22278
22269
|
class: "ck-popup__slot-footer"
|
|
22279
22270
|
};
|
|
22280
|
-
const
|
|
22271
|
+
const _hoisted_6$2 = {
|
|
22281
22272
|
key: 0,
|
|
22282
22273
|
class: "ck-popup-slot-footer__confirm-buttons"
|
|
22283
22274
|
};
|
|
22284
|
-
const
|
|
22285
|
-
const
|
|
22275
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
22276
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
22286
22277
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
22287
22278
|
props: {
|
|
22288
22279
|
modelValue: { type: Boolean },
|
|
@@ -22293,11 +22284,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22293
22284
|
notCloseByBg: { type: Boolean },
|
|
22294
22285
|
preventCloseOnCancel: { type: Boolean },
|
|
22295
22286
|
width: null,
|
|
22296
|
-
maxWidth: null
|
|
22287
|
+
maxWidth: null,
|
|
22288
|
+
layout: null,
|
|
22289
|
+
textColor: null,
|
|
22290
|
+
headerColor: null,
|
|
22291
|
+
headerAlign: null
|
|
22297
22292
|
},
|
|
22298
22293
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
22299
22294
|
setup(__props, { emit: emits }) {
|
|
22300
22295
|
const props = __props;
|
|
22296
|
+
let cleekOptions2 = ref();
|
|
22301
22297
|
const isActive = computed$2({
|
|
22302
22298
|
get() {
|
|
22303
22299
|
return props.modelValue;
|
|
@@ -22306,12 +22302,51 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22306
22302
|
emits("update:modelValue", val);
|
|
22307
22303
|
}
|
|
22308
22304
|
});
|
|
22305
|
+
const computedClassContent = computed$2(() => {
|
|
22306
|
+
var _a, _b;
|
|
22307
|
+
const list = [];
|
|
22308
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
22309
|
+
if (layout)
|
|
22310
|
+
list.push(layout);
|
|
22311
|
+
const textColor = props.textColor || ((_b = cleekOptions2.value) == null ? void 0 : _b.popup.textColor);
|
|
22312
|
+
if (textColor && hooks8.isColorTemplateVariable(textColor)) {
|
|
22313
|
+
list.push(`ck-component__color--${textColor}`);
|
|
22314
|
+
}
|
|
22315
|
+
return list;
|
|
22316
|
+
});
|
|
22309
22317
|
const computedStyleContent = computed$2(() => {
|
|
22318
|
+
var _a;
|
|
22310
22319
|
const list = [];
|
|
22311
22320
|
if (props.maxWidth)
|
|
22312
22321
|
list.push({ maxWidth: props.maxWidth });
|
|
22313
22322
|
if (props.width)
|
|
22314
22323
|
list.push({ width: props.width });
|
|
22324
|
+
const textColor = props.textColor || ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.textColor);
|
|
22325
|
+
if (textColor && !hooks8.isColorTemplateVariable(textColor)) {
|
|
22326
|
+
list.push(`ck-component__color--${textColor}`);
|
|
22327
|
+
list.push({ color: textColor });
|
|
22328
|
+
}
|
|
22329
|
+
return list;
|
|
22330
|
+
});
|
|
22331
|
+
const computedStyleHeader = computed$2(() => {
|
|
22332
|
+
var _a;
|
|
22333
|
+
const list = [];
|
|
22334
|
+
const headerColor = props.headerColor || ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.headerColor);
|
|
22335
|
+
if (headerColor && !hooks8.isColorTemplateVariable(headerColor)) {
|
|
22336
|
+
list.push({ backgroundColor: headerColor });
|
|
22337
|
+
}
|
|
22338
|
+
return list;
|
|
22339
|
+
});
|
|
22340
|
+
const computedClassHeader = computed$2(() => {
|
|
22341
|
+
var _a, _b;
|
|
22342
|
+
const list = [];
|
|
22343
|
+
const headerAlign = props.headerAlign || ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.headerAlign);
|
|
22344
|
+
if (headerAlign)
|
|
22345
|
+
list.push(`header-align--${headerAlign}`);
|
|
22346
|
+
const headerColor = props.headerColor || ((_b = cleekOptions2.value) == null ? void 0 : _b.popup.headerColor);
|
|
22347
|
+
if (headerColor && hooks8.isColorTemplateVariable(headerColor)) {
|
|
22348
|
+
list.push(`ck-component__bg-color--${headerColor}`);
|
|
22349
|
+
}
|
|
22315
22350
|
return list;
|
|
22316
22351
|
});
|
|
22317
22352
|
function onCancel() {
|
|
@@ -22327,6 +22362,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22327
22362
|
return;
|
|
22328
22363
|
isActive.value = false;
|
|
22329
22364
|
}
|
|
22365
|
+
onMounted(() => {
|
|
22366
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
22367
|
+
});
|
|
22330
22368
|
return (_ctx, _cache) => {
|
|
22331
22369
|
return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
22332
22370
|
_hoisted_2$8,
|
|
@@ -22335,27 +22373,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22335
22373
|
onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
|
|
22336
22374
|
}, [
|
|
22337
22375
|
createElementVNode("div", {
|
|
22338
|
-
class: "ck-popup__content",
|
|
22376
|
+
class: normalizeClass(["ck-popup__content", unref$1(computedClassContent)]),
|
|
22339
22377
|
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
22340
22378
|
}, ["stop"])),
|
|
22341
22379
|
style: normalizeStyle(unref$1(computedStyleContent))
|
|
22342
22380
|
}, [
|
|
22343
|
-
createElementVNode("div",
|
|
22344
|
-
|
|
22381
|
+
createElementVNode("div", {
|
|
22382
|
+
class: normalizeClass(["ck-popup__slot-header", unref$1(computedClassHeader)]),
|
|
22383
|
+
style: normalizeStyle(unref$1(computedStyleHeader))
|
|
22384
|
+
}, [
|
|
22385
|
+
__props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
22345
22386
|
renderSlot(_ctx.$slots, "header"),
|
|
22346
22387
|
!(__props.notCloseBtn || __props.notClose) ? (openBlock(), createBlock(CkIcon, {
|
|
22347
22388
|
key: 1,
|
|
22348
|
-
class: "close",
|
|
22389
|
+
class: "icon-close",
|
|
22349
22390
|
icon: "times",
|
|
22350
22391
|
onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
|
|
22351
22392
|
})) : createCommentVNode("", true)
|
|
22352
|
-
]),
|
|
22353
|
-
createElementVNode("div",
|
|
22393
|
+
], 6),
|
|
22394
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
22354
22395
|
renderSlot(_ctx.$slots, "default")
|
|
22355
22396
|
]),
|
|
22356
|
-
_ctx.$slots.footer || __props.confirmButtons ? (openBlock(), createElementBlock("div",
|
|
22397
|
+
_ctx.$slots.footer || __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
22357
22398
|
renderSlot(_ctx.$slots, "footer"),
|
|
22358
|
-
__props.confirmButtons ? (openBlock(), createElementBlock("div",
|
|
22399
|
+
__props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
22359
22400
|
createVNode(CkButton, {
|
|
22360
22401
|
class: "cancel-button",
|
|
22361
22402
|
onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
|
|
@@ -22363,7 +22404,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22363
22404
|
type: "flat"
|
|
22364
22405
|
}, {
|
|
22365
22406
|
default: withCtx(() => [
|
|
22366
|
-
|
|
22407
|
+
_hoisted_7
|
|
22367
22408
|
]),
|
|
22368
22409
|
_: 1
|
|
22369
22410
|
}),
|
|
@@ -22371,13 +22412,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22371
22412
|
onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
|
|
22372
22413
|
}, {
|
|
22373
22414
|
default: withCtx(() => [
|
|
22374
|
-
|
|
22415
|
+
_hoisted_8
|
|
22375
22416
|
]),
|
|
22376
22417
|
_: 1
|
|
22377
22418
|
})
|
|
22378
22419
|
])) : createCommentVNode("", true)
|
|
22379
22420
|
])) : createCommentVNode("", true)
|
|
22380
|
-
],
|
|
22421
|
+
], 6)
|
|
22381
22422
|
])
|
|
22382
22423
|
])) : createCommentVNode("", true);
|
|
22383
22424
|
};
|
|
@@ -22764,7 +22805,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22764
22805
|
},
|
|
22765
22806
|
setup(__props) {
|
|
22766
22807
|
const props = __props;
|
|
22767
|
-
let
|
|
22808
|
+
let cleekOptions2 = ref();
|
|
22768
22809
|
const altNeeded = ref(false);
|
|
22769
22810
|
const isMounted = ref(false);
|
|
22770
22811
|
const isFullPath = computed$2(() => {
|
|
@@ -22828,14 +22869,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22828
22869
|
;
|
|
22829
22870
|
}
|
|
22830
22871
|
function getImg(src) {
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
path = $cleekOptions.img.basePath;
|
|
22834
|
-
}
|
|
22872
|
+
var _a;
|
|
22873
|
+
let path = ((_a = cleekOptions2.value) == null ? void 0 : _a.img.basePath) || "";
|
|
22835
22874
|
return `${path}${src}`;
|
|
22836
22875
|
}
|
|
22837
22876
|
onMounted(() => {
|
|
22838
|
-
|
|
22877
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
22839
22878
|
isMounted.value = true;
|
|
22840
22879
|
});
|
|
22841
22880
|
hooks8.preventUnusedError([
|
|
@@ -22860,7 +22899,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22860
22899
|
};
|
|
22861
22900
|
}
|
|
22862
22901
|
});
|
|
22863
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
22902
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-7cd9662b"]]);
|
|
22864
22903
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22865
22904
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScopeId(), n);
|
|
22866
22905
|
const _hoisted_1$7 = ["onKeyup"];
|
|
@@ -22966,7 +23005,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22966
23005
|
expose({
|
|
22967
23006
|
setFocus
|
|
22968
23007
|
});
|
|
22969
|
-
let cleekOptions2;
|
|
23008
|
+
let cleekOptions2 = ref();
|
|
22970
23009
|
const defaultMinWidth = "180px";
|
|
22971
23010
|
const defaultClearValue = "auto";
|
|
22972
23011
|
const defaultReduceNameProp = "name";
|
|
@@ -22999,22 +23038,24 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22999
23038
|
return true;
|
|
23000
23039
|
});
|
|
23001
23040
|
const computedClassSelect = computed$2(() => {
|
|
23041
|
+
var _a, _b;
|
|
23002
23042
|
const list = [];
|
|
23003
23043
|
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
23004
|
-
const layout =
|
|
23044
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
23005
23045
|
if (layout)
|
|
23006
23046
|
list.push(layout);
|
|
23007
23047
|
if (isClearBtnVisible.value)
|
|
23008
23048
|
list.push("clear-able");
|
|
23009
|
-
const borderColor =
|
|
23049
|
+
const borderColor = props.borderColor || ((_b = cleekOptions2.value) == null ? void 0 : _b.styles.borderColor);
|
|
23010
23050
|
if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
|
|
23011
23051
|
list.push(`ck-component__border-color--${borderColor}`);
|
|
23012
23052
|
}
|
|
23013
23053
|
return list;
|
|
23014
23054
|
});
|
|
23015
23055
|
const computedStyleSelect = computed$2(() => {
|
|
23056
|
+
var _a;
|
|
23016
23057
|
const list = [];
|
|
23017
|
-
const borderColor =
|
|
23058
|
+
const borderColor = props.borderColor || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.borderColor);
|
|
23018
23059
|
if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
|
|
23019
23060
|
list.push({ "border-color": borderColor });
|
|
23020
23061
|
}
|
|
@@ -23099,7 +23140,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23099
23140
|
function setFocus() {
|
|
23100
23141
|
}
|
|
23101
23142
|
onMounted(() => {
|
|
23102
|
-
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
23143
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
23103
23144
|
});
|
|
23104
23145
|
hooks8.preventUnusedError([
|
|
23105
23146
|
computedStyle,
|
|
@@ -23152,7 +23193,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23152
23193
|
};
|
|
23153
23194
|
}
|
|
23154
23195
|
});
|
|
23155
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23196
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6e28e1de"]]);
|
|
23156
23197
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23157
23198
|
const _hoisted_1$5 = {
|
|
23158
23199
|
key: 1,
|
|
@@ -23418,7 +23459,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23418
23459
|
emits: ["update:modelValue"],
|
|
23419
23460
|
setup(__props, { emit: emits }) {
|
|
23420
23461
|
const props = __props;
|
|
23421
|
-
let cleekOptions2;
|
|
23462
|
+
let cleekOptions2 = ref();
|
|
23422
23463
|
const value = computed$2({
|
|
23423
23464
|
get() {
|
|
23424
23465
|
return props.modelValue;
|
|
@@ -23430,28 +23471,26 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23430
23471
|
const computedClassTextarea = computed$2(() => {
|
|
23431
23472
|
var _a, _b;
|
|
23432
23473
|
const list = [];
|
|
23433
|
-
const layout = props.layout || ((_a = cleekOptions2
|
|
23474
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
23434
23475
|
if (layout)
|
|
23435
23476
|
list.push(layout);
|
|
23436
|
-
const borderColor = props.borderColor || ((_b = cleekOptions2
|
|
23437
|
-
console.log("textarea", borderColor);
|
|
23438
|
-
console.log("cleekOptions", cleekOptions2);
|
|
23477
|
+
const borderColor = props.borderColor || ((_b = cleekOptions2.value) == null ? void 0 : _b.styles.borderColor);
|
|
23439
23478
|
if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
|
|
23440
23479
|
list.push(`ck-component__border-color--${borderColor}`);
|
|
23441
23480
|
}
|
|
23442
23481
|
return list;
|
|
23443
23482
|
});
|
|
23444
23483
|
const computedStyleTextarea = computed$2(() => {
|
|
23445
|
-
var _a;
|
|
23484
|
+
var _a, _b;
|
|
23446
23485
|
const list = [];
|
|
23447
|
-
const borderColor = props.borderColor || ((_a = cleekOptions2 == null ? void 0 :
|
|
23486
|
+
const borderColor = props.borderColor || ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.styles) == null ? void 0 : _b.borderColor);
|
|
23448
23487
|
if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
|
|
23449
23488
|
list.push({ "border-color": borderColor });
|
|
23450
23489
|
}
|
|
23451
23490
|
return list;
|
|
23452
23491
|
});
|
|
23453
23492
|
onMounted(() => {
|
|
23454
|
-
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
23493
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
23455
23494
|
});
|
|
23456
23495
|
return (_ctx, _cache) => {
|
|
23457
23496
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
@@ -23475,7 +23514,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23475
23514
|
};
|
|
23476
23515
|
}
|
|
23477
23516
|
});
|
|
23478
|
-
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
23517
|
+
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-67887c28"]]);
|
|
23479
23518
|
var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23480
23519
|
const _withScopeId = (n) => (pushScopeId("data-v-bc51fc7a"), n = n(), popScopeId(), n);
|
|
23481
23520
|
const _hoisted_1$1 = { class: "ck-confirm--background" };
|