fix: Icon fill default value (#121)

This commit is contained in:
luoxiaozero 2024-02-26 16:09:20 +08:00 committed by GitHub
parent df57bca909
commit f035555626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ pub fn Icon(
icon_stroke_linejoin.set(icon.stroke_linejoin.map(|a| a.into_attribute())); icon_stroke_linejoin.set(icon.stroke_linejoin.map(|a| a.into_attribute()));
icon_stroke_width.set(icon.stroke_width.map(|a| a.into_attribute())); icon_stroke_width.set(icon.stroke_width.map(|a| a.into_attribute()));
icon_stroke.set(icon.stroke.map(|a| a.into_attribute())); icon_stroke.set(icon.stroke.map(|a| a.into_attribute()));
icon_fill.set(icon.fill.map(|a| a.into_attribute())); icon_fill.set(Some(icon.fill.unwrap_or("currentColor").into_attribute()));
icon_data.set(Some(icon.data.into_attribute())); icon_data.set(Some(icon.data.into_attribute()));
}); });