"d2-count-up"组件起始值与结束值支持传入字符串数值,避免“类型检查失败”警告。
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user