index.vue 1.0 KB

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