@ledvance/group-ui-biz-bundle 1.0.134 → 1.0.135
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
|
@@ -167,7 +167,7 @@ const SwitchInching = (props: { theme?: ThemeType }) => {
|
|
|
167
167
|
const newSwitchInchingItem = {
|
|
168
168
|
...state.switchInchingItem,
|
|
169
169
|
enable: v,
|
|
170
|
-
time
|
|
170
|
+
time: time < 2 ? 2 : time
|
|
171
171
|
}
|
|
172
172
|
updateState({ switchInchingItem: newSwitchInchingItem })
|
|
173
173
|
await saveInchingConfig(newSwitchInchingItem)
|
|
@@ -192,6 +192,7 @@ const SwitchInching = (props: { theme?: ThemeType }) => {
|
|
|
192
192
|
]}
|
|
193
193
|
setHour={m => updateTime(m, undefined)}
|
|
194
194
|
setMinute={s => updateTime(undefined, s)}
|
|
195
|
+
minMinute={timeRef.current.minute === '00' ? 2 : 0}
|
|
195
196
|
maxHour={61}
|
|
196
197
|
/>
|
|
197
198
|
</View>
|
|
@@ -4,6 +4,7 @@ import {flatMapDeep} from "lodash";
|
|
|
4
4
|
import {ColorList} from '@ledvance/base/src/components/StripAdjustView';
|
|
5
5
|
import {parseJSON} from "@tuya/tuya-panel-lamp-sdk/lib/utils";
|
|
6
6
|
import {AdjustType} from "@ledvance/base/src/utils/interface";
|
|
7
|
+
import { TimeScheduleDetailPageParams } from './TimeScheduleDetailPage'
|
|
7
8
|
|
|
8
9
|
export const defDeviceData = {
|
|
9
10
|
h: 0,
|
|
@@ -45,8 +46,10 @@ export const defMoodStripDeviceData = {
|
|
|
45
46
|
adjustType: AdjustType.COLOUR
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
export const defShutterDeviceData = {
|
|
49
|
-
|
|
49
|
+
export const defShutterDeviceData = (props: TimeScheduleDetailPageParams) => {
|
|
50
|
+
return {
|
|
51
|
+
percentControl: (props.suggestValue !== undefined && !props.suggestValue) ? 0 : 100
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export const defOsramFanLightDeviceData = {
|
|
@@ -701,7 +701,7 @@ const getDefaultManual = (props: TimeScheduleDetailPageParams): ComponentConfig
|
|
|
701
701
|
[DeviceType.MixLight]: defMixDeviceData,
|
|
702
702
|
[DeviceType.FanLight]: defFanLightDeviceData,
|
|
703
703
|
[DeviceType.MoodStrip]: defMoodStripDeviceData,
|
|
704
|
-
[DeviceType.Shutter]: defShutterDeviceData,
|
|
704
|
+
[DeviceType.Shutter]: defShutterDeviceData(props),
|
|
705
705
|
[DeviceType.OsramFanLight]: defOsramFanLightDeviceData,
|
|
706
706
|
[DeviceType.LightSource]: defDeviceData,
|
|
707
707
|
};
|