Support roundingMode for InputNumber (#4946)

This commit is contained in:
Son Tran 2023-12-22 07:24:57 +07:00 committed by GitHub
parent f16bd6ab2e
commit 078a30720c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 3 deletions

View file

@ -78,6 +78,23 @@ export default {
type: Number,
default: undefined
},
roundingMode: {
type: String,
default: 'halfExpand',
validator(value) {
return [
'ceil',
'floor',
'expand',
'trunc',
'halfCeil',
'halfFloor',
'halfExpand',
'halfTrunc',
'halfEven'
].includes(value);
}
},
min: {
type: Number,
default: null