vant icon indicating copy to clipboard operation
vant copied to clipboard

Process组件问题,在用ajax方法动态调用之后给进度条赋值,右侧会溢出浏览器

Open RinaDad opened this issue 7 years ago • 4 comments

Process组件问题,在用ajax方法动态调用之后给进度条赋值,右侧会溢出浏览器。 以下例子使用定时器,也会重现这个问题。

<template>
  <div id="app">
    <br /><br />
    <van-progress class="exam_process_bar" :pivot-text="pivot" color="#4b0" :percentage="percentage" />
    <br />
    <van-button type="default" @click="addM()">增加数值</van-button>
  </div>
</template>

<script>
import { Button,Progress } from 'vant';
export default {
  data() {
    return {
      pivot: '',
      percentage: 0 // 进度条数据
    }
  },
  components: {
    [Button.name]: Button,
    [Progress.name]: Progress
  },
  created: function() {
    this.pivot = '1';
  },
  methods:{
    addM() {
      setTimeout(() => {
        this.percentage = 100;
        this.pivot = '1000000';
      }, 1000);
    }
  }
};
</script>
<style>

</style>

辛苦!

RinaDad avatar May 09 '19 12:05 RinaDad

感谢反馈,下个版本会修复此问题

chenjiahan avatar May 10 '19 03:05 chenjiahan

好的,谢谢!辛苦了!

RinaDad avatar May 10 '19 03:05 RinaDad

已在 1.6.18 版本修复

chenjiahan avatar May 11 '19 02:05 chenjiahan

谢谢!

RinaDad avatar May 11 '19 02:05 RinaDad