File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 33 :value =" modelValue"
44 type =" text"
55 class =" shadow-sm rounded-md text-base transition-all disabled:cursor-not-allowed disabled:border-gray-300 disabled:text-gray-300 focus:border-primary focus:ring focus:ring-offset-0 focus:ring-primary focus:ring-opacity-50"
6- @input =" $emit('update:modelValue', $event.target.value)"
6+ @change =" $emit('update:modelValue', $event.target.value)"
77 />
88</template >
99
Original file line number Diff line number Diff line change 1313<script >
1414import directive from " ../../../src/directive" ;
1515import options from " ../../../src/options" ;
16+ let emitTimer;
1617
1718export default {
1819 props: {
@@ -103,12 +104,6 @@ export default {
103104 this .maskedValue = val;
104105 }
105106 },
106- config: {
107- immediate: true ,
108- handler (val ) {
109- this .$emit (" update:model-value" , this .emittedValue || this .modelValue );
110- },
111- },
112107 },
113108};
114109 </script >
Original file line number Diff line number Diff line change @@ -111,13 +111,10 @@ export default {
111111 config: {
112112 deep: true ,
113113 handler (val ) {
114- clearTimeout (emitTimer);
115- emitTimer = setTimeout (() => {
116- this .updated = false
117- this .$nextTick (() => {
118- this .updated = true ;
119- });
120- }, 1000 );
114+ this .updated = false
115+ this .$nextTick (() => {
116+ this .updated = true ;
117+ });
121118 }
122119 }
123120 }
You can’t perform that action at this time.
0 commit comments