@ledvance/group-ui-biz-bundle 1.0.53 → 1.0.54
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
|
@@ -21,7 +21,7 @@ export const defMixDeviceData = {
|
|
|
21
21
|
|
|
22
22
|
export const defStripDeviceData = {
|
|
23
23
|
...defDeviceData,
|
|
24
|
-
activeKey:
|
|
24
|
+
activeKey: 1,
|
|
25
25
|
colorDiskActiveKey: 0,
|
|
26
26
|
colors: ColorList[0],
|
|
27
27
|
};
|
|
@@ -33,11 +33,6 @@ export const defCeilingLihtDeviceData = {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export const addTimeSchedule = async (props: IAddSingleTime) => {
|
|
36
|
-
console.log({
|
|
37
|
-
...props,
|
|
38
|
-
bizType: '1',
|
|
39
|
-
category: 'category'
|
|
40
|
-
}, '< --- schedule --- >')
|
|
41
36
|
try {
|
|
42
37
|
const res = await commonApi.timerApi.addSingleTimer({
|
|
43
38
|
...props,
|
|
@@ -125,7 +125,6 @@ const TimeScheduleDetailPage = () => {
|
|
|
125
125
|
getRemoteMoodList(uaGroupInfo.tyGroupId.toString(), props).then(res => {
|
|
126
126
|
if (res.success && Array.isArray(res.data)) {
|
|
127
127
|
state.moods = cloneDeep(res.data);
|
|
128
|
-
console.log(state.moods, '< --- moods')
|
|
129
128
|
setMoods(cloneDeep(res.data));
|
|
130
129
|
if (!state.mood) state.mood = cloneDeep(res.data[0]);
|
|
131
130
|
}
|
|
@@ -495,6 +494,7 @@ const TimeScheduleDetailPage = () => {
|
|
|
495
494
|
const res = await props.modDeleteTimeSchedule('del', state.timeSchedule, state.timeSchedule.id.toString());
|
|
496
495
|
state.loading = false;
|
|
497
496
|
if (res.success) {
|
|
497
|
+
props.refreshFn()
|
|
498
498
|
navigation.goBack();
|
|
499
499
|
}
|
|
500
500
|
},
|
|
@@ -234,7 +234,8 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
234
234
|
onActiveKeyChange={(activekey) => {
|
|
235
235
|
state.deviceData = {
|
|
236
236
|
...state.deviceData,
|
|
237
|
-
activeKey: Number(activekey)
|
|
237
|
+
activeKey: Number(activekey),
|
|
238
|
+
isColorMode: !(Number(activekey) === 0)
|
|
238
239
|
}
|
|
239
240
|
state.manualFlag = Symbol()
|
|
240
241
|
}}
|