UNPKG
vue-kompo
Version:
latest (4.0.3)
4.0.3
4.0.2
4.0.1
4.0.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.51
3.0.50
3.0.49
3.0.48
3.0.47
3.0.46
3.0.45
3.0.44
3.0.43
3.0.42
3.0.41
3.0.40
3.0.39
3.0.38
3.0.37
3.0.36
3.0.35
3.0.34
3.0.33
3.0.32
3.0.31
3.0.30
3.0.29
3.0.28
3.0.27
3.0.26
3.0.25
3.0.24
3.0.23
3.0.22
3.0.21
3.0.20
3.0.19
3.0.18
3.0.17
3.0.16
3.0.15
3.0.14
3.0.12
3.0.11
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.3.1
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.2
2.1.1
2.1.0
2.0.23
2.0.22
2.0.21
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.23
1.1.22
1.1.21
1.1.20
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.3
1.1.2
1.1.1
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.0
Laravel Vue components for Rapid Application Development
vue-kompo
/
js
/
element
/
mixins
/
HasId.js
12 lines
(11 loc)
•
313 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export default { computed: {
//by default, one id per element, otherwise concatenate key to id
$_elementId() {
return
key =>
this
.component.id ? (
this
.component.id + ( key ||
''
)) :
null
}, $_elKompoId() {
return
this
.$_config(
'X-Kompo-Id'
) } } }