index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div>
  3. <div v-if='uploadVisible' class="uploadWarp">
  4. <el-collapse v-model="activeNames" @change="handleChange" style="position: absolute; width: 100%">
  5. <el-collapse-item title="同步中.." name="1">
  6. <div>已成功同步100个文件,共200个文件</div>
  7. <el-progress :text-inside="true" :show-text='false' :stroke-width="2" :percentage="70"></el-progress>
  8. </el-collapse-item>
  9. </el-collapse>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. import { mapState } from 'vuex'
  15. export default {
  16. components: {
  17. },
  18. props: [],
  19. data() {
  20. return {
  21. activeNames: true
  22. }
  23. },
  24. watch: {
  25. uploadVisible(nv, ov) {
  26. console.log({nv, ov})
  27. }
  28. },
  29. computed: {
  30. ...mapState('uploadFile', ['uploadVisible'])
  31. },
  32. mounted() {
  33. },
  34. methods: {
  35. },
  36. }
  37. </script>
  38. <style scoped lang='less'>
  39. .uploadWarp {
  40. position: fixed;
  41. right: 32px;
  42. bottom: 160px;
  43. width: 420px;
  44. }
  45. </style>