@ledvance/ui-biz-bundle 1.1.10 → 1.1.11

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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.10",
7
+ "version": "1.1.11",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -25,6 +25,7 @@ export interface FlagPageProps {
25
25
  isSupportBrightness?: boolean
26
26
  isSupportTemperature?: boolean
27
27
  isStringLight?: boolean
28
+ isStripLight?: boolean
28
29
  isSupportMixScene?: boolean
29
30
  drawToolLight?: {
30
31
  drawToolCode: string
@@ -43,7 +44,7 @@ const FlagPage = () => {
43
44
  const devId = useDeviceId()
44
45
  const navigation = useNavigation()
45
46
  const [dps, setDps] = useDps()
46
- const [flagState, setFlag] = useFlag((params.sceneDataCode || params?.drawToolLight?.drawToolCode)!!, {
47
+ const [flagState, setFlag] = useFlag((params.isStripLight ? params?.drawToolLight?.drawToolCode : params.sceneDataCode)!!, {
47
48
  isMixLight: params.isSupportMixScene,
48
49
  isStringLight: params.isStringLight,
49
50
  ...params
@@ -69,6 +70,7 @@ const FlagPage = () => {
69
70
 
70
71
 
71
72
  useEffect(() => {
73
+ if(!devId) return
72
74
  getRemoteFlagInfo().then()
73
75
  if(params.getRemoteMoodList){
74
76
  params.getRemoteMoodList(devId).then(res =>{
@@ -77,7 +79,7 @@ const FlagPage = () => {
77
79
  }
78
80
  })
79
81
  }
80
- }, [])
82
+ }, [devId])
81
83
 
82
84
  const getRemoteFlagInfo = async () => {
83
85
  const res = await getRemoteFlag(devId)