@ledvance/ui-biz-bundle 1.1.43 → 1.1.45
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
|
@@ -515,10 +515,10 @@ const RgbcMoodEditPage = () => {
|
|
|
515
515
|
style={styles.nodeAddBtn}
|
|
516
516
|
onPress={() => {
|
|
517
517
|
const node = {
|
|
518
|
-
...state.secondlyLamp.nodes[state.
|
|
518
|
+
...state.secondlyLamp.nodes[state.currentColorNodeIdx],
|
|
519
519
|
}
|
|
520
520
|
state.secondlyLamp.nodes.push(node)
|
|
521
|
-
state.
|
|
521
|
+
state.currentColorNodeIdx = state.secondlyLamp.nodes.length - 1
|
|
522
522
|
}}>
|
|
523
523
|
<Image
|
|
524
524
|
style={{
|
|
@@ -27,7 +27,6 @@ const SelectPage = () => {
|
|
|
27
27
|
return (
|
|
28
28
|
<View style={styles.root}>
|
|
29
29
|
<View style={styles.topBar}>
|
|
30
|
-
<Spacer height={cx(45)}/>
|
|
31
30
|
<View style={styles.topContent}>
|
|
32
31
|
<Text style={styles.title}>{params.title}</Text>
|
|
33
32
|
<TouchableOpacity
|
|
@@ -81,7 +80,6 @@ const styles = StyleSheet.create({
|
|
|
81
80
|
flex: 1,
|
|
82
81
|
},
|
|
83
82
|
topBar: {
|
|
84
|
-
height: cx(91),
|
|
85
83
|
backgroundColor: '#eaeaea',
|
|
86
84
|
},
|
|
87
85
|
line: {
|
|
@@ -89,7 +87,7 @@ const styles = StyleSheet.create({
|
|
|
89
87
|
backgroundColor: '#d9d9d9',
|
|
90
88
|
},
|
|
91
89
|
topContent: {
|
|
92
|
-
|
|
90
|
+
paddingVertical: cx(30),
|
|
93
91
|
flexDirection: 'row',
|
|
94
92
|
alignItems: 'center',
|
|
95
93
|
},
|
|
@@ -106,6 +104,7 @@ const styles = StyleSheet.create({
|
|
|
106
104
|
textAlign: 'center',
|
|
107
105
|
color: '#000',
|
|
108
106
|
fontSize: cx(17),
|
|
107
|
+
paddingHorizontal: cx(110),
|
|
109
108
|
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
110
109
|
},
|
|
111
110
|
card: {
|
|
@@ -83,6 +83,7 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
83
83
|
enable={state.singleActions.whiteLightSwitch}
|
|
84
84
|
setEnable={async value => {
|
|
85
85
|
state.singleActions.whiteLightSwitch = value
|
|
86
|
+
props.changeSkillEnable(props.dps[0].dpId, value)
|
|
86
87
|
state.flag = Symbol()
|
|
87
88
|
}} />
|
|
88
89
|
{state.singleActions.whiteLightSwitch && <>
|
|
@@ -123,7 +124,7 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
123
124
|
...state.singleActions,
|
|
124
125
|
enable
|
|
125
126
|
}
|
|
126
|
-
props.changeSkillEnable(props.dps[0].dpId, enable)
|
|
127
|
+
props.changeSkillEnable(props.isCeilingLight ? props.dps[1]?.dpId : props.dps[0].dpId, enable)
|
|
127
128
|
state.flag = Symbol()
|
|
128
129
|
}} />
|
|
129
130
|
{state.singleActions.enable && <LampSwitchCard
|
|
@@ -136,7 +137,7 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
136
137
|
}
|
|
137
138
|
state.flag = Symbol()
|
|
138
139
|
}}
|
|
139
|
-
colorDiskActiveKey={state.singleActions.colorDiskActiveKey}
|
|
140
|
+
colorDiskActiveKey={state.singleActions.colorDiskActiveKey || 0}
|
|
140
141
|
activeKey={state.singleActions.activeKey}
|
|
141
142
|
onActiveKeyChange={(v) => {
|
|
142
143
|
state.singleActions = {
|
|
@@ -186,8 +187,6 @@ const ManualSetting = (props: ManualSettingProps) => {
|
|
|
186
187
|
<MixLightView
|
|
187
188
|
mixActions={state.mixActions}
|
|
188
189
|
setSendDps={props.setSendDps}
|
|
189
|
-
isSupportBrightness={props.isSupportBrightness}
|
|
190
|
-
isSupportTemperature={props.isSupportTemperature}
|
|
191
190
|
/>
|
|
192
191
|
)
|
|
193
192
|
}
|