@ledvance/ui-biz-bundle 1.1.79 → 1.1.80
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
|
@@ -103,6 +103,7 @@ export type ComponentConfig =
|
|
|
103
103
|
| { type: DeviceType.LightSource; deviceData: DeviceData }
|
|
104
104
|
| { type: DeviceType.MixLight; deviceData: MixLightData }
|
|
105
105
|
| { type: DeviceType.StripLight; deviceData: StripLightData }
|
|
106
|
+
| { type: DeviceType.CeilingLight; deviceData: StripLightData }
|
|
106
107
|
| { type: DeviceType.FanLight; deviceData: FanLightData }
|
|
107
108
|
| { type: DeviceType.PowerStrip; deviceData: DeviceData}
|
|
108
109
|
|
|
@@ -458,6 +458,7 @@ const TimeScheduleDetailPage = (props: { theme?: any }) => {
|
|
|
458
458
|
isSupportTemperature={params.isSupportTemperature}
|
|
459
459
|
isStripLight={params.isStripLight}
|
|
460
460
|
isCeilingLight={params.isCeilingLight}
|
|
461
|
+
isUVCFan={params.isUVCFan}
|
|
461
462
|
manualData={state.manualData}
|
|
462
463
|
onManualChange={manual => {
|
|
463
464
|
state.manualData = {
|
|
@@ -639,10 +640,9 @@ const getDefaultManual = (props: TimeScheduleDetailPageParams): ComponentConfig
|
|
|
639
640
|
: deviceType === DeviceType.FanLight
|
|
640
641
|
? defFanLightDeviceData
|
|
641
642
|
: defDeviceData;
|
|
642
|
-
|
|
643
|
+
|
|
643
644
|
return {
|
|
644
|
-
|
|
645
|
-
type: deviceType,
|
|
645
|
+
type: deviceType as any,
|
|
646
646
|
deviceData: {
|
|
647
647
|
...deviceData,
|
|
648
648
|
isColorMode: props.isSupportColor,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DeviceType, directOptions, FanLightData, ManualSettingProps, modeOptions, StripLightData } from '../Interface';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import Card from '@ledvance/base/src/components/Card';
|
|
5
5
|
import LampAdjustView from '@ledvance/base/src/components/LampAdjustView';
|
|
@@ -142,9 +142,9 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
142
142
|
isSupportDirection={props.isUVCFan}
|
|
143
143
|
isSupportDisinfect={props.isUVCFan}
|
|
144
144
|
isSupportMode={props.isUVCFan}
|
|
145
|
-
directValue={
|
|
146
|
-
disinfect={
|
|
147
|
-
modeValue={
|
|
145
|
+
directValue={(state.deviceData as FanLightData).direction}
|
|
146
|
+
disinfect={(state.deviceData as FanLightData).disinfect}
|
|
147
|
+
modeValue={(state.deviceData as FanLightData).mode}
|
|
148
148
|
directOptions={directOptions}
|
|
149
149
|
modeOptions={modeOptions}
|
|
150
150
|
directChange={(direction: any) => {
|
|
@@ -316,7 +316,7 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
316
316
|
}, [state.deviceData, state.applyForList, props.theme.type]);
|
|
317
317
|
|
|
318
318
|
const ceilingLightCard = useMemo(() => {
|
|
319
|
-
const deviceData = state.deviceData as
|
|
319
|
+
const deviceData = state.deviceData as StripLightData
|
|
320
320
|
return (
|
|
321
321
|
<View>
|
|
322
322
|
{state.applyForList.map((item, idx) => (
|