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

This commit is contained in:
思维空间
2020-09-27 14:16:25 +08:00
parent 9c2d7900b9
commit fd146faeb7

View File

@@ -9,11 +9,11 @@ export default {
name: 'd2-count-up', name: 'd2-count-up',
props: { props: {
start: { start: {
type: Number, type: [Number, String],
default: 0 default: 0
}, },
end: { end: {
type: Number, type: [Number, String],
default: 0 default: 0
}, },
decimals: { decimals: {