Преглед изворни кода

types(jsx): correct the naming of the enterKeyHint property (#14090)

shuang пре 5 месеци
родитељ
комит
f40baa2d50
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      packages/runtime-dom/src/jsx.ts

+ 5 - 1
packages/runtime-dom/src/jsx.ts

@@ -547,7 +547,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
   checked?: Booleanish | any[] | Set<any> | undefined // for IDE v-model multi-checkbox support
   crossorigin?: string | undefined
   disabled?: Booleanish | undefined
-  enterKeyHint?:
+  enterkeyhint?:
     | 'enter'
     | 'done'
     | 'go'
@@ -556,6 +556,10 @@ export interface InputHTMLAttributes extends HTMLAttributes {
     | 'search'
     | 'send'
     | undefined
+  /**
+   * @deprecated Use `enterkeyhint` instead.
+   */
+  enterKeyHint?: InputHTMLAttributes['enterkeyhint']
   form?: string | undefined
   formaction?: string | undefined
   formenctype?: string | undefined