Yahoo 4 лет назад
Родитель
Сommit
8c50555584
2 измененных файлов с 3 добавлено и 44 удалено
  1. 0 33
      components/page/diyComponents/richText/index.vue
  2. 3 11
      components/page/richText/index.vue

+ 0 - 33
components/page/diyComponents/richText/index.vue

@@ -1,33 +0,0 @@
-<template>
-  <!-- 富文本 -->
-  <view class="diy-richText"
-    :style="{ padding: `${itemStyle.paddingTop}px ${itemStyle.paddingLeft}px`, background: itemStyle.background }">
-    <mp-html :content="params.content" />
-  </view>
-</template>
-
-<script>
-  export default {
-    /**
-     * 组件的属性列表
-     * 用于组件自定义设置
-     */
-    props: {
-      itemStyle: Object,
-      params: Object
-    },
-    /**
-     * 组件的方法列表
-     * 更新属性和数据的方法与更新页面数据的方法类似
-     */
-    methods: {
-
-    }
-  }
-</script>
-
-<style lang="scss" scoped>
-  .diy-richText {
-    font-size: 28rpx;
-  }
-</style>

+ 3 - 11
components/page/richText/index.vue

@@ -1,15 +1,13 @@
 <template>
   <!-- 富文本 -->
-  <view class="diy-richText" :style="{ padding: `${itemStyle.paddingTop}px ${itemStyle.paddingLeft}px`, background: itemStyle.background }">
-    <jyf-parser :html="params.content"></jyf-parser>
+  <view class="diy-richText"
+    :style="{ padding: `${itemStyle.paddingTop}px ${itemStyle.paddingLeft}px`, background: itemStyle.background }">
+    <mp-html :content="params.content" />
   </view>
 </template>
 
 <script>
-  import jyfParser from "@/components/jyf-parser/jyf-parser"
-
   export default {
-
     /**
      * 组件的属性列表
      * 用于组件自定义设置
@@ -18,11 +16,6 @@
       itemStyle: Object,
       params: Object
     },
-
-    components: {
-      jyfParser
-    },
-
     /**
      * 组件的方法列表
      * 更新属性和数据的方法与更新页面数据的方法类似
@@ -30,7 +23,6 @@
     methods: {
 
     }
-
   }
 </script>