提交 24aa493a 编写于 作者: W wanganxp

完善text组件测试例

上级 69f3716d
......@@ -19,13 +19,13 @@
不可点击的按钮
</button>
<button type="default" :plain="true" class="button">按钮</button>
<button type="default" :disabled="true" :plain="true" class="button">按钮</button>
<button type="default" :plain="true" class="button">按钮 plain背景镂空</button>
<button type="default" :disabled="true" :plain="true" class="button">按钮 Disabled</button>
<view class="uni-flex uni-row">
<button class="button mini-btn" type="primary" size="mini">按钮</button>
<button class="button mini-btn" type="default" size="mini">按钮</button>
<button class="button mini-btn" type="warn" size="mini">按钮</button>
<button class="button mini-btn" type="primary" size="mini">按钮 mini</button>
<button class="button mini-btn" type="default" size="mini">按钮 mini</button>
<button class="button mini-btn" type="warn" size="mini">按钮 mini</button>
</view>
</view>
</view>
......@@ -38,7 +38,7 @@
title: 'button',
loading: false,
_timer: 0,
text: '按钮',
text: '文字来自data绑定',
type: 'primary',
size: 'default',
plain: false,
......
......@@ -34,7 +34,10 @@
description: '本地当前路径(暂不支持)'
},
{
// #ifdef APP-ANDROID
src: 'file:///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__4517034/www/static/test-image/logo.png',
// #endif
// TODO iOS还需再补路径
description: '本地绝对路径'
},
{
......
<template>
<view>
<scroll-view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-title">
......@@ -7,11 +7,18 @@
</view>
<view class="uni-title">
<text class="uni-subtitle-text">行</text>
<text class="uni-subtitle-text">根据宽度自动折行</text>
</view>
<view class="text-box">
<text>{{multiLineText}}</text>
</view>
<view class="uni-title">
<text class="uni-subtitle-text">\\n换行</text>
</view>
<view class="text-box">
<text>\n换\n行\n</text>
</view>
<view class="uni-title">
<text class="uni-subtitle-text">截断(clip)</text>
......@@ -54,8 +61,20 @@
<text :decode="true">uni-app&ensp;x,终极跨平台方案</text>
<text :decode="true">uni-app&emsp;x,终极跨平台方案</text>
</view>
<view class="uni-title">
<text class="uni-subtitle-text">嵌套</text>
</view>
<view class="text-box">
<text>一级节点黑色
<text style="color: red;">二级节点红色
<text>三级节点不继承二级的颜色</text>
</text>
<text style="font-size: 50px;">二级节点大字体</text>
</text>
</view>
</view>
</view>
</scroll-view>
</template>
<script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册