@ledvance/group-ui-biz-bundle 1.0.111 → 1.0.113
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
|
@@ -10,7 +10,7 @@ import { useReactive, useUpdateEffect } from "ahooks";
|
|
|
10
10
|
import { cloneDeep } from "lodash";
|
|
11
11
|
import ThemeType from '@ledvance/base/src/config/themeType'
|
|
12
12
|
|
|
13
|
-
const { convertX: cx, height } = Utils.RatioUtils
|
|
13
|
+
const { convertX: cx, height, statusBarHeight } = Utils.RatioUtils
|
|
14
14
|
const { withTheme } = Utils.ThemeUtils
|
|
15
15
|
|
|
16
16
|
export const UnitList = [
|
|
@@ -245,7 +245,7 @@ const EnergyModal = (props: EnergyModalProps) => {
|
|
|
245
245
|
</View>
|
|
246
246
|
),
|
|
247
247
|
wrapperStyle: {
|
|
248
|
-
height: height - cx(40),
|
|
248
|
+
height: height - statusBarHeight - cx(40),
|
|
249
249
|
backgroundColor: props.theme?.global.background
|
|
250
250
|
},
|
|
251
251
|
footer: (<View style={{ backgroundColor: props.theme?.global.background}}></View>),
|
|
@@ -307,7 +307,7 @@ const EnergyModal = (props: EnergyModalProps) => {
|
|
|
307
307
|
<Text style={{ color: props.theme?.button.primary, fontSize: cx(16) }}>{props.confirmText}</Text>
|
|
308
308
|
</TouchableOpacity>
|
|
309
309
|
</View>
|
|
310
|
-
<View style={{ height: height - cx(100), paddingHorizontal: cx(16), backgroundColor: props.theme?.global.background }}>
|
|
310
|
+
<View style={{ height: height - statusBarHeight - cx(100), paddingHorizontal: cx(16), backgroundColor: props.theme?.global.background }}>
|
|
311
311
|
{getContent()}
|
|
312
312
|
</View>
|
|
313
313
|
</ScrollView>
|
|
@@ -60,7 +60,8 @@ const FixedTimeForPlugPage = (props: { theme?: ThemeType}) => {
|
|
|
60
60
|
let itselfConflict = false
|
|
61
61
|
cloneList.forEach((item, idx) => {
|
|
62
62
|
const itself = mode === 'add' ? (idx === cloneList.length - 1) : fixedTime.index === item.index
|
|
63
|
-
|
|
63
|
+
const isSameChannel = item.channel !== undefined ? item.channel === fixedTime.channel : true
|
|
64
|
+
if (!itself && item.enable && isSameChannel && isConflictTask(item, fixedTime)) {
|
|
64
65
|
itselfConflict = true
|
|
65
66
|
item.enable = false
|
|
66
67
|
}
|
|
@@ -60,7 +60,8 @@ const RandomTimeForPlugPage = (props: { theme?: ThemeType}) => {
|
|
|
60
60
|
let itselfConflict = false
|
|
61
61
|
cloneList.forEach((item, idx) => {
|
|
62
62
|
const itself = mode === 'add' ? (idx === cloneList.length - 1) : randomTime.index === item.index
|
|
63
|
-
|
|
63
|
+
const isSameChannel = item.channel !== undefined ? item.channel === randomTime.channel : true
|
|
64
|
+
if (!itself && item.enable && isSameChannel && isConflictTask(item, randomTime)) {
|
|
64
65
|
itselfConflict = true
|
|
65
66
|
item.enable = false
|
|
66
67
|
}
|