CommonUse.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div class="work-common">
  3. <div class="common-title">
  4. <span>常用功能</span>
  5. <span class="set"><i class="icon-set"></i> 设置</span>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. // import { Popover } from 'element-ui'
  11. export default {
  12. name: 'work-common',
  13. computed: {},
  14. components: {
  15. // [Popover.name]: Popover
  16. },
  17. data () {
  18. return {
  19. }
  20. },
  21. created () {},
  22. mounted () {},
  23. methods: {
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .work-common{
  29. margin-top: 20px;
  30. background: #fff;
  31. border-radius: 4px;
  32. box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.02);
  33. .common-title{
  34. position: relative;
  35. display: flex;
  36. justify-content: space-between;
  37. align-items: center;
  38. padding: 12px 20px;
  39. font-size: 18px;
  40. color: #1d1d1d;
  41. line-height: 28px;
  42. &::after{
  43. position: absolute;
  44. content: '';
  45. width: 3px;
  46. height: 24px;
  47. background: #2cb7ca;
  48. left: 0;
  49. top: 50%;
  50. transform: translateY(-50%);
  51. }
  52. .set{
  53. display: flex;
  54. align-items: center;
  55. color: #2cb7ca;
  56. font-size: 14px;
  57. cursor: pointer;
  58. }
  59. .icon-set{
  60. display: inline-block;
  61. width: 18px;
  62. height: 18px;
  63. margin-right: 6px;
  64. background: url('~@/assets/images/icon/icon-set.png') no-repeat center center;
  65. background-size: contain;
  66. }
  67. }
  68. }
  69. </style>