index.vue 767 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--
  2. * @Author: WangQiBiao
  3. * @Date: 2019-09-25 14:16:20
  4. * @LastEditors: MoZhuangRu
  5. * @LastEditTime: 2020-01-15 16:47:25
  6. * @Description:
  7. -->
  8. <template>
  9. <h3 class="title">
  10. <slot></slot>
  11. <div v-if="isBorder" class="line"></div>
  12. </h3>
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. isBorder: {
  18. default () {
  19. return false
  20. }
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. @import '@/assets/css/function';
  27. @import '@/assets/css/theme';
  28. .title{
  29. text-align: center;
  30. color: #39D6FE;
  31. font-size:halfH(22);
  32. font-weight:bold;
  33. padding-top: halfH(22);
  34. background: $title-cent;
  35. background-clip: text;
  36. color: transparent;
  37. .line{
  38. height: 1px;
  39. background: $communication-line;
  40. margin: halfH(15);
  41. }
  42. }
  43. </style>