vant
This commit is contained in:
1
utils/dist/panel/index.d.ts
vendored
Normal file
1
utils/dist/panel/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
10
utils/dist/panel/index.js
vendored
Normal file
10
utils/dist/panel/index.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
classes: ['header-class', 'footer-class'],
|
||||
props: {
|
||||
desc: String,
|
||||
title: String,
|
||||
status: String,
|
||||
useFooterSlot: Boolean
|
||||
}
|
||||
});
|
||||
6
utils/dist/panel/index.json
vendored
Normal file
6
utils/dist/panel/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-cell": "../cell/index"
|
||||
}
|
||||
}
|
||||
19
utils/dist/panel/index.wxml
vendored
Normal file
19
utils/dist/panel/index.wxml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<view class="van-panel van-hairline--top-bottom custom-class">
|
||||
<van-cell
|
||||
wx:if="{{ title || desc || status }}"
|
||||
title="{{ title }}"
|
||||
label="{{ desc }}"
|
||||
value="{{ status }}"
|
||||
custom-class="header-class"
|
||||
value-class="van-panel__header-value"
|
||||
/>
|
||||
<slot wx:else name="header" />
|
||||
|
||||
<view class="van-panel__content">
|
||||
<slot />
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ useFooterSlot }}" class="van-panel__footer van-hairline--top footer-class">
|
||||
<slot name="footer" />
|
||||
</view>
|
||||
</view>
|
||||
1
utils/dist/panel/index.wxss
vendored
Normal file
1
utils/dist/panel/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import '../common/index.wxss';.van-panel{background:#fff;background:var(--panel-background-color,#fff)}.van-panel__header-value{color:#ee0a24;color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:8px 16px;padding:var(--panel-footer-padding,8px 16px)}
|
||||
Reference in New Issue
Block a user