Skip to content

Commit 21564cf

Browse files
author
mayintao3
committed
fix: 修复visibility解析成display的bug
1 parent ce8303f commit 21564cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style_propetries/visibility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl From<(String, &Property<'_>)> for Visibility {
4242
impl ToExpr for Visibility {
4343
fn to_expr(&self) -> PropertyTuple {
4444
PropertyTuple::One(
45-
CSSPropertyType::Display,
45+
CSSPropertyType::Visibility,
4646
match &self.value {
4747
EnumValue::Visible => generate_expr_enum!(style_property_enum::ArkUI_Visibility::ARKUI_VISIBILITY_VISIBLE),
4848
EnumValue::Hidden => generate_expr_enum!(style_property_enum::ArkUI_Visibility::ARKUI_VISIBILITY_HIDDEN),

0 commit comments

Comments
 (0)