Commit f915efc8 authored by westzmg's avatar westzmg

增加openScreen功能

parent ffb23df5
......@@ -32,5 +32,6 @@ export default {
{ path: '/uploadImage', component: '../pages/uploadImage' },
{ path: '/dialog', component: '../pages/dialog' },
{ path: '/baiduAI', component: '../pages/baiduAI' },
{ path: '/openScreen', component: '../pages/openScreen' },
]
}
......@@ -50,6 +50,15 @@ options: {
}
```
# 打开ReactNative中的页面,其功能几乎和Actions相同
### openScreen(options)
```
options: {
path: string, //主程序中定义的路由页面
props: object, //页面的props
}
```
# 获取坐标信息
### await getPosition()
```
......
......@@ -93,6 +93,20 @@ export const closeWindow = async (opt) => {
})
};
/*
* 打开ReactNative中的页面,其功能几乎和Actions相同
* @name openScreen
* options: {
* path: string, //主程序中定义的路由页面
* props: object, //页面的props
* }
*/
export const openScreen = async (opt) => {
return new Promise(async (resolve) => {
await invoke.bind("openScreen")(opt)
})
};
/*
* 获取坐标信息
* @name getPosition
......@@ -458,6 +472,7 @@ export default {
recordVideo,
barCodeScan,
openWindow,
openScreen,
closeWindow,
getPosition,
launchCQDigitalSign,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment