Skip to content

Commit

Permalink
"d2-count-up"组件起始值与结束值支持传入字符串数值,避免“类型检查失败”警告。
Browse files Browse the repository at this point in the history
  • Loading branch information
dnyz520 committed Sep 27, 2020
1 parent 9c2d790 commit fd146fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/d2-count-up/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default {
name: 'd2-count-up',
props: {
start: {
type: Number,
type: [Number, String],
default: 0
},
end: {
type: Number,
type: [Number, String],
default: 0
},
decimals: {
Expand Down

0 comments on commit fd146fa

Please sign in to comment.