Skip to content

Commit 9a363b3

Browse files
committed
formating removed-120
1 parent 7ceb293 commit 9a363b3

File tree

1 file changed

+24
-31
lines changed

1 file changed

+24
-31
lines changed

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

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ const Container = styled.div<{
2727
word-wrap: break-word;
2828
line-height: initial;
2929
${props=>props.$animationStyle}
30-
background-color: ${(props) => props.$style?.background};
31-
font-weight: ${(props) => props?.$style?.textWeight};
32-
border-radius: ${(props) => props?.$style?.radius};
33-
font-size: ${(props) => props?.$style?.textSize};
34-
rotate: ${(props) => props?.$style?.rotation};
35-
text-transform: ${(props) => props?.$style?.textTransform};
36-
color: ${(props) => props?.$style?.text};
37-
border: ${(props) => props?.$style?.border};
38-
border-style: ${(props) => props?.$style?.borderStyle};
39-
border-width: ${(props) => props?.$style?.borderWidth};
40-
font-family: ${(props) => props?.$style?.fontFamily};
41-
font-style: ${(props) => props?.$style?.fontStyle};
42-
margin: ${(props) => props?.$style?.margin};
43-
padding: ${(props) => props?.$style?.padding};
44-
background: ${(props) => props?.$style?.background};
45-
text-decoration: ${(props) => props?.$style?.textDecoration};
30+
background-color: ${props => props.$style?.background};
31+
font-weight: ${props=>props?.$style?.textWeight};
32+
border-radius: ${props=>props?.$style?.radius};
33+
font-size: ${props=>props?.$style?.textSize};
34+
rotate: ${props=>props?.$style?.rotation};
35+
text-transform: ${props=>props?.$style?.textTransform};
36+
color: ${props=>props?.$style?.text};
37+
border: ${props => props?.$style?.border};
38+
border-style: ${props=>props?.$style?.borderStyle};
39+
border-width: ${props=>props?.$style?.borderWidth};
40+
font-family: ${props=>props?.$style?.fontFamily};
41+
font-style: ${props=>props?.$style?.fontStyle};
42+
margin: ${props=>props?.$style?.margin};
43+
padding: ${props=>props?.$style?.padding};
44+
background: ${props=>props?.$style?.background};
45+
text-decoration: ${props=>props?.$style?.textDecoration};
4646
`;
4747

4848
const ButtonWarrper = styled.div`
@@ -105,7 +105,7 @@ const childrenMap = {
105105
startButtonStyle: styleControl(startButtonStyle),
106106
resetButtonStyle: styleControl(startButtonStyle),
107107
onEvent: eventHandlerControl(EventOptions),
108-
defaultValue: stringExposingStateControl('defaultValue', '00:00:00:000'),
108+
defaultValue: stringExposingStateControl("defaultValue", '00:00:00:000'),
109109
timerType: dropdownControl(timerTypeOptions, 'timer'),
110110
elapsedTime: stateComp<number>(0),
111111
timerState: stateComp<string>('stoped'),
@@ -203,24 +203,17 @@ const AvatarGroupView = (props: RecordConstructorToView<typeof childrenMap> & {
203203
<StyledButton
204204
$style={props.startButtonStyle}
205205
disabled={!buttonState}
206-
type={timerState === 'stoped' ? 'primary' : 'default'}
206+
type={timerState === 'stoped' ? "primary" : 'default'}
207207
onClick={() => {
208-
if (timerState === 'stoped') startAction();
209-
else if (timerState === 'started') pauseAction();
210-
else if (timerState === 'paused') resumeAction();
208+
if (timerState === 'stoped') startAction()
209+
else if (timerState === 'started') pauseAction()
210+
else if (timerState === 'paused') resumeAction()
211211
}}
212-
>
213-
{timerState === 'stoped'
214-
? trans('timer.start')
215-
: timerState === 'started'
216-
? trans('timer.pause')
217-
: trans('timer.resume')}
218-
</StyledButton>
212+
>{timerState === 'stoped' ? trans('timer.start') : (timerState === 'started' ? trans('timer.pause') : trans('timer.resume'))}</StyledButton>
219213
<StyledButton
220214
$style={props.resetButtonStyle}
221-
onClick={() => resetAction()}
222-
>
223-
{trans('timer.reset')}
215+
onClick={() => resetAction()}
216+
>{trans('timer.reset')}
224217
</StyledButton>
225218
</Space>
226219
</ButtonWarrper>

0 commit comments

Comments
 (0)