File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ export default class Amount extends Vue {
30
30
// skip validation for minDecimals and maxDecimals if they're overwritten by decimals
31
31
return ;
32
32
}
33
- if (decimals !== undefined && (decimals < 0 || decimals > this .currencyDecimals || ! Number .isInteger (decimals ))) {
33
+ if (
34
+ decimals !== undefined && (
35
+ decimals < 0
36
+ || decimals > this .currencyDecimals
37
+ || ! Number .isInteger (decimals )
38
+ )
39
+ ) {
34
40
throw new Error (' Amount: decimals is not in range' );
35
41
}
36
42
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default class AmountInput extends Vue {
25
25
input: HTMLInputElement ,
26
26
widthPlaceholder: HTMLSpanElement ,
27
27
widthValue: HTMLSpanElement ,
28
- }
28
+ };
29
29
30
30
@Prop ({type: Number }) private value? : number ;
31
31
@Prop ({type: Number , default: 8 }) private maxFontSize! : number ;
Original file line number Diff line number Diff line change 3
3
</template >
4
4
5
5
<script lang="ts">
6
- export default {}
6
+ export default {};
7
7
</script >
8
8
9
9
<style scoped>
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import { AlertTriangleIcon } from './Icons';
36
36
@Component ({ components: { AlertTriangleIcon }})
37
37
export default class Tooltip extends Vue {
38
38
// Only $el of the reference is of interest
39
- @Prop (Object ) public reference? : {$el : HTMLElement };
39
+ @Prop (Object ) public reference? : {$el: HTMLElement };
40
40
41
41
// Typing of $refs and $el, in order to not having to cast it everywhere.
42
42
public $refs! : {
@@ -86,7 +86,10 @@ export default class Tooltip extends Vue {
86
86
if (this .reference && this .$el ) {
87
87
const referenceLeftPad = parseInt (
88
88
window .getComputedStyle (this .reference .$el , null ).getPropertyValue (' padding-left' ), 10 );
89
- this .left = this .reference .$el .getBoundingClientRect ().left - this .$el .getBoundingClientRect ().left + referenceLeftPad ;
89
+ this .left =
90
+ this .reference .$el .getBoundingClientRect ().left
91
+ - this .$el .getBoundingClientRect ().left
92
+ + referenceLeftPad ;
90
93
91
94
if (this .reference .$el .scrollTop < this .$el .offsetTop - this .height ) {
92
95
this .tooltipPosition = ' top' ;
Original file line number Diff line number Diff line change 28
28
]
29
29
},
30
30
"include" : [
31
- " types/svg.d.ts"
31
+ " types/svg.d.ts" ,
32
+ " src/main.ts" // Must be included for TSLint to work
32
33
// "src/**/*.ts",
33
34
// "src/**/*.tsx",
34
35
// "src/**/*.vue",
You can’t perform that action at this time.
0 commit comments