提交 | 用户 | age
|
d98d05
|
1 |
import { link } from '../mixins/link'; |
S |
2 |
import { VantComponent } from '../common/component'; |
|
3 |
VantComponent({ |
|
4 |
classes: [ |
|
5 |
'title-class', |
|
6 |
'label-class', |
|
7 |
'value-class', |
|
8 |
'right-icon-class', |
|
9 |
'hover-class', |
|
10 |
], |
|
11 |
mixins: [link], |
|
12 |
props: { |
|
13 |
title: null, |
|
14 |
value: null, |
|
15 |
icon: String, |
|
16 |
size: String, |
|
17 |
label: String, |
|
18 |
center: Boolean, |
|
19 |
isLink: Boolean, |
|
20 |
required: Boolean, |
|
21 |
clickable: Boolean, |
|
22 |
titleWidth: String, |
|
23 |
customStyle: String, |
|
24 |
arrowDirection: String, |
|
25 |
useLabelSlot: Boolean, |
|
26 |
border: { |
|
27 |
type: Boolean, |
|
28 |
value: true, |
|
29 |
}, |
53cc6f
|
30 |
titleStyle: String, |
d98d05
|
31 |
}, |
S |
32 |
methods: { |
|
33 |
onClick(event) { |
|
34 |
this.$emit('click', event.detail); |
|
35 |
this.jumpLink(); |
|
36 |
}, |
|
37 |
}, |
|
38 |
}); |