Skip to content

Commit 91d8e3a

Browse files
List/GridView: added gradient
1 parent aba86a6 commit 91d8e3a

File tree

1 file changed

+2
-1
lines changed
  • client/packages/lowcoder/src/comps/comps/listViewComp

1 file changed

+2
-1
lines changed

client/packages/lowcoder/src/comps/comps/listViewComp/listView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ import { getCurrentItemParams, getData } from "./listViewUtils";
2121
import { useMergeCompStyles } from "@lowcoder-ee/util/hooks";
2222
import { childrenToProps } from "@lowcoder-ee/comps/generators/multi";
2323
import { AnimationStyleType } from "@lowcoder-ee/comps/controls/styleControlConstants";
24+
import { getBackgroundStyle } from "@lowcoder-ee/util/styleUtils";
2425

2526
const ListViewWrapper = styled.div<{ $style: any; $paddingWidth: string,$animationStyle:AnimationStyleType }>`
2627
height: 100%;
2728
border: 1px solid ${(props) => props.$style.border};
2829
border-radius: ${(props) => props.$style.radius};
2930
padding: 3px ${(props) => props.$paddingWidth};
3031
rotate: ${(props) => props.$style.rotation};
31-
background-color: ${(props) => props.$style.background};
32+
${props => getBackgroundStyle(props.$style)}
3233
${props=>props.$animationStyle}
3334
3435
`;

0 commit comments

Comments
 (0)