rich-text.uvue 829 字节
Newer Older
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
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 31 32 33 34 35 36 37 38 39
<template>
  <view>
    <page-head :title="title"></page-head>
    <view class="uni-padding-wrap uni-common-mt">
      <view class="uni-btn-v">
        <button type="primary" @tap="singleTag">rich-text渲染单个HTML标签示例</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @tap="complexTags">rich-text渲染复杂HTML示例</button>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        title: 'rich-text'
      }
    },
    methods: {
      singleTag() {
        uni.navigateTo({
          url: '/pages/component/rich-text/rich-text-tags'
        });
      },
      complexTags() {
        uni.navigateTo({
          url: '/pages/component/rich-text/rich-text-complex'
        });
      }
    }
  }
</script>

<style>

</style>