]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): added name attribute support to details tag (#11823)
author白雾三语 <32354856+baiwusanyu-c@users.noreply.github.com>
Thu, 5 Sep 2024 09:53:05 +0000 (17:53 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 09:53:05 +0000 (17:53 +0800)
close #11821

packages-private/dts-test/tsx.test-d.tsx
packages/runtime-dom/src/jsx.ts

index 63945c0629b41c15ef0957d0441cee034a0ac5f8..0cd380f0447075a7e97c671791e8e27ef04d785c 100644 (file)
@@ -121,3 +121,5 @@ expectType<JSX.Element>(
     xmlns="http://www.w3.org/2000/svg"
   />,
 )
+// details
+expectType<JSX.Element>(<details name="details" />)
index 4b67f16a97e02a4a65c6f98f69e8c600ffb5257c..b3f0d0976982e1635265a51b62964e50116502c5 100644 (file)
@@ -405,6 +405,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
 }
 
 export interface DetailsHTMLAttributes extends HTMLAttributes {
+  name?: string
   open?: Booleanish
   onToggle?: (payload: ToggleEvent) => void
 }