]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: relax OptionHTMLAttributes.value type requirement
authorEvan You <yyx990803@gmail.com>
Thu, 16 Sep 2021 15:58:11 +0000 (11:58 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 16 Sep 2021 15:58:22 +0000 (11:58 -0400)
fix #4574

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

index 5cd19cc88f03d8a92a0f573bf1ef1dfc76ec2aaa..87580d7f200968fa0a564537aeaa6b7ddf9d3f7b 100644 (file)
@@ -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 {