@ledvance/ui-biz-bundle 1.0.58 → 1.0.60
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
|
@@ -135,6 +135,10 @@ const BiorhythmEditPage = () => {
|
|
|
135
135
|
close()
|
|
136
136
|
onDeleteBtnClick()
|
|
137
137
|
},
|
|
138
|
+
motionConfig:{
|
|
139
|
+
hideDuration: 0,
|
|
140
|
+
showDuration: 100
|
|
141
|
+
}
|
|
138
142
|
})
|
|
139
143
|
}, [])
|
|
140
144
|
|
|
@@ -149,6 +153,10 @@ const BiorhythmEditPage = () => {
|
|
|
149
153
|
close()
|
|
150
154
|
navigation.goBack()
|
|
151
155
|
},
|
|
156
|
+
motionConfig:{
|
|
157
|
+
hideDuration: 0,
|
|
158
|
+
showDuration: 100
|
|
159
|
+
}
|
|
152
160
|
})
|
|
153
161
|
}, [])
|
|
154
162
|
|
|
@@ -250,6 +258,7 @@ const BiorhythmEditPage = () => {
|
|
|
250
258
|
<ColorTempAdjustView
|
|
251
259
|
colorTemp={state.colorTemperature}
|
|
252
260
|
brightness={Number(state.brightness.toFixed())}
|
|
261
|
+
minBrightness={0}
|
|
253
262
|
onCCTChange={newValue => {
|
|
254
263
|
state.colorTemperature = newValue
|
|
255
264
|
state.action[0].startValue = `${colorTemperatureValue(newValue)}`
|
|
@@ -123,12 +123,10 @@ const BiorhythmPage = () => {
|
|
|
123
123
|
})
|
|
124
124
|
console.log('设置生物节律数据', state)
|
|
125
125
|
await userOperation(deviceId, false)
|
|
126
|
+
const res = await setBiorhythm(deviceId, {...state, planList})
|
|
126
127
|
state.loading = false
|
|
127
|
-
const res = await setBiorhythm(deviceId, {...state, enable: !state.enable, planList})
|
|
128
128
|
console.log('设置生物节律res', res)
|
|
129
129
|
if (res.success) {
|
|
130
|
-
state.enable = !state.enable
|
|
131
|
-
state.showMaskModal = state.enable
|
|
132
130
|
console.log('设置生物节律 OK')
|
|
133
131
|
}
|
|
134
132
|
}, [])
|
|
@@ -215,6 +213,10 @@ const BiorhythmPage = () => {
|
|
|
215
213
|
state.flag = Symbol()
|
|
216
214
|
close()
|
|
217
215
|
},
|
|
216
|
+
motionConfig:{
|
|
217
|
+
hideDuration: 0,
|
|
218
|
+
showDuration: 100
|
|
219
|
+
}
|
|
218
220
|
})
|
|
219
221
|
}, [sleepList, wakeUpList])
|
|
220
222
|
|
|
@@ -400,6 +402,7 @@ const BiorhythmPage = () => {
|
|
|
400
402
|
onValueChange={async enable => {
|
|
401
403
|
if (enable && (sleepWakeUpStatus || enableTimeScheduleStatus)) return showDialog(enable)
|
|
402
404
|
state.loading = true
|
|
405
|
+
state.enable = enable
|
|
403
406
|
state.flag = Symbol()
|
|
404
407
|
}}
|
|
405
408
|
/>
|
|
@@ -605,7 +608,10 @@ const BiorhythmPage = () => {
|
|
|
605
608
|
style={{flex: 1}}
|
|
606
609
|
onPress={() => {
|
|
607
610
|
const editPageParams: BiorhythmEditPageParams = {
|
|
608
|
-
planData:
|
|
611
|
+
planData: {
|
|
612
|
+
...item,
|
|
613
|
+
name: setTimer(item?.name)
|
|
614
|
+
},
|
|
609
615
|
isAdd: false,
|
|
610
616
|
onPlanEdited,
|
|
611
617
|
onPlanDelete,
|
|
@@ -94,6 +94,8 @@ const DeviceState = (props: DeviceStateProps) => {
|
|
|
94
94
|
isSupportTemperature={!!props.isSupportTemperature}
|
|
95
95
|
isColorMode={props.singleActions.isColor}
|
|
96
96
|
setIsColorMode={setWorkModeStateAction}
|
|
97
|
+
reserveSV={true}
|
|
98
|
+
minBrightness={0}
|
|
97
99
|
h={props.singleActions.h}
|
|
98
100
|
s={props.singleActions.s}
|
|
99
101
|
v={props.singleActions.v}
|
|
@@ -59,6 +59,7 @@ const SleepWakeUpPage = () => {
|
|
|
59
59
|
if (mode === 'add' && isSleep && state.sleepScheduleList.length === MAX_SCHEDULE) return
|
|
60
60
|
if (mode === 'add' && !isSleep && state.wakeUpScheduleList.length === MAX_SCHEDULE) return
|
|
61
61
|
navigateToEdit({
|
|
62
|
+
...props,
|
|
62
63
|
mode,
|
|
63
64
|
dps: props.dps,
|
|
64
65
|
isSleep,
|