mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Support roundingMode for InputNumber (#4946)
This commit is contained in:
parent
f16bd6ab2e
commit
078a30720c
3 changed files with 37 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue