@ledvance/ui-biz-bundle 1.1.42 → 1.1.44
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
|
@@ -225,7 +225,7 @@ const FlagPage = () => {
|
|
|
225
225
|
enable={flagMode?.flagMode && dps[params.workModeCode] === (params.isCeilingLight ? WORK_MODE.WHITE : params.isStripLight ? WORK_MODE.COLOUR : WORK_MODE.SCENE) && flagId === item.id}
|
|
226
226
|
title={item.name}
|
|
227
227
|
icon={item.icon}
|
|
228
|
-
colors={params.isStripLight ? item.colors.map(item => hsv2Hex(item.h, item.s, item.v)).reverse() : item.colors.map(item => hsv2Hex(item.h, item.s, item.v))}
|
|
228
|
+
colors={(params.isStripLight || params.isCeilingLight) ? item.colors.map(item => hsv2Hex(item.h, item.s, item.v)).reverse() : item.colors.map(item => hsv2Hex(item.h, item.s, item.v))}
|
|
229
229
|
onSwitch={async (enable) => {
|
|
230
230
|
if (enable) {
|
|
231
231
|
await setFlag(item)
|
|
@@ -515,10 +515,10 @@ const RgbcMoodEditPage = () => {
|
|
|
515
515
|
style={styles.nodeAddBtn}
|
|
516
516
|
onPress={() => {
|
|
517
517
|
const node = {
|
|
518
|
-
...state.secondlyLamp.nodes[state.
|
|
518
|
+
...state.secondlyLamp.nodes[state.currentColorNodeIdx],
|
|
519
519
|
}
|
|
520
520
|
state.secondlyLamp.nodes.push(node)
|
|
521
|
-
state.
|
|
521
|
+
state.currentColorNodeIdx = state.secondlyLamp.nodes.length - 1
|
|
522
522
|
}}>
|
|
523
523
|
<Image
|
|
524
524
|
style={{
|
|
@@ -885,7 +885,7 @@ const defColorSceneList: RemoteSceneInfo[] = [
|
|
|
885
885
|
},
|
|
886
886
|
{
|
|
887
887
|
n: I18n.getLang('dynamicmoods_wonderland'),
|
|
888
|
-
i: '
|
|
888
|
+
i: '0e4b4b0200bb00e60384000000004b4b020000001403e8000000004b4b020000000002ee00000000',
|
|
889
889
|
s: '',
|
|
890
890
|
t: 0,
|
|
891
891
|
e: false,
|
|
@@ -899,7 +899,7 @@ const defColorSceneList: RemoteSceneInfo[] = [
|
|
|
899
899
|
},
|
|
900
900
|
{
|
|
901
901
|
n: I18n.getLang('dynamicmoods_symphony'),
|
|
902
|
-
i: '
|
|
902
|
+
i: '104b4b0200d2037003e8000000004b4b020000000003e8000000004b4b02003303e803e800000000',
|
|
903
903
|
s: '',
|
|
904
904
|
t: 0,
|
|
905
905
|
e: false,
|
|
@@ -83,6 +83,7 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
83
83
|
enable={state.singleActions.whiteLightSwitch}
|
|
84
84
|
setEnable={async value => {
|
|
85
85
|
state.singleActions.whiteLightSwitch = value
|
|
86
|
+
props.changeSkillEnable(props.dps[0].dpId, value)
|
|
86
87
|
state.flag = Symbol()
|
|
87
88
|
}} />
|
|
88
89
|
{state.singleActions.whiteLightSwitch && <>
|
|
@@ -123,7 +124,7 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
123
124
|
...state.singleActions,
|
|
124
125
|
enable
|
|
125
126
|
}
|
|
126
|
-
props.changeSkillEnable(props.dps[0].dpId, enable)
|
|
127
|
+
props.changeSkillEnable(props.isCeilingLight ? props.dps[1]?.dpId : props.dps[0].dpId, enable)
|
|
127
128
|
state.flag = Symbol()
|
|
128
129
|
}} />
|
|
129
130
|
{state.singleActions.enable && <LampSwitchCard
|
|
@@ -136,7 +137,7 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
136
137
|
}
|
|
137
138
|
state.flag = Symbol()
|
|
138
139
|
}}
|
|
139
|
-
colorDiskActiveKey={state.singleActions.colorDiskActiveKey}
|
|
140
|
+
colorDiskActiveKey={state.singleActions.colorDiskActiveKey || 0}
|
|
140
141
|
activeKey={state.singleActions.activeKey}
|
|
141
142
|
onActiveKeyChange={(v) => {
|
|
142
143
|
state.singleActions = {
|
|
@@ -186,8 +187,6 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
186
187
|
<MixLightView
|
|
187
188
|
mixActions={state.mixActions}
|
|
188
189
|
setSendDps={props.setSendDps}
|
|
189
|
-
isSupportBrightness={props.isSupportBrightness}
|
|
190
|
-
isSupportTemperature={props.isSupportTemperature}
|
|
191
190
|
/>
|
|
192
191
|
)
|
|
193
192
|
}
|