Browse Source

fix(progress): 修复进度条自定义内容无动画问题 (#2120)

daofeng-1998 3 years ago
parent
commit
55ad6083cd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/packages/__VUE/progress/index.vue

+ 2 - 1
src/packages/__VUE/progress/index.vue

@@ -26,7 +26,8 @@
             position: `absolute`,
             position: `absolute`,
             top: `50%`,
             top: `50%`,
             left: `${percentage}%`,
             left: `${percentage}%`,
-            transform: `translate(-${+percentage}%,-50%)`
+            transform: `translate(-${+percentage}%,-50%)`,
+            transition: 'all 0.4s'
           }"
           }"
           v-if="showText && textInside && slotDefault"
           v-if="showText && textInside && slotDefault"
         >
         >