index.vue 1.7 KB

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