初始化
This commit is contained in:
23
pages/webview/html.vue
Normal file
23
pages/webview/html.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<view class="content" v-html="src">
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
src: ''
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.src = options.src;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.content{
|
||||
padding: 20rpx 30rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user