indexvue.vue 810 字节
<template>
	<view>
		<view>009987</view>
	    <u-parse :content="article" @preview="preview" @navigate="navigate" ></u-parse>
	</view>
</template>
<script>
	import uParse from '@/components/u-parse/u-parse.vue'
	export default {
	  components: {
	    uParse
	  },
	  data () {
	    return {
	      article: '<p>课程3<img src="http://fnsxcx.w.brotop.cn//uploads/20200301/3b9c208d0221efca65c619deb7f84296.jpg" style="width: 470px;"></p>'
	    }
	  },
	  methods: {
	    preview(src, e) {
	      // do something
	    },
	    navigate(href, e) {
	      // do something
	    }
	  },
	  onLoad() {
	  	console.log(this.article)
	  }
	}
</script>
<style>
	/* @import url("../../components/u-parse/u-parse.css"); */
	.img{
		color:red;
		fon-size:20rpx;
	}
	@import url("@/components/u-parse/u-parse.css");
</style>