index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div
  3. style="width: 100%;height: 100%"
  4. class="bs-design-wrap"
  5. >
  6. <dv-border-box-5
  7. :id="'dataV' + code"
  8. :key="updateKey"
  9. :color="color"
  10. :background-color="colorType === 'single' ? backgroundColor : `url(#${borderBgId})`"
  11. :reverse="reverse"
  12. />
  13. </div>
  14. </template>
  15. <script>
  16. import { dataVMixins } from 'data-room-ui/js/mixins/dataVMixins'
  17. import DvBorderBox5 from '@jiaminghi/data-view/lib/components/borderBox5/src/main.vue'
  18. import '@jiaminghi/data-view/lib/components/borderBox5/src/main.css'
  19. export default {
  20. name: 'Border5',
  21. components: {
  22. DvBorderBox5
  23. },
  24. mixins: [dataVMixins],
  25. computed: {
  26. reverse () {
  27. return this.config.customize.reverse
  28. }
  29. },
  30. watch: {},
  31. mounted () {},
  32. methods: {}
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .bs-design-wrap {
  37. position: relative;
  38. width: 100%;
  39. height: 100%;
  40. background-color: transparent;
  41. border-radius: 4px;
  42. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  43. box-sizing: border-box;
  44. }
  45. .title-box {
  46. height: 40px;
  47. padding: 10px 10px 0 0;
  48. box-sizing: border-box;
  49. .title {
  50. font-size: 14px;
  51. color: #333;
  52. font-weight: bold;
  53. border-left: 3px solid var(--bs-el-color-primary);
  54. padding-left: 16px;
  55. }
  56. .target-value {
  57. overflow-y: auto;
  58. height: 60px;
  59. font-weight: bold;
  60. width: 100%;
  61. font-size: 20px;
  62. color: #333;
  63. padding: 16px 0 0 22px;
  64. box-sizing: border-box;
  65. }
  66. }
  67. .el-icon-warning {
  68. color: #ffd600;
  69. }
  70. .title-hover {
  71. &:hover {
  72. cursor: move;
  73. }
  74. }
  75. /*滚动条样式*/
  76. ::v-deep ::-webkit-scrollbar {
  77. width: 4px;
  78. border-radius: 4px;
  79. height: 4px;
  80. }
  81. ::v-deep ::-webkit-scrollbar-thumb {
  82. background: #dddddd !important;
  83. border-radius: 10px;
  84. }
  85. </style>