فهرست منبع

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)?,
                         _ => {}
                     };
                 }