第一次提交
This commit is contained in:
30
components/diy/richText/richText.vue
Normal file
30
components/diy/richText/richText.vue
Normal file
@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="diy-richText" :style="{background: itemData.style.background, padding: itemData.style.paddingTop + 'px ' + itemData.style.paddingLeft + 'px'}"
|
||||
v-html="formatContent(itemData.params.content)">
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import utils from '@/common/utils.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
props:['itemData'],
|
||||
created(){
|
||||
},
|
||||
methods: {
|
||||
formatContent(e){
|
||||
return utils.format_content(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user