index.vue 817 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view>
  3. <!-- <rich-text :user-select="true" class="rich-text-style" :nodes="htmlNodes" style="width: 100%"></rich-text>-->
  4. <mp-html class="rich-text-style" :content="htmlNodes" selectable />
  5. </view>
  6. </template>
  7. <script>
  8. import mpHtml from '@/components/mp-html/mp-html'
  9. export default {
  10. props: {
  11. content: String
  12. },
  13. components: {
  14. mpHtml
  15. },
  16. watch: {
  17. content:function (value) {
  18. const that = this
  19. that.htmlNodes = value
  20. },
  21. },
  22. data() {
  23. return {
  24. htmlNodes: ''
  25. };
  26. },
  27. mounted() {},
  28. methods: {}
  29. }
  30. </script>
  31. <style lang="scss">
  32. .rich-text-style {
  33. font-size: $fontSize3;
  34. line-height: 1.5;
  35. * {
  36. font-size: $fontSize3 !important;
  37. line-height: 1.5 !important;
  38. }
  39. img {
  40. max-width: 100%;
  41. width: 100%;
  42. }
  43. }
  44. </style>