src/resources/assets/js/components/Previews/PreviewHeight.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 19
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 19
rs 10
c 1
b 0
f 0
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A ???.data 0 5 1
A ???.computed.top 0 3 1
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
};