Skip to content

Commit 152b719

Browse files
committed
Add bg img
1 parent 6c25c5d commit 152b719

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libs/css/src/constant.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
2828
"bgClip" => &["background-clip"],
2929
"bgColor" => &["background-color"],
3030
"bgImage" => &["background-image"],
31+
"bgImg" => &["background-image"],
3132
"bgOrigin" => &["background-origin"],
3233
"bgPosition" => &["background-position"],
3334
"bgPositionX" => &["background-position-x"],
@@ -38,6 +39,7 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
3839
"bgRepeat" => &["background-repeat"],
3940
"bgSize" => &["background-size"],
4041
"bgBlendMode" => &["background-blend-mode"],
42+
"backgroundImg" => &["background-image"],
4143
"animationDir" => &["animation-direction"],
4244
"flexDir" => &["flex-direction"],
4345
"pos" => &["position"],

packages/react/src/types/props/background.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ export interface DevupUiBackgroundProps {
1919
bgRepeat?: ResponsiveValue<Property.BackgroundRepeat>
2020
bgSize?: ResponsiveValue<Property.BackgroundSize>
2121
bgBlendMode?: ResponsiveValue<Property.BackgroundBlendMode>
22+
backgroundImg?: ResponsiveValue<Property.BackgroundImage>
23+
bgImg?: ResponsiveValue<Property.BackgroundImage>
2224
}

0 commit comments

Comments
 (0)