提交 c7b88b89 编写于 作者: H hdx

feat(switch): 调整页面样式,推荐样式没有 padding 太贴边了

上级 b0c5829e
......@@ -55,6 +55,10 @@
align-items: center;
}
.uni-list-cell-padding {
padding: 16px;
}
.uni-list-cell-line {
border-bottom: 1px solid #c8c7cc;
}
......
<template>
<view class="uni-padding-wrap">
<view class="uni-common-mt">
<view>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-title">默认样式</view>
<view class="flex-row">
<switch class="switch-checked" :checked="checked" @change="switch1Change" />
......@@ -20,11 +20,11 @@
<view class="uni-title">推荐展示样式</view>
</view>
<view class="uni-list">
<view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell uni-list-cell-padding">
<view class="uni-list-cell-db">开启中</view>
<switch :checked="true" />
</view>
<view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell uni-list-cell-padding">
<view class="uni-list-cell-db">关闭</view>
<switch />
</view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册