7564efe6a0cb91e5a67f7137a768a861fee8de6a.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <el-card class="box-card-component" style="margin-left:8px;">
  3. <div slot="header" class="box-card-header">
  4. <img src="https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png">
  5. </div>
  6. <div style="position:relative;">
  7. <pan-thumb :image="avatar" class="panThumb" />
  8. <mallki class-name="mallki-text" text="vue-element-admin" />
  9. <div style="padding-top:35px;" class="progress-item">
  10. <span>Vue</span>
  11. <el-progress :percentage="70" />
  12. </div>
  13. <div class="progress-item">
  14. <span>JavaScript</span>
  15. <el-progress :percentage="18" />
  16. </div>
  17. <div class="progress-item">
  18. <span>Css</span>
  19. <el-progress :percentage="12" />
  20. </div>
  21. <div class="progress-item">
  22. <span>ESLint</span>
  23. <el-progress :percentage="100" status="success" />
  24. </div>
  25. </div>
  26. </el-card>
  27. </template>
  28. <script>
  29. import { mapGetters } from 'vuex'
  30. import PanThumb from '@/components/PanThumb'
  31. import Mallki from '@/components/TextHoverEffect/Mallki'
  32. export default {
  33. components: { PanThumb, Mallki },
  34. filters: {
  35. statusFilter(status) {
  36. const statusMap = {
  37. success: 'success',
  38. pending: 'danger'
  39. }
  40. return statusMap[status]
  41. }
  42. },
  43. data() {
  44. return {
  45. statisticsData: {
  46. article_count: 1024,
  47. pageviews_count: 1024
  48. }
  49. }
  50. },
  51. computed: {
  52. ...mapGetters([
  53. 'name',
  54. 'avatar',
  55. 'roles'
  56. ])
  57. }
  58. }
  59. </script>
  60. <style lang="scss" >
  61. .box-card-component{
  62. .el-card__header {
  63. padding: 0px!important;
  64. }
  65. }
  66. </style>
  67. <style lang="scss" scoped>
  68. .box-card-component {
  69. .box-card-header {
  70. position: relative;
  71. height: 220px;
  72. img {
  73. width: 100%;
  74. height: 100%;
  75. transition: all 0.2s linear;
  76. &:hover {
  77. transform: scale(1.1, 1.1);
  78. filter: contrast(130%);
  79. }
  80. }
  81. }
  82. .mallki-text {
  83. position: absolute;
  84. top: 0px;
  85. right: 0px;
  86. font-size: 20px;
  87. font-weight: bold;
  88. }
  89. .panThumb {
  90. z-index: 100;
  91. height: 70px!important;
  92. width: 70px!important;
  93. position: absolute!important;
  94. top: -45px;
  95. left: 0px;
  96. border: 5px solid #ffffff;
  97. background-color: #fff;
  98. margin: auto;
  99. box-shadow: none!important;
  100. /deep/ .pan-info {
  101. box-shadow: none!important;
  102. }
  103. }
  104. .progress-item {
  105. margin-bottom: 10px;
  106. font-size: 14px;
  107. }
  108. @media only screen and (max-width: 1510px){
  109. .mallki-text{
  110. display: none;
  111. }
  112. }
  113. }
  114. </style>