"d2-count-up"组件起始值与结束值支持传入字符串数值,避免“类型检查失败”警告。

This commit is contained in:
思维空间 2020-09-27 14:16:25 +08:00
parent 9c2d7900b9
commit fd146faeb7
1 changed files with 2 additions and 2 deletions

View File

@ -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: {