index.vue 1.8 KB

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