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-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 { refreshComponentMixin } from 'packages/js/mixins/refreshComponent'
  16. import { dataVMixins } from 'packages/js/mixins/dataVMixins'
  17. import DvBorderBox1 from '@jiaminghi/data-view/lib/components/borderBox1/src/main.vue'
  18. import '@jiaminghi/data-view/lib/components/borderBox1/src/main.css'
  19. export default {
  20. name: 'Border1',
  21. components: {
  22. DvBorderBox1
  23. },
  24. mixins: [refreshComponentMixin, dataVMixins],
  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 #007aff;
  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>