Skip to content

Commit d4429d7

Browse files
committed
formating removed-51
1 parent 9911ed5 commit d4429d7

File tree

1 file changed

+25
-34
lines changed

1 file changed

+25
-34
lines changed
Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
import {trans} from 'i18n';
2-
import {Section, sectionNames} from 'lowcoder-design';
3-
import {numberExposingStateControl} from '../../controls/codeStateControl';
4-
import {UICompBuilder} from '../../generators';
5-
import {
6-
CommonNameConfig,
7-
NameConfig,
8-
withExposingConfigs,
9-
} from '../../generators/withExposing';
10-
import {
11-
SliderChildren,
12-
SliderPropertyView,
13-
SliderStyled,
14-
SliderWrapper,
15-
} from './sliderCompConstants';
16-
import {hasIcon} from 'comps/utils';
17-
import {BoolControl} from 'comps/controls/boolControl';
1+
import { trans } from "i18n";
2+
import { Section, sectionNames } from "lowcoder-design";
3+
import { numberExposingStateControl } from "../../controls/codeStateControl";
4+
import { UICompBuilder } from "../../generators";
5+
import { CommonNameConfig, NameConfig, withExposingConfigs } from "../../generators/withExposing";
6+
import { SliderChildren, SliderPropertyView, SliderStyled, SliderWrapper } from "./sliderCompConstants";
7+
import { hasIcon } from "comps/utils";
8+
import { BoolControl } from "comps/controls/boolControl";
189

1910
const RangeSliderBasicComp = (function () {
2011
const childrenMap = {
2112
...SliderChildren,
22-
start: numberExposingStateControl('start', 10),
23-
end: numberExposingStateControl('end', 60),
13+
start: numberExposingStateControl("start", 10),
14+
end: numberExposingStateControl("end", 60),
2415
vertical: BoolControl,
2516
};
2617
return new UICompBuilder(childrenMap, (props) => {
2718
return props.label({
2819
style: props.style,
2920
labelStyle: props.labelStyle,
30-
inputFieldStyle: props.inputFieldStyle,
31-
animationStyle: props.animationStyle,
21+
inputFieldStyle:props.inputFieldStyle,
22+
animationStyle:props.animationStyle,
3223
children: (
3324
<SliderWrapper
3425
vertical={props.vertical}
@@ -43,12 +34,12 @@ const RangeSliderBasicComp = (function () {
4334
range={true}
4435
value={[props.start.value, props.end.value]}
4536
$style={props.inputFieldStyle}
46-
style={{margin: 0}}
37+
style={{ margin: 0 }}
4738
vertical={props.vertical || false}
4839
onChange={([start, end]) => {
4940
props.start.onChange(start);
5041
props.end.onChange(end);
51-
props.onEvent('change');
42+
props.onEvent("change");
5243
}}
5344
/>
5445
{hasIcon(props.suffixIcon) && props.suffixIcon}
@@ -60,15 +51,15 @@ const RangeSliderBasicComp = (function () {
6051
return (
6152
<>
6253
<Section name={sectionNames.basic}>
63-
{children.start.propertyView({label: trans('rangeSlider.start')})}
64-
{children.end.propertyView({label: trans('rangeSlider.end')})}
65-
{children.max.propertyView({label: trans('prop.maximum')})}
66-
{children.min.propertyView({label: trans('prop.minimum')})}
54+
{children.start.propertyView({ label: trans("rangeSlider.start") })}
55+
{children.end.propertyView({ label: trans("rangeSlider.end") })}
56+
{children.max.propertyView({ label: trans("prop.maximum") })}
57+
{children.min.propertyView({ label: trans("prop.minimum") })}
6758
{children.step.propertyView({
68-
label: trans('rangeSlider.step'),
69-
tooltip: trans('rangeSlider.stepTooltip'),
59+
label: trans("rangeSlider.step"),
60+
tooltip: trans("rangeSlider.stepTooltip"),
7061
})}
71-
{children.vertical.propertyView({label: trans('slider.vertical')})}
62+
{children.vertical.propertyView({ label: trans("slider.vertical") })}
7263
</Section>
7364

7465
<SliderPropertyView {...children} />
@@ -79,9 +70,9 @@ const RangeSliderBasicComp = (function () {
7970
})();
8071

8172
export const RangeSliderComp = withExposingConfigs(RangeSliderBasicComp, [
82-
new NameConfig('start', trans('export.sliderStartDesc')),
83-
new NameConfig('end', trans('export.sliderEndDesc')),
84-
new NameConfig('max', trans('export.sliderMaxValueDesc')),
85-
new NameConfig('min', trans('export.sliderMinValueDesc')),
73+
new NameConfig("start", trans("export.sliderStartDesc")),
74+
new NameConfig("end", trans("export.sliderEndDesc")),
75+
new NameConfig("max", trans("export.sliderMaxValueDesc")),
76+
new NameConfig("min", trans("export.sliderMinValueDesc")),
8677
...CommonNameConfig,
8778
]);

0 commit comments

Comments
 (0)