index.vue 917 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="van-panel van-hairline--top-bottom custom-class">
  3. <van-cell v-if="title || desc || status" :title="title" :label="desc" :value="status" custom-class="header-class" value-class="van-panel__header-value" />
  4. <slot v-else name="header" />
  5. <view class="van-panel__content">
  6. <slot />
  7. </view>
  8. <view v-if="useFooterSlot" class="van-panel__footer van-hairline--top footer-class">
  9. <slot name="footer" />
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. 'use strict';
  15. Object.defineProperty(exports, '__esModule', {
  16. value: true
  17. });
  18. var component_1 = require('../common/component');
  19. component_1.VantComponent({
  20. classes: ['header-class', 'footer-class'],
  21. props: {
  22. desc: String,
  23. title: String,
  24. status: String,
  25. useFooterSlot: Boolean
  26. }
  27. });
  28. </script>
  29. <style>
  30. @import './index.css';
  31. </style>