Skip to content

Commit a52627f

Browse files
committed
added type for dropdown
1 parent a65755f commit a52627f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/packages/lowcoder/src/comps/comps/buttonComp/dropdownComp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { default as Dropdown } from "antd/es/dropdown";
33
import { default as DropdownButton } from "antd/es/dropdown/dropdown-button";
44
import { BoolControl } from "comps/controls/boolControl";
55
import { BoolCodeControl, StringControl } from "comps/controls/codeControl";
6-
import { DropdownStyle } from "comps/controls/styleControlConstants";
6+
import { DropdownStyle, DropdownStyleType } from "comps/controls/styleControlConstants";
77
import { withDefault } from "comps/generators";
88
import { UICompBuilder } from "comps/generators/uiCompBuilder";
99
import { disabledPropertyView, hiddenPropertyView } from "comps/utils/propertyUtils";
@@ -33,7 +33,7 @@ const StyledDropdownButton = styled(DropdownButton)`
3333
}
3434
`;
3535

36-
const LeftButtonWrapper = styled.div<{ $buttonStyle: any }>`
36+
const LeftButtonWrapper = styled.div<{ $buttonStyle: DropdownStyleType }>`
3737
width: calc(100%);
3838
${(props) => `margin: ${props.$buttonStyle.margin};`}
3939
margin-right: 0;
@@ -63,7 +63,7 @@ const LeftButtonWrapper = styled.div<{ $buttonStyle: any }>`
6363
6464
`;
6565

66-
const RightButtonWrapper = styled.div<{ $buttonStyle: any }>`
66+
const RightButtonWrapper = styled.div<{ $buttonStyle: DropdownStyleType }>`
6767
// width: 32px;
6868
${(props) => `margin: ${props.$buttonStyle.margin};`}
6969
margin-left: -1px;

0 commit comments

Comments
 (0)