浏览代码

fix int and float raw values in ssr

Evan Almloff 2 年之前
父节点
当前提交
96397f08d0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/ssr/src/renderer.rs

+ 2 - 0
packages/ssr/src/renderer.rs

@@ -77,6 +77,8 @@ impl Renderer {
                     match attr.value {
                         AttributeValue::Text(value) => write!(buf, " {}=\"{}\"", attr.name, value)?,
                         AttributeValue::Bool(value) => write!(buf, " {}={}", attr.name, value)?,
+                        AttributeValue::Int(value) => write!(buf, " {}={}", attr.name, value)?,
+                        AttributeValue::Float(value) => write!(buf, " {}={}", attr.name, value)?,
                         _ => {}
                     };
                 }