huangsijun
2025-09-22 a78c011de350b188afb03beb2f26a73f35f71986
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>