@ledvance/ui-biz-bundle 1.0.58 → 1.0.59
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
|
@@ -250,6 +250,7 @@ const BiorhythmEditPage = () => {
|
|
|
250
250
|
<ColorTempAdjustView
|
|
251
251
|
colorTemp={state.colorTemperature}
|
|
252
252
|
brightness={Number(state.brightness.toFixed())}
|
|
253
|
+
minBrightness={0}
|
|
253
254
|
onCCTChange={newValue => {
|
|
254
255
|
state.colorTemperature = newValue
|
|
255
256
|
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
|
}, [])
|
|
@@ -400,6 +398,7 @@ const BiorhythmPage = () => {
|
|
|
400
398
|
onValueChange={async enable => {
|
|
401
399
|
if (enable && (sleepWakeUpStatus || enableTimeScheduleStatus)) return showDialog(enable)
|
|
402
400
|
state.loading = true
|
|
401
|
+
state.enable = enable
|
|
403
402
|
state.flag = Symbol()
|
|
404
403
|
}}
|
|
405
404
|
/>
|