bge-ui 1.4.4 → 1.4.5

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/index.js CHANGED
@@ -6292,7 +6292,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6292
6292
  class: normalizeClass(["bge-input__suffix", { suffix: !!unref(suffixSlot) }])
6293
6293
  }, [
6294
6294
  createElementVNode("span", _hoisted_6$5, [
6295
- input.value ? (openBlock(), createBlock(_sfc_main$27, {
6295
+ input.value && !__props.readonly && !__props.disabled ? (openBlock(), createBlock(_sfc_main$27, {
6296
6296
  key: 0,
6297
6297
  class: "bge-input__icon clear",
6298
6298
  onMouseover: _cache[2] || (_cache[2] = withModifiers(($event) => hoverClear(true), ["prevent"])),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -14,7 +14,7 @@
14
14
  @change="handleChange" @input="handleInput" />
15
15
  <span class="bge-input__suffix" :class="{ suffix: !!suffixSlot }">
16
16
  <span class="bge-input__suffix-inner">
17
- <mono-close class="bge-input__icon clear" v-if="input" @mouseover.prevent="hoverClear(true)"
17
+ <mono-close class="bge-input__icon clear" v-if="input && !readonly && !disabled" @mouseover.prevent="hoverClear(true)"
18
18
  @mouseout.prevent="hoverClear(false)" @click="handelClear" size="20" />
19
19
  <slot v-if="type !== 'textarea'" name="suffix" />
20
20
  </span>