Skip to content

Commit fb6c916

Browse files
committed
fix
1 parent a586cd4 commit fb6c916

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export default defineComponent({
5151
}
5252

5353
// 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('');
54+
watch(() => modelValue, (newValue: string): void => {
55+
data.securityCode = newValue.substr(0, len).split('');
5656

5757
// When the value passed by the parent component is greater than the set required length, we will refresh the
5858
// current value according to the provided data format and length.

0 commit comments

Comments
 (0)