提交 20d084de 编写于 作者: W wanganxp

微调

上级 b7acaf7a
...@@ -2,17 +2,15 @@ ...@@ -2,17 +2,15 @@
<!-- #ifdef APP --> <!-- #ifdef APP -->
<scroll-view> <scroll-view>
<!-- #endif --> <!-- #endif -->
<view> <page-head :title="title"></page-head>
<page-head :title="title"></page-head> <view class="uni-padding-wrap uni-common-mt">
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-title">
<view class="uni-title"> <text class="uni-title-text">支持的HTML标签</text>
<text class="uni-title-text">支持的HTML标签</text> </view>
</view> <view class="uni-common-mt" v-for="(item,index) in data" :key="index">
<view class="uni-common-mt" v-for="(item,index) in data" :key="index"> <text class="uni-subtitle-text">{{item.name}}</text>
<text class="uni-subtitle-text">{{item.name}}</text> <view style="background:#FFFFFF;">
<view style="background:#FFFFFF;"> <rich-text :nodes="item.html" @itemclick="itemClick"></rich-text>
<rich-text :nodes="item.html" @itemclick="itemClick"></rich-text>
</view>
</view> </view>
</view> </view>
</view> </view>
......
<template> <template>
<view> <view>
<page-head :title="title"></page-head> <page-head title="rich-text"></page-head>
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @tap="singleTag">rich-text渲染单个HTML标签示例</button> <navigator url="/pages/component/rich-text/rich-text-tags">
<button type="primary">rich-text渲染单个HTML标签示例</button>
</navigator>
</view> </view>
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @tap="complexTags">rich-text渲染复杂HTML示例</button> <navigator url="/pages/component/rich-text/rich-text-complex">
<button type="primary">rich-text渲染复杂HTML示例</button>
</navigator>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <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> </script>
<style> <style>
</style> </style>
\ No newline at end of file
...@@ -125,14 +125,6 @@ export default { ...@@ -125,14 +125,6 @@ export default {
open: false, open: false,
pages: [] as Page[], pages: [] as Page[],
}, },
{
id: 'show-search-with-scroll',
url: 'show-search-with-scroll',
name: '滚动后自动显隐的搜索框',
open: false,
enable: false,
pages: [] as Page[],
},
{ {
id: 'swiper-vertical-video', id: 'swiper-vertical-video',
url: 'swiper-vertical-video', url: 'swiper-vertical-video',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册