Skip to content

Commit 75057d8

Browse files
committed
formating removed-55
1 parent f1ae8d2 commit 75057d8

File tree

1 file changed

+28
-43
lines changed

1 file changed

+28
-43
lines changed

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

Lines changed: 28 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,32 @@
1-
import {default as Progress} from 'antd/es/progress';
2-
import {styleControl} from 'comps/controls/styleControl';
3-
import {
4-
AnimationStyle,
5-
AnimationStyleType,
6-
CircleProgressStyle,
7-
CircleProgressType,
8-
heightCalculator,
9-
widthCalculator,
10-
} from 'comps/controls/styleControlConstants';
11-
import styled, {css} from 'styled-components';
12-
import {Section, sectionNames} from 'lowcoder-design';
13-
import {numberExposingStateControl} from '../controls/codeStateControl';
14-
import {UICompBuilder} from '../generators';
15-
import {
16-
NameConfig,
17-
NameConfigHidden,
18-
withExposingConfigs,
19-
} from '../generators/withExposing';
20-
import {hiddenPropertyView} from 'comps/utils/propertyUtils';
21-
import {trans} from 'i18n';
1+
import { default as Progress } from "antd/es/progress";
2+
import { styleControl } from "comps/controls/styleControl";
3+
import { AnimationStyle, AnimationStyleType, CircleProgressStyle, CircleProgressType, heightCalculator, widthCalculator } from "comps/controls/styleControlConstants";
4+
import styled, { css } from "styled-components";
5+
import { Section, sectionNames } from "lowcoder-design";
6+
import { numberExposingStateControl } from "../controls/codeStateControl";
7+
import { UICompBuilder } from "../generators";
8+
import { NameConfig, NameConfigHidden, withExposingConfigs } from "../generators/withExposing";
9+
import { hiddenPropertyView } from "comps/utils/propertyUtils";
10+
import { trans } from "i18n";
2211

23-
import {useContext} from 'react';
24-
import {EditorContext} from 'comps/editorState';
12+
import { useContext } from "react";
13+
import { EditorContext } from "comps/editorState";
2514

2615
// TODO: after Update of ANTd, introduce Size attribute to ProgressCircle
2716

2817
const getStyle = (style: CircleProgressType) => {
2918
return css`
30-
width: ${widthCalculator(style.margin)};
31-
height: ${heightCalculator(style.margin)};
32-
margin: ${style.margin};
19+
width: ${widthCalculator(style.margin)};
20+
height: ${heightCalculator(style.margin)};
21+
margin: ${style.margin};
3322
padding: ${style.padding};
34-
border-radius: ${style.radius};
23+
border-radius:${style.radius};
3524
.ant-progress-text {
3625
color: ${style.text} !important;
37-
font-family: ${style.fontFamily};
38-
font-style: ${style.fontStyle};
39-
font-size: ${style.textSize} !important;
40-
font-weight: ${style.textWeight};
26+
font-family:${style.fontFamily};
27+
font-style:${style.fontStyle};
28+
font-size:${style.textSize} !important;
29+
font-weight:${style.textWeight};
4130
}
4231
.ant-progress-circle-trail {
4332
stroke: ${style.track};
@@ -98,30 +87,26 @@ let ProgressCircleTmpComp = (function () {
9887
<>
9988
<Section name={sectionNames.basic}>
10089
{children.value.propertyView({
101-
label: trans('progress.value'),
102-
tooltip: trans('progress.valueTooltip'),
90+
label: trans("progress.value"),
91+
tooltip: trans("progress.valueTooltip"),
10392
})}
10493
</Section>
10594

106-
{['logic', 'both'].includes(
107-
useContext(EditorContext).editorModeStatus
108-
) && (
95+
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
10996
<Section name={sectionNames.interaction}>
11097
{hiddenPropertyView(children)}
11198
</Section>
11299
)}
113100

114-
{['layout', 'both'].includes(
115-
useContext(EditorContext).editorModeStatus
116-
) && (
101+
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
117102
<>
118103
<Section name={sectionNames.style}>
119-
{children.style.getPropertyView()}
104+
{children.style.getPropertyView()}
120105
</Section>
121106
<Section name={sectionNames.animationStyle}>
122-
{children.animationStyle.getPropertyView()}
107+
{children.animationStyle.getPropertyView()}
123108
</Section>
124-
</>
109+
</>
125110
)}
126111
</>
127112
);
@@ -136,6 +121,6 @@ ProgressCircleTmpComp = class extends ProgressCircleTmpComp {
136121
};
137122

138123
export const ProgressCircleComp = withExposingConfigs(ProgressCircleTmpComp, [
139-
new NameConfig('value', trans('progress.valueDesc')),
124+
new NameConfig("value", trans("progress.valueDesc")),
140125
NameConfigHidden,
141126
]);

0 commit comments

Comments
 (0)