Skip to content

Commit

Permalink
fix: 修复visibility解析成display的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mayintao3 committed Jul 16, 2024
1 parent ce8303f commit 21564cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style_propetries/visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl From<(String, &Property<'_>)> for Visibility {
impl ToExpr for Visibility {
fn to_expr(&self) -> PropertyTuple {
PropertyTuple::One(
CSSPropertyType::Display,
CSSPropertyType::Visibility,
match &self.value {
EnumValue::Visible => generate_expr_enum!(style_property_enum::ArkUI_Visibility::ARKUI_VISIBILITY_VISIBLE),
EnumValue::Hidden => generate_expr_enum!(style_property_enum::ArkUI_Visibility::ARKUI_VISIBILITY_HIDDEN),
Expand Down

0 comments on commit 21564cf

Please # to comment.