Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | export default { |
||
2 | data: function () { |
||
3 | return { |
||
4 | padding: 0, |
||
5 | } |
||
6 | }, |
||
7 | |||
8 | props: { |
||
9 | height: { |
||
10 | type: Number |
||
11 | }, |
||
12 | }, |
||
13 | |||
14 | computed: { |
||
15 | top () { |
||
16 | return (this.height + this.padding) + 'px'; |
||
17 | } |
||
18 | } |
||
19 | }; |