Skip to content

Commit 64f5caa

Browse files
committed
rotation removed
1 parent 630b4e5 commit 64f5caa

File tree

8 files changed

+57
-48
lines changed

8 files changed

+57
-48
lines changed

client/packages/lowcoder/src/comps/comps/avatar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ white-space: nowrap;
7474
font-weight: ${props=>props.$style.textWeight};
7575
border-radius: ${props=>props.$style.radius};
7676
font-size: ${props=>props.$style.textSize};
77-
rotate: ${props=>props.$style.rotation};
7877
text-transform: ${props=>props.$style.textTransform};
7978
color: ${props=>props.$style.text};
8079
border: ${props => props.$style.border};
@@ -95,7 +94,6 @@ white-space: nowrap;
9594
font-weight: ${props=>props.$style.textWeight};
9695
border-radius: ${props=>props.$style.radius};
9796
font-size: ${props=>props.$style.textSize};
98-
rotate: ${props=>props.$style.rotation};
9997
text-transform: ${props=>props.$style.textTransform};
10098
color: ${props=>props.$style.text};
10199
border: ${props => props.$style.border};

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ import { genActiveColor, genHoverColor } from "lowcoder-design";
77
import { refMethods } from "comps/generators/withMethodExposing";
88
import { blurMethod, clickMethod, focusWithOptions } from "comps/utils/methodUtils";
99

