We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a586cd4 commit fb6c916Copy full SHA for fb6c916
1 file changed
src/index.ts
@@ -51,8 +51,8 @@ export default defineComponent({
51
}
52
53
// Monitor changes in modelValue and assign a data format that conforms to the input.
54
- watch(() => modelValue, (newValue): void => {
55
- data.securityCode = newValue.toString().substr(0, len).split('');
+ watch(() => modelValue, (newValue: string): void => {
+ data.securityCode = newValue.substr(0, len).split('');
56
57
// When the value passed by the parent component is greater than the set required length, we will refresh the
58
// current value according to the provided data format and length.
0 commit comments