@ledvance/group-ui-biz-bundle 1.0.115 → 1.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -43,6 +43,10 @@ const BarChartWithTouch = (props: BarChartProps) => {
|
|
|
43
43
|
}
|
|
44
44
|
return max
|
|
45
45
|
}, [dataKwhY]);
|
|
46
|
+
const gridRight = useMemo(() => {
|
|
47
|
+
const max = Math.max(...dataPriceY.map(it => Number(it)))
|
|
48
|
+
return max > 999 ? '12%' : '10%'
|
|
49
|
+
}, [dataPriceY])
|
|
46
50
|
const option = {
|
|
47
51
|
tooltip: {
|
|
48
52
|
show: true,
|
|
@@ -56,6 +60,9 @@ const BarChartWithTouch = (props: BarChartProps) => {
|
|
|
56
60
|
color: theme?.global.fontColor,
|
|
57
61
|
}
|
|
58
62
|
},
|
|
63
|
+
grid: {
|
|
64
|
+
right: gridRight,
|
|
65
|
+
},
|
|
59
66
|
xAxis: {
|
|
60
67
|
data: dataX,
|
|
61
68
|
axisTick: {
|
|
@@ -160,13 +167,13 @@ const BarChartWithTouch = (props: BarChartProps) => {
|
|
|
160
167
|
customMapData: {}
|
|
161
168
|
};
|
|
162
169
|
return (
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
<View style={{flex: 1}}>
|
|
171
|
+
<ECharts
|
|
172
|
+
option={option}
|
|
173
|
+
ref={echarts}
|
|
174
|
+
height={height}
|
|
175
|
+
/>
|
|
176
|
+
</View>
|
|
170
177
|
);
|
|
171
178
|
};
|
|
172
179
|
|
|
@@ -215,7 +215,7 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
215
215
|
maxLength={33}
|
|
216
216
|
showError={state.mood.name.length > 32 || nameRepeat}
|
|
217
217
|
tipColor={nameRepeat ? props.theme?.global.error : undefined}
|
|
218
|
-
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
218
|
+
tipIcon={nameRepeat ? { uri: res.ic_text_field_input_error } : undefined}
|
|
219
219
|
errorText={I18n.getLang(nameRepeat ? 'string_light_pp_field_sm_add_error1' : 'add_new_dynamic_mood_alert_text')} />
|
|
220
220
|
{(params.moduleParams.isMixLight || params.moduleParams.isCeilingLight) && <><Card style={styles.adjustCard}>
|
|
221
221
|
<Spacer height={cx(16)} />
|
|
@@ -391,11 +391,10 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
391
391
|
state.mood.colors = state.mood.colors.map(() => (
|
|
392
392
|
{ h, s, v }
|
|
393
393
|
))
|
|
394
|
-
} else {
|
|
395
|
-
state.currentNode.h = h
|
|
396
|
-
state.currentNode.s = s
|
|
397
|
-
state.currentNode.v = v
|
|
398
394
|
}
|
|
395
|
+
state.currentNode.h = h
|
|
396
|
+
state.currentNode.s = s
|
|
397
|
+
state.currentNode.v = v
|
|
399
398
|
}}
|
|
400
399
|
onHSVChangeComplete={(h, s, v) => {
|
|
401
400
|
if (state.colorPaintBucketSelected) {
|
|
@@ -403,9 +402,6 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
403
402
|
{ h, s, v }
|
|
404
403
|
))
|
|
405
404
|
} else {
|
|
406
|
-
state.currentNode.h = h
|
|
407
|
-
state.currentNode.s = s
|
|
408
|
-
state.currentNode.v = v
|
|
409
405
|
state.mood.colors = state.mood.colors.map((item, idx) => {
|
|
410
406
|
if (idx === state.colorPaintBucketIdx) {
|
|
411
407
|
return { h, s, v }
|
|
@@ -413,6 +409,9 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
413
409
|
return item
|
|
414
410
|
})
|
|
415
411
|
}
|
|
412
|
+
state.currentNode.h = h
|
|
413
|
+
state.currentNode.s = s
|
|
414
|
+
state.currentNode.v = v
|
|
416
415
|
}}
|
|
417
416
|
/>
|
|
418
417
|
<Spacer height={cx(16)} />
|