@aks-dev/easyui 1.0.138 → 1.0.139
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.
|
@@ -168,6 +168,7 @@ export default (props: MenuProps) => {
|
|
|
168
168
|
|
|
169
169
|
|
|
170
170
|
const show = async () => {
|
|
171
|
+
props.onContainerPress && props.onContainerPress()
|
|
171
172
|
if (props.data == undefined || props.data?.length == 0) return
|
|
172
173
|
/**重新获取rootview的定位 */
|
|
173
174
|
await getRootViewlayoutPromise()
|
package/lib/MenuView/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-07-14 18:09:02
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-12-
|
|
5
|
+
* @LastEditTime: 2022-12-26 18:00:33
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/lib/MenuView/index.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -23,6 +23,7 @@ export type MenuProps = {
|
|
|
23
23
|
style?: StyleProp<ViewStyle> | undefined;
|
|
24
24
|
data?: MenuItem[];
|
|
25
25
|
onItemClick?: (index: number, extra?: any) => void;
|
|
26
|
+
onContainerPress?:Function;
|
|
26
27
|
} & Readonly<{ children?: React.ReactNode | undefined }> & TouchableOpacityProps
|
|
27
28
|
|
|
28
29
|
|