提交 a741ffa1 编写于 作者: H hdx

slider: 增加 step 0 ~ 100 刻度

上级 af293afd
......@@ -78,7 +78,6 @@
<input-data defaultValue="#ffffff" title="滑块颜色" type="text" @confirm="confirm_block_color_input"></input-data>
</view>
<view class="uni-padding-wrap">
<page-head title="默认及使用"></page-head>
<view class="uni-title">显示当前value</view>
......@@ -86,8 +85,12 @@
<slider @change="sliderChange" :value="50" :show-value="true" />
</view>
<view class="uni-title">设置步进step跳动</view>
<view class="uni-title">设置步进:step=5跳动</view>
<view>
<view class="uni-row">
<text>0</text>
<text class="m-l-a">100</text>
</view>
<slider @change="sliderChange" :value="60" :step="5" />
</view>
......@@ -122,4 +125,8 @@
height: 200rpx;
border: 1px solid #666;
}
.m-l-a {
margin-left: auto;
}
</style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册