ScrolledList.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <script setup>
  2. </script>
  3. <template>
  4. <div class="tables">
  5. <dv-scroll-board :config="config" style="width:340rem;height:220rem" @click="clickInfo" />
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. // viewersName: '', //视角标签名称
  13. // ImgurlList: [], //截图地址列表
  14. config:{
  15. header: ['设备名称', '设备类型', '设备状态','详情'],
  16. data: [
  17. ['设备一', 'A200', '正常'],
  18. ['设备二', 'C100', '正常'],
  19. ['设备三', 'B300', '正常'],
  20. ['设备四', 'E500', '正常'],
  21. ['设备五', 'B400', '正常'],
  22. ['设备六', 'F300', '正常'],
  23. ],
  24. align:['center','center','center'],
  25. headerBGC:'rgba(61, 198, 255, 0.4)',
  26. oddRowBGC:'rgba(0, 37, 98, 0.4)',
  27. evenRowBGC:'rgba(0, 37, 98, 0)'
  28. }
  29. }
  30. },
  31. methods: {
  32. clickInfo(config){
  33. console.log(config.row)
  34. }
  35. },
  36. created() {
  37. this.config.data = this.config.data.map((item) => {
  38. item.push("<div style='color:#08C8B7' class='ScriconList'></div>");
  39. return item;
  40. })
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .tables{
  46. margin-top: 10rem;
  47. }
  48. </style>