cleek 2.4.61 → 2.4.65
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 +22 -8
- package/dist/cleek.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -21944,6 +21944,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21944
21944
|
layout: null,
|
|
21945
21945
|
borderColor: null,
|
|
21946
21946
|
textColor: null,
|
|
21947
|
+
autofocus: { type: Boolean },
|
|
21947
21948
|
capitalize: { type: Boolean },
|
|
21948
21949
|
autoSelect: { type: Boolean },
|
|
21949
21950
|
delayChangeTime: null
|
|
@@ -22060,6 +22061,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22060
22061
|
]);
|
|
22061
22062
|
onMounted(() => {
|
|
22062
22063
|
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
22064
|
+
if (props.autofocus) {
|
|
22065
|
+
setFocus();
|
|
22066
|
+
}
|
|
22063
22067
|
});
|
|
22064
22068
|
return (_ctx, _cache) => {
|
|
22065
22069
|
return openBlock(), createElementBlock("div", {
|
|
@@ -22141,7 +22145,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22141
22145
|
};
|
|
22142
22146
|
}
|
|
22143
22147
|
});
|
|
22144
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
22148
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1beb528a"]]);
|
|
22145
22149
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22146
22150
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
22147
22151
|
props: {
|
|
@@ -23312,14 +23316,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
23312
23316
|
const computedStyleContent = computed$2(() => {
|
|
23313
23317
|
var _a, _b, _c;
|
|
23314
23318
|
const list = [];
|
|
23315
|
-
const
|
|
23316
|
-
if (maxWidth)
|
|
23317
|
-
list.push({ "max-width": maxWidth });
|
|
23318
|
-
const fontSize = props.fontSize || ((_b = cleekOptions2.value) == null ? void 0 : _b.popup.fontSize);
|
|
23319
|
+
const fontSize = props.fontSize || ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.fontSize);
|
|
23319
23320
|
if (fontSize)
|
|
23320
23321
|
list.push({ "font-size": fontSize });
|
|
23321
23322
|
if (props.width)
|
|
23322
23323
|
list.push({ width: props.width });
|
|
23324
|
+
const maxWidth = props.width ? "95%" : props.maxWidth || ((_b = cleekOptions2.value) == null ? void 0 : _b.popup.maxWidth);
|
|
23325
|
+
if (maxWidth)
|
|
23326
|
+
list.push({ "max-width": maxWidth });
|
|
23323
23327
|
const textColor = props.textColor || ((_c = cleekOptions2.value) == null ? void 0 : _c.popup.textColor);
|
|
23324
23328
|
if (textColor && !hooks8.isColorTemplateVariable(textColor)) {
|
|
23325
23329
|
list.push(`ck-component__color--${textColor}`);
|
|
@@ -23785,6 +23789,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
23785
23789
|
textColor: null,
|
|
23786
23790
|
align: null,
|
|
23787
23791
|
icon: null,
|
|
23792
|
+
iconRight: null,
|
|
23788
23793
|
iconPack: null
|
|
23789
23794
|
},
|
|
23790
23795
|
emits: ["click"],
|
|
@@ -23810,17 +23815,26 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
23810
23815
|
style: normalizeStyle(unref$1(computedStyle)),
|
|
23811
23816
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
23812
23817
|
}, [
|
|
23813
|
-
__props.icon ? (openBlock(), createBlock(CkIcon, {
|
|
23818
|
+
__props.icon && !__props.iconRight ? (openBlock(), createBlock(CkIcon, {
|
|
23814
23819
|
key: 0,
|
|
23820
|
+
class: "pr-2",
|
|
23815
23821
|
icon: __props.icon,
|
|
23816
23822
|
"icon-pack": __props.iconPack
|
|
23817
23823
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23818
|
-
|
|
23824
|
+
createElementVNode("span", null, [
|
|
23825
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
23826
|
+
]),
|
|
23827
|
+
__props.icon && __props.iconRight ? (openBlock(), createBlock(CkIcon, {
|
|
23828
|
+
key: 1,
|
|
23829
|
+
class: "pl-2",
|
|
23830
|
+
icon: __props.icon,
|
|
23831
|
+
"icon-pack": __props.iconPack
|
|
23832
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
23819
23833
|
], 14, _hoisted_1$a);
|
|
23820
23834
|
};
|
|
23821
23835
|
}
|
|
23822
23836
|
});
|
|
23823
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
23837
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-79eb3d08"]]);
|
|
23824
23838
|
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
23825
23839
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
23826
23840
|
props: {
|