index.vue 1.6 KB

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