noMore.vue 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <li class="no-more" v-show="noMore">
  3. <span><em>{{noMoreText}}</em></span>
  4. </li>
  5. </template>
  6. <script>
  7. export default {
  8. name: "noMore",
  9. props: {
  10. noMore: {
  11. type: Boolean,
  12. default: !1
  13. },
  14. noMoreText: {
  15. type: String,
  16. default: "我是有底线的!"
  17. }
  18. },
  19. data() {
  20. return {};
  21. },
  22. methods: {}
  23. };
  24. </script>
  25. <style lang="less">
  26. @import "../style/common";
  27. .no-more {
  28. position: relative;
  29. padding: 10px 15px;
  30. text-align: center;
  31. span {
  32. position: relative;
  33. display: inline-block;
  34. padding: 5px 30px;
  35. em {
  36. display: inline-block;
  37. padding: 0 10px;
  38. z-index: 10;
  39. font-style: normal;
  40. .fontSize(12px);
  41. .textColor(#999);
  42. .backgroundColor(#fff);
  43. }
  44. }
  45. span::after {
  46. content: "";
  47. width: 100%;
  48. height: 0.5px;
  49. .ct();
  50. left: 0;
  51. right: 0;
  52. z-index: -1;
  53. .backgroundColor();
  54. }
  55. }
  56. </style>