2
0
Эх сурвалжийг харах

types: relax OptionHTMLAttributes.value type requirement

fix #4574
Evan You 4 жил өмнө
parent
commit
93949ed20a

+ 1 - 1
packages/runtime-dom/types/jsx.d.ts

@@ -584,7 +584,7 @@ export interface OptionHTMLAttributes extends HTMLAttributes {
   disabled?: Booleanish
   label?: string
   selected?: Booleanish
-  value?: string | string[] | number
+  value?: any // we support :value to be bound to anything w/ v-model
 }
 
 export interface OutputHTMLAttributes extends HTMLAttributes {