@ledvance/ui-biz-bundle 1.1.101 → 1.1.102
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
|
@@ -204,7 +204,7 @@ const FlagPage = (props: { theme?: ThemeType }) => {
|
|
|
204
204
|
}else{
|
|
205
205
|
return flagMode?.flagMode && dps[params.workModeCode] === (params.isCeilingLight ? WORK_MODE.WHITE : params.isStripLight ? WORK_MODE.COLOUR : WORK_MODE.SCENE) && flagId === flagItem.id && dps[params.switchLedCode]
|
|
206
206
|
}
|
|
207
|
-
}, [params.isSupportSceneStatus, sceneStatusId, dps[params.workModeCode], dps[params.switchLedCode], flagId])
|
|
207
|
+
}, [params.isSupportSceneStatus, sceneStatusId, dps[params.workModeCode], dps[params.switchLedCode], flagId, flagMode?.flagMode])
|
|
208
208
|
|
|
209
209
|
return (
|
|
210
210
|
<Page
|
|
@@ -128,17 +128,9 @@ export const getRemoteMoodList = async (
|
|
|
128
128
|
data: result.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)),
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
const moodUIData = res.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)).filter(item => {
|
|
132
|
-
if (!option.isSupportTemperature) {
|
|
133
|
-
const isContainTemperature = item.mainLamp?.nodes?.some(node => !node.isColorNode && node.colorTemp > 0) || false
|
|
134
|
-
return !isContainTemperature;
|
|
135
|
-
} else {
|
|
136
|
-
return true
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
131
|
return {
|
|
140
132
|
success: true,
|
|
141
|
-
data:
|
|
133
|
+
data: res.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)),
|
|
142
134
|
};
|
|
143
135
|
} else {
|
|
144
136
|
const res = await NativeApi.getJson(devId, moodFeatureId);
|
|
@@ -206,6 +206,13 @@ function getOnlyRGBDefSceneList(): RemoteMoodInfo[] {
|
|
|
206
206
|
t: 0,
|
|
207
207
|
e: false,
|
|
208
208
|
},
|
|
209
|
+
{
|
|
210
|
+
n: I18n.getLang('mesh_device_detail_lighting_white_mode'),
|
|
211
|
+
i: '0646460100000000000003e8000046460100000000000003e8019046460100000000000003e803e8',
|
|
212
|
+
s: '',
|
|
213
|
+
t: 0,
|
|
214
|
+
e: false,
|
|
215
|
+
},
|
|
209
216
|
...defColorSceneList,
|
|
210
217
|
];
|
|
211
218
|
}
|