Commit 155ebdce authored by Pavel Mashliakovskiy's avatar Pavel Mashliakovskiy 🤹🏻

Merge branch 'UBaseInput_firefox_error' into 'master'

`UBaseInput` Firefox error border around input. Change default values of props...

See merge request !820
parents 86200717 103bab69
Pipeline #21724 skipped with stage
......@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- `UTableEntity`: bottom pagination button for tables is centered on a current viewport, so visible even in case of many columns in table
- `UTableEntity`: bottom pagination button is hidden in case next page is unavailable
- `UNavbar` collapse button background color is bound to `USidebar` background.
- `UBaseInput` prevent error border around input in Firefox by changing default values for props `step="any"` (instead of 1), `precision="Infinity"` (insead of 0)
- `el-theme` rebuild theme with actual css variables (uses the same colors for warning, prmary text and borders in El controls as for U controls)
## [1.12.1] - 2020-07-19
......
......@@ -47,8 +47,8 @@ export default {
* will be ignored if type !== 'number'
*/
step: {
type: Number,
default: 1
type: [Number, String],
default: 'any'
},
/**
......@@ -58,7 +58,7 @@ export default {
*/
precision: {
type: Number,
default: 0
default: Infinity
},
/**
......
......@@ -66,12 +66,13 @@ export default {
return this.step
}
if (this.dataType === 'Float') {
return 1 / 10 ** (this.$UB.connection.domain.FLOATING_SCALE_PRECISION - 1)
return 1 / 10 ** (this.$UB.connection.domain.FLOATING_SCALE_PRECISION)
}
if (this.dataType === 'Currency') {
return 0.01
}
return 1
return undefined
},
getPrecision () {
......@@ -80,7 +81,8 @@ export default {
}
if (this.dataType === 'Float') return this.$UB.connection.domain.FLOATING_SCALE_PRECISION
if (this.dataType === 'Currency') return 2
return 0
return undefined
},
dataType () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment