ソースを参照

types(runtime-dom): fix jsx type for IDE v-model inference

fix #4321
Evan You 4 年 前
コミット
77223df2d2
1 ファイル変更2 行追加2 行削除
  1. 2 2
      packages/runtime-dom/types/jsx.d.ts

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

@@ -455,7 +455,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
   autocomplete?: string
   autocomplete?: string
   autofocus?: Booleanish
   autofocus?: Booleanish
   capture?: boolean | 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
   capture?: boolean | 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
-  checked?: Booleanish
+  checked?: Booleanish | any[] // for IDE v-model multi-checkbox support
   crossorigin?: string
   crossorigin?: string
   disabled?: Booleanish
   disabled?: Booleanish
   form?: string
   form?: string
@@ -480,7 +480,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
   src?: string
   src?: string
   step?: Numberish
   step?: Numberish
   type?: string
   type?: string
-  value?: string | string[] | number
+  value?: any // we support :value to be bound to anything w/ v-model
   width?: Numberish
   width?: Numberish
 }
 }