@ledvance/group-ui-biz-bundle 1.0.52 → 1.0.53
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
|
-
import { CeilingLightData, DeviceType, ManualSettingProps } from '../Interface';
|
|
2
|
+
import { CeilingLightData, DeviceType, ManualSettingProps, 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';
|
|
@@ -209,9 +209,10 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
209
209
|
}, [state.deviceData, state.applyForList]);
|
|
210
210
|
|
|
211
211
|
const stripLightCard = useMemo(() => {
|
|
212
|
+
const deviceData = state.deviceData as StripLightData
|
|
212
213
|
return (
|
|
213
214
|
<View>
|
|
214
|
-
<Card>
|
|
215
|
+
<Card style={{ marginHorizontal: cx(24) }}>
|
|
215
216
|
<LdvSwitch
|
|
216
217
|
title={I18n.getLang('light_sources_tile_tw_lighting_headline')}
|
|
217
218
|
color={'#fff'}
|
|
@@ -228,8 +229,23 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
228
229
|
isSupportTemperature={props.isSupportTemperature}
|
|
229
230
|
lampTabs={tabList}
|
|
230
231
|
reserveSV={true}
|
|
231
|
-
activeKey={
|
|
232
|
-
|
|
232
|
+
activeKey={deviceData.activeKey}
|
|
233
|
+
colorDiskActiveKey={deviceData.colorDiskActiveKey}
|
|
234
|
+
onActiveKeyChange={(activekey) => {
|
|
235
|
+
state.deviceData = {
|
|
236
|
+
...state.deviceData,
|
|
237
|
+
activeKey: Number(activekey)
|
|
238
|
+
}
|
|
239
|
+
state.manualFlag = Symbol()
|
|
240
|
+
}}
|
|
241
|
+
onColorDiskChange={(colors, idx) => {
|
|
242
|
+
state.deviceData = {
|
|
243
|
+
...state.deviceData,
|
|
244
|
+
colors,
|
|
245
|
+
colorDiskActiveKey: idx
|
|
246
|
+
}
|
|
247
|
+
state.manualFlag = Symbol()
|
|
248
|
+
}}
|
|
233
249
|
h={state.deviceData.h}
|
|
234
250
|
s={state.deviceData.s}
|
|
235
251
|
v={state.deviceData.v}
|
|
@@ -307,7 +323,6 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
307
323
|
activeKey={deviceData.activeKey}
|
|
308
324
|
colorDiskActiveKey={deviceData.colorDiskActiveKey}
|
|
309
325
|
onActiveKeyChange={(activekey) => {
|
|
310
|
-
console.log(activekey, '< -- activeKey')
|
|
311
326
|
state.deviceData = {
|
|
312
327
|
...state.deviceData,
|
|
313
328
|
activeKey: Number(activekey)
|