mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-11-22 04:12:09 +08:00
[improvement] Cell: 增加默认白色背景色 (#270)
* 修复stepper文档错误 * 采用极大数字来代替 infinity * 增加 cell 背景色 * 增加外部样式类
This commit is contained in:
parent
d7ce0a8cda
commit
ce948df12f
@ -3,6 +3,7 @@
|
|||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"zan-cell": "../../dist/cell/index",
|
"zan-cell": "../../dist/cell/index",
|
||||||
"zan-icon": "../../dist/icon/index",
|
"zan-icon": "../../dist/icon/index",
|
||||||
|
"zan-badge": "../../dist/badge/index",
|
||||||
"zan-panel": "../../dist/panel/index",
|
"zan-panel": "../../dist/panel/index",
|
||||||
"zan-cell-group": "../../dist/cell-group/index",
|
"zan-cell-group": "../../dist/cell-group/index",
|
||||||
"doc-page": "../../components/doc-page/index"
|
"doc-page": "../../components/doc-page/index"
|
||||||
|
|||||||
3
packages/cell-group/index.pcss
Normal file
3
packages/cell-group/index.pcss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.cell-group {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
@ -4,6 +4,7 @@ const warn = (msg, getValue) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Component({
|
Component({
|
||||||
|
externalClasses: ['cell-class'],
|
||||||
options: {
|
options: {
|
||||||
multipleSlots: true
|
multipleSlots: true
|
||||||
},
|
},
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
background-color: #fff;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<view
|
<view
|
||||||
catchtap="cellTap"
|
catchtap="cellTap"
|
||||||
class="zan-cell {{ isLastCell ? 'last-cell' : '' }} {{ isLink ? 'zan-cell--access' : '' }}">
|
class="cell-class zan-cell {{ isLastCell ? 'last-cell' : '' }} {{ isLink ? 'zan-cell--access' : '' }}">
|
||||||
|
|
||||||
<view class="zan-cell__icon">
|
<view class="zan-cell__icon">
|
||||||
<slot name="icon"></slot>
|
<slot name="icon"></slot>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user