@antify/ui 4.1.29 → 4.1.31

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.
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import {
3
- computed, onMounted, ref,
3
+ computed, nextTick, onMounted, ref, watch,
4
4
  } from 'vue';
5
5
  import AntField from '../forms/AntField.vue';
6
6
  import AntBaseInput from './Elements/AntBaseInput.vue';
@@ -109,6 +109,10 @@ const onBlur = () => {
109
109
 
110
110
  emit('update:modelValue', _modelValue.value);
111
111
  };
112
+
113
+ watch(() => props.modelValue, (val) => {
114
+ _modelValue.value = val;
115
+ });
112
116
  </script>
113
117
 
114
118
  <template>
@@ -137,7 +141,7 @@ const onBlur = () => {
137
141
  :grouped="_nullable ? Grouped.left : Grouped.none"
138
142
  v-bind="$attrs"
139
143
  @blur="onBlur"
140
- @validate="val => $emit('validate', val)"
144
+ @validate="val => nextTick(() => $emit('validate', val))"
141
145
  >
142
146
  <template #icon-right>
143
147
  <AntIcon
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antify/ui",
3
- "version": "4.1.29",
3
+ "version": "4.1.31",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {