bge-ui 1.3.1 → 1.3.2

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
@@ -6198,6 +6198,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6198
6198
  emit("change", input.value);
6199
6199
  emit("update:modelValue", input.value);
6200
6200
  }
6201
+ onMounted(() => {
6202
+ if (props.modelValue) {
6203
+ input.value = props.modelValue;
6204
+ }
6205
+ });
6201
6206
  return (_ctx, _cache) => {
6202
6207
  return openBlock(), createElementBlock("div", _hoisted_1$7, [
6203
6208
  createElementVNode("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -24,7 +24,7 @@
24
24
  </template>
25
25
  <script setup lang="ts">
26
26
  import MonoClose from "../icons/MonoClose.vue";
27
- import { ref, useSlots, inject, watch } from 'vue'
27
+ import { ref, useSlots, inject, watch, onMounted } from 'vue'
28
28
  const props = defineProps({
29
29
  type: {
30
30
  type: String,
@@ -106,6 +106,12 @@ function handelClear() {
106
106
  emit('update:modelValue', input.value)
107
107
  }
108
108
 
109
+ onMounted(() => {
110
+ if (props.modelValue) {
111
+ input.value = props.modelValue
112
+ }
113
+ })
114
+
109
115
  </script>
110
116
  <style lang="scss">
111
117
  .bge-input {