cleek 2.4.10 → 2.4.13
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 +89 -61
- package/dist/cleek.umd.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -3386,11 +3386,11 @@ if (!w[NAMESPACE_IDENTIFIER].hooks)
|
|
|
3386
3386
|
if (!w[NAMESPACE_IDENTIFIER].shims)
|
|
3387
3387
|
w[NAMESPACE_IDENTIFIER].shims = [];
|
|
3388
3388
|
var namespace = w[NAMESPACE_IDENTIFIER];
|
|
3389
|
-
var functions
|
|
3389
|
+
var functions = [];
|
|
3390
3390
|
var listener = function listener2() {
|
|
3391
3391
|
DOCUMENT.removeEventListener("DOMContentLoaded", listener2);
|
|
3392
3392
|
loaded = 1;
|
|
3393
|
-
functions
|
|
3393
|
+
functions.map(function(fn) {
|
|
3394
3394
|
return fn();
|
|
3395
3395
|
});
|
|
3396
3396
|
};
|
|
@@ -3403,7 +3403,7 @@ if (IS_DOM) {
|
|
|
3403
3403
|
function domready(fn) {
|
|
3404
3404
|
if (!IS_DOM)
|
|
3405
3405
|
return;
|
|
3406
|
-
loaded ? setTimeout(fn, 0) : functions
|
|
3406
|
+
loaded ? setTimeout(fn, 0) : functions.push(fn);
|
|
3407
3407
|
}
|
|
3408
3408
|
function toHtml(abstractNodes) {
|
|
3409
3409
|
var tag = abstractNodes.tag, _abstractNodes$attrib = abstractNodes.attributes, attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib, _abstractNodes$childr = abstractNodes.children, children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
|
|
@@ -3759,12 +3759,12 @@ function registerPlugins(nextPlugins, _ref2) {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
});
|
|
3761
3761
|
if (plugin2.hooks) {
|
|
3762
|
-
var
|
|
3763
|
-
Object.keys(
|
|
3762
|
+
var hooks9 = plugin2.hooks();
|
|
3763
|
+
Object.keys(hooks9).forEach(function(hook) {
|
|
3764
3764
|
if (!_hooks[hook]) {
|
|
3765
3765
|
_hooks[hook] = [];
|
|
3766
3766
|
}
|
|
3767
|
-
_hooks[hook].push(
|
|
3767
|
+
_hooks[hook].push(hooks9[hook]);
|
|
3768
3768
|
});
|
|
3769
3769
|
}
|
|
3770
3770
|
if (plugin2.provides) {
|
|
@@ -18790,7 +18790,7 @@ function render2(_ctx, _cache) {
|
|
|
18790
18790
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18791
18791
|
const _sfc_main$o = {};
|
|
18792
18792
|
var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", render2], ["__scopeId", "data-v-519cf874"]]);
|
|
18793
|
-
var
|
|
18793
|
+
var hooks8 = {
|
|
18794
18794
|
getCleekOptions(getCurrentInstance2) {
|
|
18795
18795
|
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
18796
18796
|
},
|
|
@@ -18808,16 +18808,18 @@ var functions = {
|
|
|
18808
18808
|
return classList2;
|
|
18809
18809
|
},
|
|
18810
18810
|
geRealBorderColor(props, cleekOptions2) {
|
|
18811
|
+
var _a;
|
|
18811
18812
|
if (props.borderColor)
|
|
18812
18813
|
return props.borderColor;
|
|
18813
|
-
if (cleekOptions2.styles.borderColor)
|
|
18814
|
+
if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor)
|
|
18814
18815
|
return cleekOptions2.styles.borderColor;
|
|
18815
18816
|
return "";
|
|
18816
18817
|
},
|
|
18817
18818
|
geRealLayout(props, cleekOptions2) {
|
|
18819
|
+
var _a;
|
|
18818
18820
|
if (props.layout)
|
|
18819
18821
|
return props.layout;
|
|
18820
|
-
if (cleekOptions2.styles.layout)
|
|
18822
|
+
if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.layout)
|
|
18821
18823
|
return cleekOptions2.styles.layout;
|
|
18822
18824
|
return "";
|
|
18823
18825
|
},
|
|
@@ -18941,9 +18943,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18941
18943
|
const isColumnDisplayed = computed$2(() => {
|
|
18942
18944
|
if (!props.col)
|
|
18943
18945
|
return true;
|
|
18944
|
-
return
|
|
18946
|
+
return hooks8.isColumnDisplayed(props.col);
|
|
18945
18947
|
});
|
|
18946
|
-
|
|
18948
|
+
hooks8.preventUnusedError([
|
|
18947
18949
|
isColumnDisplayed,
|
|
18948
18950
|
computedStyle
|
|
18949
18951
|
]);
|
|
@@ -20812,14 +20814,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20812
20814
|
});
|
|
20813
20815
|
const computedClass = computed$2(() => {
|
|
20814
20816
|
const list = [];
|
|
20815
|
-
if (props.color &&
|
|
20817
|
+
if (props.color && hooks8.isColorTemplateVariable(props.color)) {
|
|
20816
20818
|
list.push(`ck-component__color--${props.color}`);
|
|
20817
20819
|
}
|
|
20818
20820
|
return list;
|
|
20819
20821
|
});
|
|
20820
20822
|
const computedStyle = computed$2(() => {
|
|
20821
20823
|
const list = [];
|
|
20822
|
-
if (props.color && !
|
|
20824
|
+
if (props.color && !hooks8.isColorTemplateVariable(props.color)) {
|
|
20823
20825
|
list.push({ color: props.color });
|
|
20824
20826
|
}
|
|
20825
20827
|
return list;
|
|
@@ -20827,7 +20829,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20827
20829
|
function onClick2(event) {
|
|
20828
20830
|
emits("click", event);
|
|
20829
20831
|
}
|
|
20830
|
-
|
|
20832
|
+
hooks8.preventUnusedError([
|
|
20831
20833
|
onClick2,
|
|
20832
20834
|
computedStyle
|
|
20833
20835
|
]);
|
|
@@ -20911,7 +20913,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20911
20913
|
});
|
|
20912
20914
|
const computedClass = computed$2(() => {
|
|
20913
20915
|
const list = [];
|
|
20914
|
-
list.push(
|
|
20916
|
+
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
20915
20917
|
const color = props.color || defaultColor;
|
|
20916
20918
|
if (color !== defaultColor) {
|
|
20917
20919
|
if (realButtonType.value === "filled") {
|
|
@@ -20924,7 +20926,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20924
20926
|
if (align === "center" || align === "right") {
|
|
20925
20927
|
list.push(`ck-button__align--${props.align}`);
|
|
20926
20928
|
}
|
|
20927
|
-
const layout =
|
|
20929
|
+
const layout = hooks8.geRealLayout(props, cleekOptions2);
|
|
20928
20930
|
if (layout)
|
|
20929
20931
|
list.push(layout);
|
|
20930
20932
|
list.push(`type-${realButtonType.value}`);
|
|
@@ -20936,7 +20938,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20936
20938
|
const list = [];
|
|
20937
20939
|
let isWidthDefined = false;
|
|
20938
20940
|
if (props.widthBreaks) {
|
|
20939
|
-
const width =
|
|
20941
|
+
const width = hooks8.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
20940
20942
|
if (width) {
|
|
20941
20943
|
isWidthDefined = true;
|
|
20942
20944
|
list.push({ width });
|
|
@@ -20950,9 +20952,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20950
20952
|
emits("click", event);
|
|
20951
20953
|
}
|
|
20952
20954
|
onMounted(() => {
|
|
20953
|
-
cleekOptions2 =
|
|
20955
|
+
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
20954
20956
|
});
|
|
20955
|
-
|
|
20957
|
+
hooks8.preventUnusedError([
|
|
20956
20958
|
onClick2,
|
|
20957
20959
|
computedStyle,
|
|
20958
20960
|
computedClass
|
|
@@ -21081,7 +21083,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21081
21083
|
};
|
|
21082
21084
|
const computedClassInput = computed$2(() => {
|
|
21083
21085
|
const list = [];
|
|
21084
|
-
list.push(
|
|
21086
|
+
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
21085
21087
|
if (props.icon)
|
|
21086
21088
|
list.push("has-icon-left");
|
|
21087
21089
|
if (props.iconRight)
|
|
@@ -21090,20 +21092,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21090
21092
|
list.push(`align--${props.align}`);
|
|
21091
21093
|
if (props.hideBorder)
|
|
21092
21094
|
list.push("no-border");
|
|
21093
|
-
const layout =
|
|
21095
|
+
const layout = hooks8.geRealLayout(props, cleekOptions2);
|
|
21094
21096
|
if (layout)
|
|
21095
21097
|
list.push(layout);
|
|
21096
21098
|
if (props.size)
|
|
21097
21099
|
list.push(`ck-input-size__${props.size}`);
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
+
const borderColor = hooks8.geRealBorderColor(props, cleekOptions2);
|
|
21101
|
+
if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
|
|
21102
|
+
list.push(`ck-component__border-color--${borderColor}`);
|
|
21100
21103
|
}
|
|
21101
21104
|
return list;
|
|
21102
21105
|
});
|
|
21103
21106
|
const computedStyleInput = computed$2(() => {
|
|
21104
21107
|
const list = [];
|
|
21105
|
-
|
|
21106
|
-
|
|
21108
|
+
const borderColor = hooks8.geRealBorderColor(props, cleekOptions2);
|
|
21109
|
+
if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
|
|
21110
|
+
list.push({ "border-color": borderColor });
|
|
21107
21111
|
}
|
|
21108
21112
|
return list;
|
|
21109
21113
|
});
|
|
@@ -21111,7 +21115,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21111
21115
|
const list = [];
|
|
21112
21116
|
list.push({ width: props.width });
|
|
21113
21117
|
if (props.widthBreaks) {
|
|
21114
|
-
const width =
|
|
21118
|
+
const width = hooks8.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
21115
21119
|
if (width)
|
|
21116
21120
|
list.push({ width });
|
|
21117
21121
|
}
|
|
@@ -21132,7 +21136,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21132
21136
|
}
|
|
21133
21137
|
}, props.delayChangeTime || defaultDelayChangeTime);
|
|
21134
21138
|
}
|
|
21135
|
-
|
|
21139
|
+
hooks8.preventUnusedError([
|
|
21136
21140
|
computedStyle,
|
|
21137
21141
|
computedClassInput,
|
|
21138
21142
|
realLabelAlign,
|
|
@@ -21142,7 +21146,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21142
21146
|
onClick2
|
|
21143
21147
|
]);
|
|
21144
21148
|
onMounted(() => {
|
|
21145
|
-
cleekOptions2 =
|
|
21149
|
+
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
21146
21150
|
});
|
|
21147
21151
|
return (_ctx, _cache) => {
|
|
21148
21152
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21194,7 +21198,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21194
21198
|
};
|
|
21195
21199
|
}
|
|
21196
21200
|
});
|
|
21197
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
21201
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d0ed260a"]]);
|
|
21198
21202
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21199
21203
|
const _hoisted_1$f = { class: "ck-table__header-items" };
|
|
21200
21204
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -21255,7 +21259,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21255
21259
|
emits("refreshList", false);
|
|
21256
21260
|
}, 1e3);
|
|
21257
21261
|
}
|
|
21258
|
-
|
|
21262
|
+
hooks8.preventUnusedError([
|
|
21259
21263
|
searchGroupValue,
|
|
21260
21264
|
checkRefresh
|
|
21261
21265
|
]);
|
|
@@ -21370,7 +21374,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
21370
21374
|
return;
|
|
21371
21375
|
updateCurrentPage(val);
|
|
21372
21376
|
}
|
|
21373
|
-
|
|
21377
|
+
hooks8.preventUnusedError([
|
|
21374
21378
|
validateInputNumber
|
|
21375
21379
|
]);
|
|
21376
21380
|
return (_ctx, _cache) => {
|
|
@@ -22412,7 +22416,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22412
22416
|
list.push({
|
|
22413
22417
|
name: col.name,
|
|
22414
22418
|
title: col.title,
|
|
22415
|
-
value:
|
|
22419
|
+
value: hooks8.isColumnDisplayed(col)
|
|
22416
22420
|
});
|
|
22417
22421
|
}
|
|
22418
22422
|
});
|
|
@@ -22518,7 +22522,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22518
22522
|
return newList;
|
|
22519
22523
|
});
|
|
22520
22524
|
const filteredColumnsList = computed$2(() => {
|
|
22521
|
-
return columnsArray.value.filter(
|
|
22525
|
+
return columnsArray.value.filter(hooks8.isColumnDisplayed);
|
|
22522
22526
|
});
|
|
22523
22527
|
const searchLocal = computed$2({
|
|
22524
22528
|
get() {
|
|
@@ -22559,7 +22563,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22559
22563
|
list.push("not-full-width");
|
|
22560
22564
|
return list;
|
|
22561
22565
|
});
|
|
22562
|
-
|
|
22566
|
+
hooks8.preventUnusedError([
|
|
22563
22567
|
computedClassTable,
|
|
22564
22568
|
defaultNoResultsText,
|
|
22565
22569
|
isMobileVisible,
|
|
@@ -22718,7 +22722,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22718
22722
|
const computedStyle = computed$2(() => {
|
|
22719
22723
|
const list = [];
|
|
22720
22724
|
if (props.widthBreaks) {
|
|
22721
|
-
const width =
|
|
22725
|
+
const width = hooks8.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
22722
22726
|
if (width)
|
|
22723
22727
|
list.push({ width });
|
|
22724
22728
|
}
|
|
@@ -22781,7 +22785,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22781
22785
|
classList2.push("is-rounded");
|
|
22782
22786
|
if (props.hasBorder) {
|
|
22783
22787
|
classList2.push("ck-img__has-border");
|
|
22784
|
-
if (
|
|
22788
|
+
if (hooks8.isColorTemplateVariable(realBorderColor.value)) {
|
|
22785
22789
|
classList2.push(`ck-component__border-color--${realBorderColor.value}`);
|
|
22786
22790
|
}
|
|
22787
22791
|
}
|
|
@@ -22798,7 +22802,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22798
22802
|
if (props.radius)
|
|
22799
22803
|
styleList.push({ "border-radius": props.radius });
|
|
22800
22804
|
if (props.hasBorder) {
|
|
22801
|
-
if (!
|
|
22805
|
+
if (!hooks8.isColorTemplateVariable(realBorderColor.value)) {
|
|
22802
22806
|
styleList.push({ "border-color": realBorderColor.value });
|
|
22803
22807
|
}
|
|
22804
22808
|
}
|
|
@@ -22831,10 +22835,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22831
22835
|
return `${path}${src}`;
|
|
22832
22836
|
}
|
|
22833
22837
|
onMounted(() => {
|
|
22834
|
-
$cleekOptions =
|
|
22838
|
+
$cleekOptions = hooks8.getCleekOptions(getCurrentInstance);
|
|
22835
22839
|
isMounted.value = true;
|
|
22836
22840
|
});
|
|
22837
|
-
|
|
22841
|
+
hooks8.preventUnusedError([
|
|
22838
22842
|
computedImgStyle,
|
|
22839
22843
|
computedStyle,
|
|
22840
22844
|
computedClass,
|
|
@@ -22959,10 +22963,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22959
22963
|
emits: ["update:modelValue", "click", "change"],
|
|
22960
22964
|
setup(__props, { expose, emit: emits }) {
|
|
22961
22965
|
const props = __props;
|
|
22962
|
-
let cleekOptions2;
|
|
22963
22966
|
expose({
|
|
22964
22967
|
setFocus
|
|
22965
22968
|
});
|
|
22969
|
+
let cleekOptions2;
|
|
22966
22970
|
const defaultMinWidth = "180px";
|
|
22967
22971
|
const defaultClearValue = "auto";
|
|
22968
22972
|
const defaultReduceNameProp = "name";
|
|
@@ -22996,26 +23000,23 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22996
23000
|
});
|
|
22997
23001
|
const computedClassSelect = computed$2(() => {
|
|
22998
23002
|
const list = [];
|
|
22999
|
-
list.push(
|
|
23000
|
-
const layout =
|
|
23003
|
+
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
23004
|
+
const layout = hooks8.geRealLayout(props, cleekOptions2);
|
|
23001
23005
|
if (layout)
|
|
23002
23006
|
list.push(layout);
|
|
23003
23007
|
if (isClearBtnVisible.value)
|
|
23004
23008
|
list.push("clear-able");
|
|
23005
|
-
const borderColor =
|
|
23006
|
-
if (borderColor &&
|
|
23007
|
-
list.push(`ck-
|
|
23009
|
+
const borderColor = hooks8.geRealBorderColor(props, cleekOptions2);
|
|
23010
|
+
if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
|
|
23011
|
+
list.push(`ck-component__border-color--${borderColor}`);
|
|
23008
23012
|
}
|
|
23009
23013
|
return list;
|
|
23010
23014
|
});
|
|
23011
23015
|
const computedStyleSelect = computed$2(() => {
|
|
23012
23016
|
const list = [];
|
|
23013
|
-
const borderColor =
|
|
23014
|
-
if (borderColor &&
|
|
23015
|
-
list.push(
|
|
23016
|
-
}
|
|
23017
|
-
if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
|
|
23018
|
-
list.push({ "border-color": props.borderColor });
|
|
23017
|
+
const borderColor = hooks8.geRealBorderColor(props, cleekOptions2);
|
|
23018
|
+
if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
|
|
23019
|
+
list.push({ "border-color": borderColor });
|
|
23019
23020
|
}
|
|
23020
23021
|
return list;
|
|
23021
23022
|
});
|
|
@@ -23023,7 +23024,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23023
23024
|
const list = [];
|
|
23024
23025
|
let isWidthDefined = false;
|
|
23025
23026
|
if (props.widthBreaks) {
|
|
23026
|
-
const width =
|
|
23027
|
+
const width = hooks8.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
23027
23028
|
if (width) {
|
|
23028
23029
|
list.push({ width });
|
|
23029
23030
|
isWidthDefined = true;
|
|
@@ -23098,9 +23099,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23098
23099
|
function setFocus() {
|
|
23099
23100
|
}
|
|
23100
23101
|
onMounted(() => {
|
|
23101
|
-
cleekOptions2 =
|
|
23102
|
+
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
23102
23103
|
});
|
|
23103
|
-
|
|
23104
|
+
hooks8.preventUnusedError([
|
|
23104
23105
|
computedStyle,
|
|
23105
23106
|
computedClassSelect,
|
|
23106
23107
|
getOptionValue,
|
|
@@ -23151,7 +23152,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23151
23152
|
};
|
|
23152
23153
|
}
|
|
23153
23154
|
});
|
|
23154
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23155
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-f4a6925c"]]);
|
|
23155
23156
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23156
23157
|
const _hoisted_1$5 = {
|
|
23157
23158
|
key: 1,
|
|
@@ -23356,7 +23357,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23356
23357
|
});
|
|
23357
23358
|
const computedClass = computed$2(() => {
|
|
23358
23359
|
const list = [];
|
|
23359
|
-
list.push(
|
|
23360
|
+
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
23360
23361
|
return list;
|
|
23361
23362
|
});
|
|
23362
23363
|
const computedItemStyle = computed$2(() => {
|
|
@@ -23373,7 +23374,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23373
23374
|
}
|
|
23374
23375
|
return defaultReduceFunction(option);
|
|
23375
23376
|
}
|
|
23376
|
-
|
|
23377
|
+
hooks8.preventUnusedError([
|
|
23377
23378
|
getOptionValue
|
|
23378
23379
|
]);
|
|
23379
23380
|
return (_ctx, _cache) => {
|
|
@@ -23410,11 +23411,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23410
23411
|
props: {
|
|
23411
23412
|
modelValue: null,
|
|
23412
23413
|
label: null,
|
|
23413
|
-
labelAlign: null
|
|
23414
|
+
labelAlign: null,
|
|
23415
|
+
layout: null,
|
|
23416
|
+
borderColor: null
|
|
23414
23417
|
},
|
|
23415
23418
|
emits: ["update:modelValue"],
|
|
23416
23419
|
setup(__props, { emit: emits }) {
|
|
23417
23420
|
const props = __props;
|
|
23421
|
+
let cleekOptions2;
|
|
23418
23422
|
const value = computed$2({
|
|
23419
23423
|
get() {
|
|
23420
23424
|
return props.modelValue;
|
|
@@ -23423,6 +23427,28 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23423
23427
|
emits("update:modelValue", val);
|
|
23424
23428
|
}
|
|
23425
23429
|
});
|
|
23430
|
+
const computedClassTextarea = computed$2(() => {
|
|
23431
|
+
const list = [];
|
|
23432
|
+
const layout = hooks8.geRealLayout(props, cleekOptions2);
|
|
23433
|
+
if (layout)
|
|
23434
|
+
list.push(layout);
|
|
23435
|
+
const borderColor = hooks8.geRealBorderColor(props, cleekOptions2);
|
|
23436
|
+
if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
|
|
23437
|
+
list.push(`ck-component__border-color--${borderColor}`);
|
|
23438
|
+
}
|
|
23439
|
+
return list;
|
|
23440
|
+
});
|
|
23441
|
+
const computedStyleTextarea = computed$2(() => {
|
|
23442
|
+
const list = [];
|
|
23443
|
+
const borderColor = hooks8.geRealBorderColor(props, cleekOptions2);
|
|
23444
|
+
if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
|
|
23445
|
+
list.push({ "border-color": borderColor });
|
|
23446
|
+
}
|
|
23447
|
+
return list;
|
|
23448
|
+
});
|
|
23449
|
+
onMounted(() => {
|
|
23450
|
+
cleekOptions2 = hooks8.getCleekOptions(getCurrentInstance);
|
|
23451
|
+
});
|
|
23426
23452
|
return (_ctx, _cache) => {
|
|
23427
23453
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
23428
23454
|
__props.label ? (openBlock(), createBlock(CkLabel, {
|
|
@@ -23435,15 +23461,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23435
23461
|
_: 1
|
|
23436
23462
|
}, 8, ["label-align"])) : createCommentVNode("", true),
|
|
23437
23463
|
withDirectives(createElementVNode("textarea", {
|
|
23438
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null)
|
|
23439
|
-
|
|
23464
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
23465
|
+
class: normalizeClass(unref$1(computedClassTextarea)),
|
|
23466
|
+
style: normalizeStyle(unref$1(computedStyleTextarea))
|
|
23467
|
+
}, null, 6), [
|
|
23440
23468
|
[vModelText, unref$1(value)]
|
|
23441
23469
|
])
|
|
23442
23470
|
]);
|
|
23443
23471
|
};
|
|
23444
23472
|
}
|
|
23445
23473
|
});
|
|
23446
|
-
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
23474
|
+
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1ba68b2e"]]);
|
|
23447
23475
|
var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23448
23476
|
const _withScopeId = (n) => (pushScopeId("data-v-bc51fc7a"), n = n(), popScopeId(), n);
|
|
23449
23477
|
const _hoisted_1$1 = { class: "ck-confirm--background" };
|