mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[Improvement] Panel: use cell instead of extra style (#927)
This commit is contained in:
@@ -1,19 +1,15 @@
|
||||
<template>
|
||||
<div class="van-panel van-hairline--top-bottom">
|
||||
<div class="van-panel__header van-hairline--bottom">
|
||||
<slot name="header">
|
||||
<div class="van-panel__title" v-text="title" />
|
||||
<span class="van-panel__desc" v-if="desc" v-text="desc" />
|
||||
<span class="van-panel__status" v-if="status" v-text="status" />
|
||||
</slot>
|
||||
</div>
|
||||
<div class="van-panel__content">
|
||||
<cell-group :class="b()">
|
||||
<slot name="header">
|
||||
<cell :class="b('header')" :title="title" :label="desc" :value="status" />
|
||||
</slot>
|
||||
<div :class="b('content')">
|
||||
<slot />
|
||||
</div>
|
||||
<div class="van-panel__footer van-hairline--top" v-if="$slots.footer">
|
||||
<div v-if="$slots.footer" :class="b('footer')" class="van-hairline--top">
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
</div>
|
||||
</cell-group>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
Reference in New Issue
Block a user