index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div
  3. style="width: 100%;height: 100%"
  4. class="bs-design-wrap"
  5. >
  6. <dv-decoration-11
  7. :key="updateKey"
  8. :color="color"
  9. >
  10. <!-- <span :style="
  11. 'font-size:' +
  12. config.customize.fontSize +
  13. 'px;color:' +
  14. config.customize.color +
  15. ';font-weight:' +
  16. config.customize.fontWeight
  17. ">{{config.customize.title}}</span> -->
  18. </dv-decoration-11>
  19. </div>
  20. </template>
  21. <script>
  22. import DvDecoration11 from '@jiaminghi/data-view/lib/components/decoration11/src/main.vue'
  23. import { refreshComponentMixin } from 'data-room-ui/js/mixins/refreshComponent'
  24. export default {
  25. name: 'Decoration11',
  26. components: {
  27. DvDecoration11
  28. },
  29. mixins: [refreshComponentMixin],
  30. props: {
  31. // 卡片的属性
  32. config: {
  33. type: Object,
  34. default: () => ({})
  35. }
  36. },
  37. data () {
  38. return {}
  39. },
  40. computed: {
  41. color () {
  42. return this.config.customize.decorationColor1 ||
  43. this.config.customize.decorationColor2
  44. ? [
  45. this.config.customize.decorationColor1,
  46. this.config.customize.decorationColor2
  47. ]
  48. : null
  49. }
  50. },
  51. watch: {},
  52. mounted () {},
  53. methods: {}
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .bs-design-wrap {
  58. position: relative;
  59. width: 100%;
  60. height: 100%;
  61. background-color: transparent;
  62. border-radius: 4px;
  63. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  64. box-sizing: border-box;
  65. }
  66. .title-box {
  67. height: 40px;
  68. padding: 10px 10px 0 0;
  69. box-sizing: border-box;
  70. .title {
  71. font-size: 14px;
  72. color: #333;
  73. font-weight: bold;
  74. border-left: 3px solid var(--bs-el-color-primary);
  75. padding-left: 16px;
  76. }
  77. .target-value {
  78. overflow-y: auto;
  79. height: 60px;
  80. font-weight: bold;
  81. width: 100%;
  82. font-size: 20px;
  83. color: #333;
  84. padding: 16px 0 0 22px;
  85. box-sizing: border-box;
  86. }
  87. }
  88. .el-icon-warning {
  89. color: #ffd600;
  90. }
  91. .title-hover {
  92. &:hover {
  93. cursor: move;
  94. }
  95. }
  96. /*滚动条样式*/
  97. ::v-deep ::-webkit-scrollbar {
  98. width: 4px;
  99. border-radius: 4px;
  100. height: 4px;
  101. }
  102. ::v-deep ::-webkit-scrollbar-thumb {
  103. background: #dddddd !important;
  104. border-radius: 10px;
  105. }
  106. </style>