瀏覽代碼

types: relax OptionHTMLAttributes.value type requirement

fix #4574
Evan You 4 年之前
父節點
當前提交
93949ed20a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
   disabled?: Booleanish
   label?: string
   label?: string
   selected?: Booleanish
   selected?: Booleanish
-  value?: string | string[] | number
+  value?: any // we support :value to be bound to anything w/ v-model
 }
 }
 
 
 export interface OutputHTMLAttributes extends HTMLAttributes {
 export interface OutputHTMLAttributes extends HTMLAttributes {