You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
642 B

2 years ago
  1. <template>
  2. <div style="margin:60 30 100 30px; ">
  3. <el-progress :text-inside="elProgress.textInside" :stroke-width="elProgress.strokeWidth" :percentage="elProgress.percentage" />
  4. </div>
  5. </template>
  6. <script>
  7. import { mapState } from "vuex";
  8. export default {
  9. data() {
  10. return {
  11. };
  12. },
  13. computed: {
  14. ...mapState(["elProgress"]),
  15. },
  16. created() {
  17. },
  18. mounted() {
  19. },
  20. methods: {
  21. },
  22. //监听事件
  23. watch: {
  24. "elProgress.percentage"(newVal, oldVal) {
  25. if (newVal == 100) {
  26. this.elProgress.display = false
  27. }
  28. },
  29. },
  30. };
  31. </script>
  32. <style lang="scss" scoped>
  33. </style>