@ledvance/ui-biz-bundle 1.1.61 → 1.1.62
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
|
@@ -412,6 +412,8 @@ const BiorhythmPage = () => {
|
|
|
412
412
|
<TouchableOpacity
|
|
413
413
|
key={period.title}
|
|
414
414
|
onPress={() => {
|
|
415
|
+
const periodNum = state.repeatPeriod.filter(p => p.enabled)?.length
|
|
416
|
+
if (periodNum === 1 && period.enabled) return
|
|
415
417
|
period.enabled = !period.enabled
|
|
416
418
|
state.flag = Symbol()
|
|
417
419
|
}}
|
|
@@ -59,6 +59,7 @@ export const useFlag: UseFlagType = (flagCode, extra) => {
|
|
|
59
59
|
const extraDps = {}
|
|
60
60
|
if(extra.isCeilingLight){
|
|
61
61
|
extraDps[extra.switchLedCode] = true,
|
|
62
|
+
extraDps[extra.whiteSwitchCode!] = true
|
|
62
63
|
extraDps[extra.rgbcSwitchLedCode!] = true
|
|
63
64
|
extraDps[extra.rgbcWorkModeCode!] = WORK_MODE.COLOUR
|
|
64
65
|
extraDps[extra.workModeCode] = WORK_MODE.WHITE
|
|
@@ -39,6 +39,7 @@ export interface FlagPageProps {
|
|
|
39
39
|
sceneDataCode?: string
|
|
40
40
|
workModeCode: string
|
|
41
41
|
switchLedCode: string
|
|
42
|
+
whiteSwitchCode?:string
|
|
42
43
|
rgbcWorkModeCode?: string
|
|
43
44
|
rgbcSwitchLedCode?: string
|
|
44
45
|
brightValueCode?: string
|
|
@@ -232,7 +233,7 @@ const FlagPage = () => {
|
|
|
232
233
|
<FlatList
|
|
233
234
|
data={state.flags}
|
|
234
235
|
renderItem={({ item }) => <FlagItem
|
|
235
|
-
enable={flagMode?.flagMode && dps[params.workModeCode] === (params.isCeilingLight ? WORK_MODE.WHITE : params.isStripLight ? WORK_MODE.COLOUR : WORK_MODE.SCENE) && flagId === item.id}
|
|
236
|
+
enable={flagMode?.flagMode && dps[params.workModeCode] === (params.isCeilingLight ? WORK_MODE.WHITE : params.isStripLight ? WORK_MODE.COLOUR : WORK_MODE.SCENE) && flagId === item.id && dps[params.switchLedCode]}
|
|
236
237
|
title={item.name}
|
|
237
238
|
icon={item.icon}
|
|
238
239
|
colors={item.colors.map(item => hsv2Hex(item.h, item.s, item.v)).reverse()}
|