index.vue 1.7 KB

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