10-
export function getButtonStyle(buttonStyle: ButtonStyleType) {
10+
export function getButtonStyle(buttonStyle: any) {
1111
const hoverColor = genHoverColor(buttonStyle.background);
1212
const activeColor = genActiveColor(buttonStyle.background);
1313
return css`
1414
&&& {
1515
border-radius: ${buttonStyle.radius};
1616
border-width:${buttonStyle.borderWidth};
17-
margin: ${buttonStyle.margin};
17+
margin: ${buttonStyle.margin};
1818
padding: ${buttonStyle.padding};
19-
rotate: ${buttonStyle.rotation};
19+
rotate: ${buttonStyle.rotation&&buttonStyle.rotation};
2020
&:not(:disabled) {
2121
--antd-wave-shadow-color: ${buttonStyle.border};
2222
border-color: ${buttonStyle.border};
@@ -29,9 +29,9 @@ export function getButtonStyle(buttonStyle: ButtonStyleType) {
2929
text-decoration:${buttonStyle.textDecoration};
3030
background-color: ${buttonStyle.background};
3131
border-radius: ${buttonStyle.radius};
32-
margin: ${buttonStyle.margin};
32+
margin: ${buttonStyle.margin};
3333
padding: ${buttonStyle.padding};
34-
34+
3535
&:hover,
3636
&:focus {
3737
color: ${buttonStyle.text};
@@ -52,7 +52,7 @@ export function getButtonStyle(buttonStyle: ButtonStyleType) {
5252
`;
5353
}
5454

55-
export const Button100 = styled(Button)<{ $buttonStyle?: ButtonStyleType }>`
55+
export const Button100 = styled(Button)<{ $buttonStyle?: any }>`
5656
${(props) => props.$buttonStyle && getButtonStyle(props.$buttonStyle)}
5757
width: 100%;
5858
height: auto;

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

Lines changed: 5 additions & 4 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 { ButtonStyleType } from "comps/controls/styleControlConstants";
6+
import { DropdownStyle } 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";
@@ -21,6 +21,7 @@ import {
2121
ButtonStyleControl,
2222
getButtonStyle,
2323
} from "./buttonCompConstants";
24+
import { styleControl } from "@lowcoder-ee/index.sdk";
2425

2526

2627
const StyledDropdownButton = styled(DropdownButton)`
@@ -32,7 +33,7 @@ const StyledDropdownButton = styled(DropdownButton)`
3233
}
3334
`;
3435

35-
const LeftButtonWrapper = styled.div<{ $buttonStyle: ButtonStyleType }>`
36+
const LeftButtonWrapper = styled.div<{ $buttonStyle: any }>`
3637
width: calc(100%);
3738
${(props) => `margin: ${props.$buttonStyle.margin};`}
3839
margin-right: 0;
@@ -62,7 +63,7 @@ const LeftButtonWrapper = styled.div<{ $buttonStyle: ButtonStyleType }>`
6263
6364
`;
6465

65-
const RightButtonWrapper = styled.div<{ $buttonStyle: ButtonStyleType }>`
66+
const RightButtonWrapper = styled.div<{ $buttonStyle: any }>`
6667
// width: 32px;
6768
${(props) => `margin: ${props.$buttonStyle.margin};`}
6869
margin-left: -1px;
@@ -85,7 +86,7 @@ const DropdownTmpComp = (function () {
8586
options: DropdownOptionControl,
8687
disabled: BoolCodeControl,
8788
onEvent: ButtonEventHandlerControl,
88-
style: ButtonStyleControl,
89+
style: styleControl(DropdownStyle),
8990
};
9091
return new UICompBuilder(childrenMap, (props) => {
9192
const hasIcon =

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { BoolCodeControl, StringControl } from "comps/controls/codeControl";
1111
import { ScannerEventHandlerControl } from "comps/controls/eventHandlerControl";
1212
import { styleControl } from "comps/controls/styleControl";
13-
import { ButtonStyle } from "comps/controls/styleControlConstants";
13+
import { DropdownStyle } from "comps/controls/styleControlConstants";
1414
import { withDefault } from "comps/generators";
1515
import { UICompBuilder } from "comps/generators/uiCompBuilder";
1616
import { CustomModal, Section, sectionNames } from "lowcoder-design";
@@ -70,7 +70,7 @@ const ScannerTmpComp = (function () {
7070
maskClosable: withDefault(BoolControl, true),
7171
onEvent: ScannerEventHandlerControl,
7272
disabled: BoolCodeControl,
73-
style: styleControl(ButtonStyle),
73+
style: styleControl(DropdownStyle),
7474
viewRef: RefControl<HTMLElement>,
7575
};
7676
return new UICompBuilder(childrenMap, (props) => {

client/packages/lowcoder/src/comps/comps/signatureComp.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
SignatureStyleType,
1313
widthCalculator,
1414
heightCalculator,
15-
16-
InputFieldStyle
15+
SignatureContainerStyle
1716
} from "comps/controls/styleControlConstants";
1817
import { stateComp, withDefault } from "comps/generators/simpleGenerators";
1918
import { hiddenPropertyView } from "comps/utils/propertyUtils";
@@ -97,15 +96,15 @@ const Wrapper = styled.div<{ $style: SignatureStyleType; $isEmpty: boolean }>`
9796
`;
9897

9998
const childrenMap = {
100-
tips: withDefault(StringControl, trans("signature.signHere")),
99+
tips: withDefault(StringControl, trans('signature.signHere')),
101100
onEvent: ChangeEventHandlerControl,
102-
label: withDefault(LabelControl, { position: "column", text: "" }),
103-
style: styleControl(InputFieldStyle),
101+
label: withDefault(LabelControl, {position: 'column', text: ''}),
102+
style: styleControl(SignatureContainerStyle),
104103
labelStyle: styleControl(LabelStyle),
105104
showUndo: withDefault(BoolControl, true),
106105
showClear: withDefault(BoolControl, true),
107-
value: stateComp(""),
108-
inputFieldStyle:styleControl(SignatureStyle),
106+
value: stateComp(''),
107+
inputFieldStyle: styleControl(SignatureStyle),
109108
...formDataChildren,
110109
};
111110

client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { stringExposingStateControl } from "comps/controls/codeStateControl";
77
import { eventHandlerControl } from "comps/controls/eventHandlerControl";
88
import { TabsOptionControl } from "comps/controls/optionsControl";
99
import { styleControl } from "comps/controls/styleControl";
10-
import { AnimationStyle, AnimationStyleType, ContainerBodyStyle, ContainerBodyStyleType, ContainerHeaderStyle, ContainerHeaderStyleType, TabContainerStyle, TabContainerStyleType, heightCalculator, widthCalculator } from "comps/controls/styleControlConstants";
10+
import { AnimationStyle, AnimationStyleType, TabBodyStyleType, ContainerHeaderStyle, ContainerHeaderStyleType, TabBodyStyle, TabContainerStyle, TabContainerStyleType, heightCalculator, widthCalculator } from "comps/controls/styleControlConstants";
1111
import { sameTypeMap, UICompBuilder, withDefault } from "comps/generators";
1212
import { addMapChildAction } from "comps/generators/sameTypeMap";
1313
import { NameConfig, NameConfigHidden, withExposingConfigs } from "comps/generators/withExposing";
@@ -59,7 +59,7 @@ const childrenMap = {
5959
showHeader: withDefault(BoolControl, true),
6060
style: withDefault(styleControl(TabContainerStyle),{borderWidth:'1px'}),
6161
headerStyle: styleControl(ContainerHeaderStyle),
62-
bodyStyle: styleControl(ContainerBodyStyle),
62+
bodyStyle: styleControl(TabBodyStyle),
6363
animationStyle: styleControl(AnimationStyle),
6464
tabsGutter: withDefault(NumberControl, 32),
6565
tabsCentered: withDefault(BoolControl, false),
@@ -71,7 +71,7 @@ type TabbedContainerProps = ViewProps & { dispatch: DispatchType };
7171
const getStyle = (
7272
style: TabContainerStyleType,
7373
headerStyle: ContainerHeaderStyleType,
74-
bodyStyle: ContainerBodyStyleType,
74+
bodyStyle: TabBodyStyleType,
7575
) => {
7676
return css`
7777
&.ant-tabs {
@@ -131,7 +131,7 @@ const getStyle = (
131131
const StyledTabs = styled(Tabs)<{
132132
$style: TabContainerStyleType;
133133
$headerStyle: ContainerHeaderStyleType;
134-
$bodyStyle: ContainerBodyStyleType;
134+
$bodyStyle: TabBodyStyleType;
135135
$isMobile?: boolean;
136136
$showHeader?: boolean;
137137
$animationStyle:AnimationStyleType

client/packages/lowcoder/src/comps/comps/triContainerComp/triFloatTextContainer.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const getStyle = (style: TextStyleType) => {
2222
border-radius: ${(style.radius ? style.radius : "4px")};
2323
border: ${(style.borderWidth ? style.borderWidth : "0px")} solid ${style.border};
2424
color: ${style.text};
25-
rotate: ${style.rotation};
25+
rotate: ${style.rotation&&style.rotation};
2626
font-size: ${style.textSize} !important;
2727
font-weight: ${style.textWeight} !important;
2828
font-family: ${style.fontFamily} !important;
@@ -82,7 +82,6 @@ ${props=>props.$animationStyle&&props.$animationStyle}
8282
background-color: ${(props) => props.$style.background};
8383
padding: ${(props) => props.$style.padding};
8484
margin: ${(props) => props.$style.margin};
85-
rotate: ${(props) => props.$style.rotation};
8685
${(props) => props.$style.backgroundImage && `background-image: url(${props.$style.backgroundImage});`}
8786
${(props) => props.$style.backgroundImageRepeat && `background-repeat: ${props.$style.backgroundImageRepeat};`}
8887
${(props) => props.$style.backgroundImageSize && `background-size: ${props.$style.backgroundImageSize};`}
@@ -190,8 +189,7 @@ export function TriContainer(props: TriContainerProps) {
190189
containerPadding={[0, 0]}
191190
showName={{ bottom: showFooter ? 20 : 0 }}
192191
$backgroundColor={headerStyle?.headerBackground || 'transparent'}
193-
style={{ padding: headerStyle.containerHeaderPadding,
194-
rotate:headerStyle.rotation }} />
192+
style={{ padding: headerStyle.containerHeaderPadding}} />
195193
</BackgroundColorContext.Provider>
196194
)}
197195
{showBody && (
@@ -218,7 +216,6 @@ export function TriContainer(props: TriContainerProps) {
218216
float: `${props.float}`,
219217
width: `${props.float === "none" ? "100%" : `${props.width}%`}`,
220218
height: "100%",
221-
rotate: bodyStyle.rotation,
222219
...container.bodyStyle
223220
}}
224221
/>

0 commit comments

Comments
 (0)