@ledvance/ui-biz-bundle 1.0.87 → 1.0.89
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 +1 -1
- package/src/modules/biorhythm/BiorhythmPage.tsx +3 -0
- package/src/modules/mood/DynamicMoodEditorPage.tsx +1 -0
- package/src/modules/mood/StaticMoodEditorPage.tsx +1 -0
- package/src/modules/randomTime/RandomTimeActions.ts +0 -1
- package/src/modules/timeSchedule/TimeSchedulePage.tsx +13 -5
package/package.json
CHANGED
|
@@ -553,6 +553,9 @@ const BiorhythmPage = () => {
|
|
|
553
553
|
onPlanEdited,
|
|
554
554
|
onPlanDelete,
|
|
555
555
|
minimumEnable,
|
|
556
|
+
iconIdList: state.planList?.map(item => {
|
|
557
|
+
return item.iconId
|
|
558
|
+
}),
|
|
556
559
|
isMixRGBWLamp: params.isMixRGBWLamp,
|
|
557
560
|
isSupportTemperature: params.isSupportTemperature,
|
|
558
561
|
isSupportBrightness: params.isSupportBrightness,
|
|
@@ -173,6 +173,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
173
173
|
onChangeText={text => {
|
|
174
174
|
state.mood.name = text
|
|
175
175
|
}}
|
|
176
|
+
maxLength={33}
|
|
176
177
|
showError={state.mood.name.length > 32 || nameRepeat}
|
|
177
178
|
tipColor={nameRepeat ? '#f00' : undefined}
|
|
178
179
|
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
@@ -175,6 +175,7 @@ const StaticMoodEditorPage = () => {
|
|
|
175
175
|
onChangeText={text => {
|
|
176
176
|
state.mood.name = text
|
|
177
177
|
}}
|
|
178
|
+
maxLength={33}
|
|
178
179
|
showError={state.mood.name.length > 32 || nameRepeat}
|
|
179
180
|
tipColor={nameRepeat ? '#f00' : undefined}
|
|
180
181
|
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
@@ -50,7 +50,6 @@ export const useRandomTime : UseFixedTimeType = (dpKey: string, disableFeature?:
|
|
|
50
50
|
const [uiData, setUiData] = useState<RandomTimerItem[]>([])
|
|
51
51
|
const [randomTime, setRandomTime]: [string, (v: string) => Promise<Result<any>>] = useDp(dpKey)
|
|
52
52
|
const randomTimeList: RandomTimer[] = useMemo(() => RandomTimer.parse(randomTime).nodes, [randomTime])
|
|
53
|
-
console.log(RandomTimer.parse(randomTime), '< --- randomTimer')
|
|
54
53
|
const formatterFn = useCallback(() =>{
|
|
55
54
|
return randomTimeList.map((item, idx)=>({
|
|
56
55
|
...item,
|
|
@@ -99,13 +99,21 @@ const TimeSchedulePage = () => {
|
|
|
99
99
|
}, [state.timeScheduleList])
|
|
100
100
|
|
|
101
101
|
const getTimerScheduleList = async () => {
|
|
102
|
-
const res: any = await NativeApi.timerList(deviceInfo.devId)
|
|
103
|
-
|
|
102
|
+
// const res: any = await NativeApi.timerList(deviceInfo.devId)
|
|
103
|
+
const res: any = await NativeApi.getAllTaskTimer(deviceInfo.devId)
|
|
104
|
+
if (res.success && res.data) {
|
|
104
105
|
// 原生传过来的dps是json字符串。
|
|
105
|
-
const originList = res.
|
|
106
|
+
const originList = res.data.map((item: any) => {
|
|
106
107
|
return {
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
aliasName: item.remark,
|
|
109
|
+
status: !!item.mStatus,
|
|
110
|
+
id: item.mTimerId,
|
|
111
|
+
groupId: item.mTimerId,
|
|
112
|
+
loops: item.mLoops,
|
|
113
|
+
date: item.mDate,
|
|
114
|
+
time: item.mTime,
|
|
115
|
+
isAppPush: item.isAppPush ? 1 : 0,
|
|
116
|
+
dps: JSON.parse(item.mValue),
|
|
109
117
|
}
|
|
110
118
|
})
|
|
111
119
|
state.timeScheduleList = originList
|