index.vue 1.8 KB

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