@bytebrand/fe-ui-core 4.1.163 → 4.1.165
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
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
// background-color: #fff;
|
|
8
8
|
align-self: flex-start;
|
|
9
|
-
border: 1px solid
|
|
10
|
-
border-radius:
|
|
9
|
+
border: 1px solid rgba(76, 78, 100, 0.12);
|
|
10
|
+
border-radius: 10px;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
|
|
13
13
|
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
line-height: 40px
|
|
41
41
|
padding: 0 10px
|
|
42
42
|
background-color: #fff;
|
|
43
|
+
border-top-left-radius: 10px;
|
|
44
|
+
border-top-right-radius: 10px;
|
|
43
45
|
|
|
44
46
|
.linkToDetailed
|
|
45
47
|
display: block
|
|
@@ -48,4 +50,6 @@
|
|
|
48
50
|
background-color: #fff
|
|
49
51
|
color: $skyBlue
|
|
50
52
|
font-weight: 700
|
|
51
|
-
font-size: 14px
|
|
53
|
+
font-size: 14px
|
|
54
|
+
border-bottom-left-radius: 10px;
|
|
55
|
+
border-bottom-right-radius: 10px;
|
|
@@ -295,11 +295,9 @@ const getDecoratedProps = (
|
|
|
295
295
|
chargingDuration230V: {
|
|
296
296
|
title: t('vehicleProps:title.chargingDuration230V'),
|
|
297
297
|
get value() {
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
batteryCharchingDuration230VMinutesHours
|
|
302
|
-
} = car.battery;
|
|
298
|
+
const batteryChargingDuration230VSelect = car.battery && car.battery.batteryChargingDuration230VSelect;
|
|
299
|
+
const batteryChargingDuration230VHour = car.battery && car.battery.batteryChargingDuration230VHour;
|
|
300
|
+
const batteryCharchingDuration230VMinutesHours = car.battery && car.battery.batteryCharchingDuration230VMinutesHours;
|
|
303
301
|
|
|
304
302
|
return batteryChargingDuration230VSelect
|
|
305
303
|
? `${batteryChargingDuration230VHour ? `${batteryChargingDuration230VHour} ${isCheckedBatteryTime(batteryCharchingDuration230VMinutesHours, t)}` : ''} ${batteryChargingDuration230VSelect}`
|
|
@@ -309,11 +307,9 @@ const getDecoratedProps = (
|
|
|
309
307
|
chargingDurationMaxSpeed: {
|
|
310
308
|
title: t('vehicleProps:title.chargingDurationMaxSpeed'),
|
|
311
309
|
get value() {
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
batteryCharchingDurationMaxSelectMinutesHours
|
|
316
|
-
} = car.battery;
|
|
310
|
+
const batteryChargingDurationMaxSelect = car.battery && car.battery.batteryChargingDurationMaxSelect
|
|
311
|
+
const batteryChargingDurationMaxHour = car.battery && car.battery.batteryChargingDurationMaxHour
|
|
312
|
+
const batteryCharchingDurationMaxSelectMinutesHours = car.battery && car.battery.batteryCharchingDurationMaxSelectMinutesHours
|
|
317
313
|
|
|
318
314
|
return batteryChargingDurationMaxSelect
|
|
319
315
|
? `${batteryChargingDurationMaxHour ? `${batteryChargingDurationMaxHour} ${isCheckedBatteryTime(batteryCharchingDurationMaxSelectMinutesHours, t)}` : ''} ${batteryChargingDurationMaxSelect}`
|
|
@@ -323,7 +319,7 @@ const getDecoratedProps = (
|
|
|
323
319
|
batteryChargerType: {
|
|
324
320
|
title: t('vehicleProps:title.batteryChargerType'),
|
|
325
321
|
get value() {
|
|
326
|
-
const
|
|
322
|
+
const batteryChargerType = car.battery && car.battery.batteryChargerType
|
|
327
323
|
|
|
328
324
|
return isPropDefined(batteryChargerType)
|
|
329
325
|
? batteryChargerType.map((item: any) => t(`cbd:${item}`)).join('\n')
|
|
@@ -775,7 +771,7 @@ const getDecoratedProps = (
|
|
|
775
771
|
batteryRangeElectric: {
|
|
776
772
|
title: t('vehicleProps:title.batteryRangeElectric'),
|
|
777
773
|
get value() {
|
|
778
|
-
const
|
|
774
|
+
const batteryRangeElectric = car.battery && car.battery.batteryRangeElectric;
|
|
779
775
|
return Number.isFinite(batteryRangeElectric)
|
|
780
776
|
? t('vehicleProps:value.batteryRangeElectric', { consumption: batteryRangeElectric.toLocaleString(language) })
|
|
781
777
|
: t('vehicleProps:value.na');
|