cleek 2.3.36 → 2.3.37
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 +24 -8
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -16791,7 +16791,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16791
16791
|
classList2.push("rounded");
|
|
16792
16792
|
classList2.push(`type-${realButtonType.value}`);
|
|
16793
16793
|
if (props.size)
|
|
16794
|
-
classList2.push(`
|
|
16794
|
+
classList2.push(`ck-button-size__${props.size}`);
|
|
16795
16795
|
return classList2;
|
|
16796
16796
|
});
|
|
16797
16797
|
const computedStyle = computed$2(() => {
|
|
@@ -16835,13 +16835,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16835
16835
|
};
|
|
16836
16836
|
}
|
|
16837
16837
|
});
|
|
16838
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
16838
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-4a61847a"]]);
|
|
16839
16839
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16840
16840
|
const _hoisted_1$f = ["for"];
|
|
16841
16841
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
16842
16842
|
props: {
|
|
16843
16843
|
for: { type: String, default: "" },
|
|
16844
|
-
align: { type: String, default: "" }
|
|
16844
|
+
align: { type: String, default: "" },
|
|
16845
|
+
size: { type: String, default: "m" }
|
|
16845
16846
|
},
|
|
16846
16847
|
setup(__props) {
|
|
16847
16848
|
const props = __props;
|
|
@@ -16851,6 +16852,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16851
16852
|
if (props.align === "center" || props.align === "right")
|
|
16852
16853
|
align = props.align;
|
|
16853
16854
|
list.push(`ck-align--${align}`);
|
|
16855
|
+
list.push(`ck-size--${props.size}`);
|
|
16854
16856
|
return list;
|
|
16855
16857
|
});
|
|
16856
16858
|
return (_ctx, _cache) => {
|
|
@@ -16863,7 +16865,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16863
16865
|
};
|
|
16864
16866
|
}
|
|
16865
16867
|
});
|
|
16866
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
16868
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-400ea765"]]);
|
|
16867
16869
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16868
16870
|
const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
|
|
16869
16871
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
@@ -16881,9 +16883,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16881
16883
|
group: { type: String, default: void 0 },
|
|
16882
16884
|
lineBreak: { type: [String, Number], default: "" },
|
|
16883
16885
|
groupVertical: { type: String, default: void 0 },
|
|
16886
|
+
size: { type: String, default: "m", validator: validators.size },
|
|
16884
16887
|
hideBorder: { type: Boolean, default: false },
|
|
16885
16888
|
width: { type: String, default: void 0 },
|
|
16886
16889
|
align: { type: String, validator: validators.align, default: void 0 },
|
|
16890
|
+
rounded: { type: Boolean, default: false },
|
|
16887
16891
|
autoSelect: { type: Boolean, default: false }
|
|
16888
16892
|
},
|
|
16889
16893
|
emits: ["update:modelValue", "click", "input", "change"],
|
|
@@ -16900,6 +16904,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16900
16904
|
emits("update:modelValue", val);
|
|
16901
16905
|
}
|
|
16902
16906
|
});
|
|
16907
|
+
const realLabelAlign = computed$2(() => {
|
|
16908
|
+
if (props.labelAlign)
|
|
16909
|
+
return props.labelAlign;
|
|
16910
|
+
if (props.align)
|
|
16911
|
+
return props.align;
|
|
16912
|
+
return "left";
|
|
16913
|
+
});
|
|
16903
16914
|
const onClick = (event) => {
|
|
16904
16915
|
if (props.autoSelect)
|
|
16905
16916
|
event.target.select();
|
|
@@ -16927,6 +16938,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16927
16938
|
list.push(`align--${props.align}`);
|
|
16928
16939
|
if (props.hideBorder)
|
|
16929
16940
|
list.push("no-border");
|
|
16941
|
+
if (props.rounded)
|
|
16942
|
+
list.push("rounded");
|
|
16943
|
+
if (props.size)
|
|
16944
|
+
list.push(`ck-input-size__${props.size}`);
|
|
16930
16945
|
return list;
|
|
16931
16946
|
});
|
|
16932
16947
|
const computedStyle = computed$2(() => {
|
|
@@ -16954,14 +16969,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16954
16969
|
}, [
|
|
16955
16970
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
16956
16971
|
key: 0,
|
|
16957
|
-
align:
|
|
16958
|
-
for: "ck-input"
|
|
16972
|
+
align: unref$1(realLabelAlign),
|
|
16973
|
+
for: "ck-input",
|
|
16974
|
+
size: __props.size
|
|
16959
16975
|
}, {
|
|
16960
16976
|
default: withCtx(() => [
|
|
16961
16977
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
16962
16978
|
]),
|
|
16963
16979
|
_: 1
|
|
16964
|
-
}, 8, ["align"])) : createCommentVNode("", true),
|
|
16980
|
+
}, 8, ["align", "size"])) : createCommentVNode("", true),
|
|
16965
16981
|
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
16966
16982
|
key: 1,
|
|
16967
16983
|
class: "ck-input__icon-left",
|
|
@@ -16996,7 +17012,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16996
17012
|
};
|
|
16997
17013
|
}
|
|
16998
17014
|
});
|
|
16999
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
17015
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-645f8505"]]);
|
|
17000
17016
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17001
17017
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
17002
17018
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|