index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div
  3. style="width: 100%;height: 100%"
  4. class="bs-design-wrap"
  5. :id="'border'+ config.code"
  6. :style="{
  7. borderImageSlice:'100 100 100 100 fill',
  8. borderImageWidth:'100px 100px 100px 100px',
  9. }"
  10. >
  11. </div>
  12. </template>
  13. <script>
  14. import { refreshComponentMixin } from 'data-room-ui/js/mixins/refreshComponent'
  15. export default {
  16. name: 'Border14',
  17. components: {
  18. },
  19. mixins: [refreshComponentMixin],
  20. props: {
  21. id:{
  22. type: String,
  23. default: 'name'
  24. },
  25. // 卡片的属性
  26. config: {
  27. type: Object,
  28. default: () => ({})
  29. }
  30. },
  31. data () {
  32. return {
  33. }
  34. },
  35. computed: {
  36. },
  37. watch: {
  38. },
  39. mounted () {
  40. const a =document.getElementById('border'+ this.config.code)
  41. // a.style['border-image-source']=`url(http://127.0.0.1:8081//bigScreenServer/static/1704043211902484481.png)`
  42. },
  43. methods: {
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .bs-design-wrap {
  49. border-image-source:url(component.png);
  50. width: 100%;
  51. height: 100%;
  52. position: absolute;
  53. }
  54. /*滚动条样式*/
  55. ::v-deep ::-webkit-scrollbar {
  56. width: 4px;
  57. border-radius: 4px;
  58. height: 4px;
  59. }
  60. ::v-deep ::-webkit-scrollbar-thumb {
  61. background: #dddddd !important;
  62. border-radius: 10px;
  63. }
  64. </style>