mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [bugfix] Search box-sizing wrong * [Doc] update vant-demo respo * [Doc] translate theme & demo pages * [Doc] add Internationalization document * [bugfix] remove unnecessary props
29 lines
708 B
Vue
29 lines
708 B
Vue
<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">
|
|
<slot></slot>
|
|
</div>
|
|
<div class="van-panel__footer van-hairline--top" v-if="$slots.footer">
|
|
<slot name="footer"></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'van-panel',
|
|
props: {
|
|
desc: String,
|
|
title: String,
|
|
status: String
|
|
}
|
|
};
|
|
</script>
|