@ledvance/base 1.3.0 → 1.3.1
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
|
@@ -28,6 +28,7 @@ function AdvanceList(props: AdvanceListProps) {
|
|
|
28
28
|
if(MusicRouterKey.includes(item.router.key)){
|
|
29
29
|
getMicrophoneAccess().then(res =>{
|
|
30
30
|
if(!res) return
|
|
31
|
+
navigation.navigate(item.router.key, item.router.params)
|
|
31
32
|
})
|
|
32
33
|
}else{
|
|
33
34
|
if (!onAdvanceItemClick || onAdvanceItemClick(item, index)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren, useCallback, useEffect, useMemo } from 'react'
|
|
1
|
+
import React, { PropsWithChildren, ReactChild, useCallback, useEffect, useMemo } from 'react'
|
|
2
2
|
import { Image, StyleSheet, Text, TouchableOpacity, View, ViewProps } from 'react-native'
|
|
3
3
|
import { Modal, Utils } from 'tuya-panel-kit'
|
|
4
4
|
import { useReactive, useUpdateEffect } from 'ahooks'
|
|
@@ -59,6 +59,7 @@ interface DrawToolViewProps extends PropsWithChildren<ViewProps> {
|
|
|
59
59
|
hideDisableLight?: boolean
|
|
60
60
|
hideColorize?: boolean
|
|
61
61
|
ledNumModalVisible?: boolean
|
|
62
|
+
deviceGroupContent?: ReactChild
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
const DrawToolView = (props: DrawToolViewProps) => {
|
|
@@ -233,6 +234,7 @@ const DrawToolView = (props: DrawToolViewProps) => {
|
|
|
233
234
|
</Modal>}
|
|
234
235
|
{props.children}
|
|
235
236
|
</>}
|
|
237
|
+
{props.deviceGroupContent ? props.deviceGroupContent : undefined}
|
|
236
238
|
</Card>
|
|
237
239
|
)
|
|
238
240
|
}
|