瀏覽代碼

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