cleek 2.4.60 → 2.4.63

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 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", {
@@ -22115,14 +22119,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22115
22119
  disabled: __props.disabled,
22116
22120
  onChange: _cache[7] || (_cache[7] = ($event) => onChange2($event)),
22117
22121
  onInput: _cache[8] || (_cache[8] = ($event) => onInput($event)),
22118
- onClick: _cache[9] || (_cache[9] = ($event) => onClick2($event))
22122
+ onClick: _cache[9] || (_cache[9] = ($event) => onClick2($event)),
22123
+ onFocus: _cache[10] || (_cache[10] = ($event) => emits("focus", $event)),
22124
+ onBlur: _cache[11] || (_cache[11] = ($event) => emits("blur", $event))
22119
22125
  }, null, 46, _hoisted_2$c)), [
22120
22126
  [vModelDynamic, unref$1(value)]
22121
22127
  ]),
22122
22128
  __props.type === "password" ? (openBlock(), createElementBlock("div", {
22123
22129
  key: 4,
22124
22130
  class: "show-password",
22125
- onClick: _cache[10] || (_cache[10] = ($event) => isShowingPassword.value = !isShowingPassword.value)
22131
+ onClick: _cache[12] || (_cache[12] = ($event) => isShowingPassword.value = !isShowingPassword.value)
22126
22132
  }, [
22127
22133
  createVNode(CkIcon, {
22128
22134
  icon: isShowingPassword.value ? "eye-slash" : "eye"
@@ -22139,7 +22145,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22139
22145
  };
22140
22146
  }
22141
22147
  });
22142
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b4c899d2"]]);
22148
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1beb528a"]]);
22143
22149
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
22144
22150
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
22145
22151
  props: {
@@ -23783,6 +23789,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
23783
23789
  textColor: null,
23784
23790
  align: null,
23785
23791
  icon: null,
23792
+ iconRight: null,
23786
23793
  iconPack: null
23787
23794
  },
23788
23795
  emits: ["click"],
@@ -23808,17 +23815,26 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
23808
23815
  style: normalizeStyle(unref$1(computedStyle)),
23809
23816
  onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
23810
23817
  }, [
23811
- __props.icon ? (openBlock(), createBlock(CkIcon, {
23818
+ __props.icon && !__props.iconRight ? (openBlock(), createBlock(CkIcon, {
23812
23819
  key: 0,
23820
+ class: "pr-2",
23813
23821
  icon: __props.icon,
23814
23822
  "icon-pack": __props.iconPack
23815
23823
  }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
23816
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
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)
23817
23833
  ], 14, _hoisted_1$a);
23818
23834
  };
23819
23835
  }
23820
23836
  });
23821
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c7cdf0ec"]]);
23837
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-79eb3d08"]]);
23822
23838
  var ckDiv_vue_vue_type_style_index_0_lang = "";
23823
23839
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
23824
23840
  props: {