<template>
	<web-view :src="url" :webview-styles="webviewStyles"></web-view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
				webviewStyles: {}

			};
		},
		onLoad: function(option) {
			const item = JSON.parse(decodeURIComponent(option.item));
			const {
				url,
				webviewStyles
			} = item
			this.url = url
			this.webviewStyles = webviewStyles ? webviewStyles : {}
		}
	}
</script>

<style lang="scss">

</style>