cleek 2.4.7 → 2.4.10
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 +32 -37
- package/dist/cleek.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -2896,14 +2896,13 @@ const cleekOptions = {
|
|
|
2896
2896
|
},
|
|
2897
2897
|
button: {
|
|
2898
2898
|
type: "outlined",
|
|
2899
|
-
|
|
2899
|
+
layout: "base"
|
|
2900
2900
|
},
|
|
2901
2901
|
img: {
|
|
2902
2902
|
basePath: ""
|
|
2903
2903
|
},
|
|
2904
2904
|
styles: {
|
|
2905
|
-
|
|
2906
|
-
rounded: false,
|
|
2905
|
+
layout: "base",
|
|
2907
2906
|
borderColor: "#dae1e7"
|
|
2908
2907
|
}
|
|
2909
2908
|
};
|
|
@@ -18792,15 +18791,6 @@ var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
18792
18791
|
const _sfc_main$o = {};
|
|
18793
18792
|
var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", render2], ["__scopeId", "data-v-519cf874"]]);
|
|
18794
18793
|
var functions = {
|
|
18795
|
-
getBorderColorValue(propBorderColor, cleekOptions2) {
|
|
18796
|
-
var _a;
|
|
18797
|
-
if (typeof propBorderColor !== "undefined")
|
|
18798
|
-
return propBorderColor;
|
|
18799
|
-
if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor) !== "undefined") {
|
|
18800
|
-
return cleekOptions2.styles.borderColor;
|
|
18801
|
-
}
|
|
18802
|
-
return "";
|
|
18803
|
-
},
|
|
18804
18794
|
getCleekOptions(getCurrentInstance2) {
|
|
18805
18795
|
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
18806
18796
|
},
|
|
@@ -18817,16 +18807,19 @@ var functions = {
|
|
|
18817
18807
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
18818
18808
|
return classList2;
|
|
18819
18809
|
},
|
|
18820
|
-
|
|
18821
|
-
|
|
18822
|
-
|
|
18823
|
-
if (
|
|
18824
|
-
return
|
|
18825
|
-
|
|
18826
|
-
|
|
18827
|
-
|
|
18828
|
-
|
|
18829
|
-
|
|
18810
|
+
geRealBorderColor(props, cleekOptions2) {
|
|
18811
|
+
if (props.borderColor)
|
|
18812
|
+
return props.borderColor;
|
|
18813
|
+
if (cleekOptions2.styles.borderColor)
|
|
18814
|
+
return cleekOptions2.styles.borderColor;
|
|
18815
|
+
return "";
|
|
18816
|
+
},
|
|
18817
|
+
geRealLayout(props, cleekOptions2) {
|
|
18818
|
+
if (props.layout)
|
|
18819
|
+
return props.layout;
|
|
18820
|
+
if (cleekOptions2.styles.layout)
|
|
18821
|
+
return cleekOptions2.styles.layout;
|
|
18822
|
+
return "";
|
|
18830
18823
|
},
|
|
18831
18824
|
getWidthByWidthBreaks(widthBreaks, windowWidth) {
|
|
18832
18825
|
if (widthBreaks) {
|
|
@@ -20891,7 +20884,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20891
20884
|
align: null,
|
|
20892
20885
|
size: null,
|
|
20893
20886
|
width: null,
|
|
20894
|
-
|
|
20887
|
+
layout: null,
|
|
20895
20888
|
icon: null,
|
|
20896
20889
|
iconRight: null,
|
|
20897
20890
|
iconPack: null,
|
|
@@ -20931,8 +20924,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20931
20924
|
if (align === "center" || align === "right") {
|
|
20932
20925
|
list.push(`ck-button__align--${props.align}`);
|
|
20933
20926
|
}
|
|
20934
|
-
|
|
20935
|
-
|
|
20927
|
+
const layout = functions.geRealLayout(props, cleekOptions2);
|
|
20928
|
+
if (layout)
|
|
20929
|
+
list.push(layout);
|
|
20936
20930
|
list.push(`type-${realButtonType.value}`);
|
|
20937
20931
|
if (props.size)
|
|
20938
20932
|
list.push(`ck-button-size__${props.size}`);
|
|
@@ -20990,7 +20984,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20990
20984
|
};
|
|
20991
20985
|
}
|
|
20992
20986
|
});
|
|
20993
|
-
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
20987
|
+
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-591130bc"]]);
|
|
20994
20988
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
20995
20989
|
const _hoisted_1$h = ["for"];
|
|
20996
20990
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
@@ -21043,7 +21037,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21043
21037
|
hideBorder: { type: Boolean },
|
|
21044
21038
|
width: null,
|
|
21045
21039
|
align: null,
|
|
21046
|
-
|
|
21040
|
+
layout: null,
|
|
21047
21041
|
borderColor: null,
|
|
21048
21042
|
autoSelect: { type: Boolean },
|
|
21049
21043
|
delayChangeTime: null
|
|
@@ -21096,8 +21090,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21096
21090
|
list.push(`align--${props.align}`);
|
|
21097
21091
|
if (props.hideBorder)
|
|
21098
21092
|
list.push("no-border");
|
|
21099
|
-
|
|
21100
|
-
|
|
21093
|
+
const layout = functions.geRealLayout(props, cleekOptions2);
|
|
21094
|
+
if (layout)
|
|
21095
|
+
list.push(layout);
|
|
21101
21096
|
if (props.size)
|
|
21102
21097
|
list.push(`ck-input-size__${props.size}`);
|
|
21103
21098
|
if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
|
|
@@ -21199,7 +21194,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21199
21194
|
};
|
|
21200
21195
|
}
|
|
21201
21196
|
});
|
|
21202
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
21197
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-2d610c78"]]);
|
|
21203
21198
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21204
21199
|
const _hoisted_1$f = { class: "ck-table__header-items" };
|
|
21205
21200
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -22951,7 +22946,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22951
22946
|
searchable: { type: [Boolean, String] },
|
|
22952
22947
|
minWidth: null,
|
|
22953
22948
|
noBorder: { type: Boolean },
|
|
22954
|
-
|
|
22949
|
+
layout: null,
|
|
22955
22950
|
borderColor: null,
|
|
22956
22951
|
bgTransparent: { type: Boolean },
|
|
22957
22952
|
disabled: { type: Boolean },
|
|
@@ -23002,11 +22997,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23002
22997
|
const computedClassSelect = computed$2(() => {
|
|
23003
22998
|
const list = [];
|
|
23004
22999
|
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
23005
|
-
|
|
23006
|
-
|
|
23000
|
+
const layout = functions.geRealLayout(props, cleekOptions2);
|
|
23001
|
+
if (layout)
|
|
23002
|
+
list.push(layout);
|
|
23007
23003
|
if (isClearBtnVisible.value)
|
|
23008
23004
|
list.push("clear-able");
|
|
23009
|
-
const borderColor = functions.
|
|
23005
|
+
const borderColor = functions.geRealBorderColor(props, cleekOptions2);
|
|
23010
23006
|
if (borderColor && functions.isColorTemplateVariable(borderColor)) {
|
|
23011
23007
|
list.push(`ck-input--border-color__${props.borderColor}`);
|
|
23012
23008
|
}
|
|
@@ -23014,7 +23010,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23014
23010
|
});
|
|
23015
23011
|
const computedStyleSelect = computed$2(() => {
|
|
23016
23012
|
const list = [];
|
|
23017
|
-
const borderColor = functions.
|
|
23013
|
+
const borderColor = functions.geRealBorderColor(props, cleekOptions2);
|
|
23018
23014
|
if (borderColor && functions.isColorTemplateVariable(borderColor)) {
|
|
23019
23015
|
list.push(`ck-input--border-color__${props.borderColor}`);
|
|
23020
23016
|
}
|
|
@@ -23155,7 +23151,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23155
23151
|
};
|
|
23156
23152
|
}
|
|
23157
23153
|
});
|
|
23158
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23154
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-cbfee918"]]);
|
|
23159
23155
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23160
23156
|
const _hoisted_1$5 = {
|
|
23161
23157
|
key: 1,
|
|
@@ -23659,7 +23655,6 @@ function getCleekOptions(userOptions) {
|
|
|
23659
23655
|
}
|
|
23660
23656
|
}
|
|
23661
23657
|
setRootColors(options.colors);
|
|
23662
|
-
console.log("finalOptions", options);
|
|
23663
23658
|
return options;
|
|
23664
23659
|
}
|
|
23665
23660
|
const install = function installCleek(app, options) {
|