仿互站小程序
This commit is contained in:
9
vant/cell-group/index.js
Normal file
9
vant/cell-group/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(0, require("../common/component").VantComponent)({
|
||||
props: {
|
||||
title: String,
|
||||
border: {
|
||||
type: Boolean,
|
||||
value: !0
|
||||
}
|
||||
}
|
||||
});
|
13
vant/cell-group/index.json
Normal file
13
vant/cell-group/index.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"forview": "/utils/forview/index",
|
||||
"van-loading": "/vant/loading/index",
|
||||
"van-dialog": "/vant/dialog/index",
|
||||
"van-button": "/vant/button/index",
|
||||
"van-icon": "/vant/icon/index",
|
||||
"van-popup": "/vant/popup/index",
|
||||
"van-tab": "/vant/tab/index",
|
||||
"van-tabs": "/vant/tabs/index"
|
||||
}
|
||||
}
|
6
vant/cell-group/index.wxml
Normal file
6
vant/cell-group/index.wxml
Normal file
@@ -0,0 +1,6 @@
|
||||
<view class="van-cell-group__title" wx:if="{{title}}">
|
||||
{{title}}
|
||||
</view>
|
||||
<view class="custom-class van-cell-group {{border?'van-hairline--top-bottom':''}}">
|
||||
<slot></slot>
|
||||
</view>
|
8
vant/cell-group/index.wxss
Normal file
8
vant/cell-group/index.wxss
Normal file
@@ -0,0 +1,8 @@
|
||||
@import "../area/index.wxss";
|
||||
|
||||
.van-cell-group__title {
|
||||
font-size: 14px;
|
||||
padding: 15px 15px 5px;
|
||||
color: #999;
|
||||
line-height: 16px;
|
||||
}
|
Reference in New Issue
Block a user