index.vue 1.7 KB

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