提交 4057456c 编写于 作者: X xiaoyucoding

docs: 补充 web-view 的 readme

上级 c46ecf9d
# web-view
|属性|完成度|
|:-|:-|
|src|√|
|@message|-|
|方法|完成度|
|:-|:-|
|navigateTo|√|
|redirectTo|√|
|reLaunch|√|
|switchTab|√|
|navigateBack|√|
|getEnv|√|
|postMessage|-|
<template> <template>
<uni-web-view> <uni-web-view>
<iframe <iframe
:src="realSrc" :src="realPath"
frameborder="0" frameborder="0"
width="100%" width="100%"
height="100%"/> height="100%" />
</uni-web-view> </uni-web-view>
</template> </template>
<script> <script>
...@@ -17,9 +17,9 @@ export default { ...@@ -17,9 +17,9 @@ export default {
} }
}, },
data () { data () {
return { return {
realSrc: this.$getRealPath(this.src) realPath: this.$getRealPath(this.src)
} }
} }
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册