@ledvance/ui-biz-bundle 1.0.1 → 1.0.2
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
|
@@ -21,7 +21,7 @@ export type dpItem = {
|
|
|
21
21
|
dpId: string
|
|
22
22
|
enableDp: string
|
|
23
23
|
cloudKey: any
|
|
24
|
-
stringOn: any
|
|
24
|
+
stringOn: any
|
|
25
25
|
stringOff: any
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -161,9 +161,6 @@ const TimerPage = () => {
|
|
|
161
161
|
);
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
console.log(progress, '< --- progress')
|
|
165
|
-
console.log(countdowns, 'countdowns')
|
|
166
|
-
console.log(runningTimer(), '< --- runningTimer')
|
|
167
164
|
return (
|
|
168
165
|
<Page
|
|
169
166
|
backText={devInfo.name}
|
|
@@ -282,7 +279,7 @@ const TimerPage = () => {
|
|
|
282
279
|
<Spacer height={cx(40)} />
|
|
283
280
|
</View>
|
|
284
281
|
))}
|
|
285
|
-
</> :
|
|
282
|
+
</> :
|
|
286
283
|
<View
|
|
287
284
|
style={{
|
|
288
285
|
flexDirection: 'column',
|
|
@@ -406,4 +403,4 @@ const styles = StyleSheet.create({
|
|
|
406
403
|
},
|
|
407
404
|
})
|
|
408
405
|
|
|
409
|
-
export default TimerPage
|
|
406
|
+
export default TimerPage
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useDeviceId, useDp } from "@ledvance/base/src/models/modules/NativePropsSlice"
|
|
2
2
|
import { Result } from "@ledvance/base/src/models/modules/Result"
|
|
3
|
-
import { dpItem } from "./
|
|
3
|
+
import { dpItem } from "./TimerPage"
|
|
4
4
|
import { useCountDown as useCountDownAHook } from 'ahooks'
|
|
5
5
|
import dayjs from "dayjs"
|
|
6
6
|
import { NativeApi } from "@ledvance/base/src/api/native"
|
|
@@ -71,7 +71,7 @@ const useFormateProgress : (dp: dpItem, func: Function) => [number, (time: numbe
|
|
|
71
71
|
|
|
72
72
|
const getKey = (suffix:string, dpId:string) =>{
|
|
73
73
|
const key = dpId + suffix
|
|
74
|
-
return key
|
|
74
|
+
return key
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
const startTimer = (time: number, t) => {
|
|
@@ -88,4 +88,4 @@ export const useProgress = (dps: dpItem[], cancelTimer) =>{
|
|
|
88
88
|
progressHook: useFormateProgress(dp, cancelTimer),
|
|
89
89
|
...dp
|
|
90
90
|
}))
|
|
91
|
-
}
|
|
91
|
+
}
|