提交 c46ecf9d 编写于 作者: X xiaoyucoding

feat: 新增 web-view 组件

上级 e31f89bd
<template>
<uni-web-view/>
<uni-web-view>
<iframe
:src="realSrc"
frameborder="0"
width="100%"
height="100%"/>
</uni-web-view>
</template>
<script>
export default {
name: 'WebView'
name: 'WebView',
props: {
src: {
type: String,
default: ''
}
},
data () {
return {
realSrc: this.$getRealPath(this.src)
}
}
}
</script>
<style>
uni-web-view iframe {
position: absolute;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册