index.vue 1.6 KB

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