Pārlūkot izejas kodu

types: relax OptionHTMLAttributes.value type requirement

fix #4574
Evan You 4 gadi atpakaļ
vecāks
revīzija
93949ed20a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/runtime-dom/types/jsx.d.ts

+ 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 {