瀏覽代碼

fix(types): support correct types for style on svg elements (#6322)

JayMe DotDot 3 年之前
父節點
當前提交
364dc53c7c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/runtime-dom/src/jsx.ts

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

@@ -775,7 +775,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
    * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
    */
   class?: any
-  style?: string | CSSProperties
+  style?: StyleValue
 
   color?: string
   height?: Numberish