forDigitalFlop.vue 456 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="for-digital-flop">
  3. <dv-digital-flop :config="currentConfig" style="width:100%;height:100%;" />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'ForDigitalFlop',
  9. props: ['data'],
  10. data () {
  11. return {
  12. index: 0,
  13. currentConfig: {}
  14. }
  15. },
  16. methods: {
  17. },
  18. mounted () {
  19. const { data } = this
  20. this.currentConfig = data[0]
  21. }
  22. }
  23. </script>
  24. <style lang="less">
  25. .for-digital-flop {
  26. }
  27. </style>