bge-ui 1.5.9 → 1.6.0

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
@@ -6213,13 +6213,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6213
6213
  const prefixSlot = useSlots().prefix;
6214
6214
  const isFocus = ref(false);
6215
6215
  const isClearHover = ref(false);
6216
- function handleFocus() {
6216
+ function handleFocus(event) {
6217
6217
  isFocus.value = true;
6218
- emit("focus");
6218
+ emit("focus", event);
6219
6219
  }
6220
6220
  function handleBlur(event) {
6221
6221
  isFocus.value = false;
6222
- emit("blur");
6222
+ emit("blur", event);
6223
6223
  emit("update:modelValue", toNormal(event.target.value));
6224
6224
  }
6225
6225
  watch(() => props.modelValue, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.5.9",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -69,14 +69,14 @@ const suffixSlot = useSlots().suffix
69
69
  const prefixSlot = useSlots().prefix
70
70
  const isFocus = ref(false)
71
71
  const isClearHover = ref<Boolean>(false)
72
- function handleFocus() {
72
+ function handleFocus(event: any) {
73
73
  isFocus.value = true
74
- emit('focus')
74
+ emit('focus', event)
75
75
  }
76
76
 
77
77
  function handleBlur(event: any) {
78
78
  isFocus.value = false
79
- emit('blur')
79
+ emit('blur', event)
80
80
  emit('update:modelValue', toNormal(event.target.value))
81
81
  }
82
82