feat: v1.0.0

This commit is contained in:
王奥斯
2021-08-25 14:39:54 +08:00
parent 7f831bf205
commit 0909c3e4bc
114 changed files with 46733 additions and 15 deletions
@@ -0,0 +1,42 @@
<template>
<div class="richtext" :style="{ background: datas.backColor }">
<img
draggable="false"
src="../../../assets/images/fwb.png"
alt=""
v-if="!datas.myValue.length"
/>
<section v-else v-html="datas.myValue" />
<!-- 删除组件 -->
<slot name="deles" />
</div>
</template>
<script>
export default {
name: 'richtext',
props: {
datas: Object,
},
}
</script>
<style scoped lang="less">
.richtext {
position: relative;
}
/deep/img {
max-width: 100% !important;
display: block;
}
.richtext {
position: relative;
/deep/pre {
white-space: break-spaces;
}
/deep/p {
word-break: break-all;
}
}
</style>