Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffa9e3b

Browse files
committed
CFormInput model-prop allow String and Number
For `<CFormInput type="number" v-model.number="myNumberProperty" /> a validation error will occur otherwise.
1 parent9e53809 commitffa9e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/coreui-vue/src/components/form/CFormInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const CFormInput = defineComponent({
6767
* The default name for a value passed using v-model.
6868
*/
6969
modelValue:{
70-
type:String,
70+
type:[String,Number],
7171
default:undefined,
7272
},
7373
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp