index.vue 1.8 KB

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