1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| import fmtEvent from '../../_util/fmtEvent';
| import fmtUnit from '../../_util/fmtUnit';
| Component({
| props: {
| className: '',
| iconURL: '',
| iconType: ''
| },
| data: {
| iconSize: fmtUnit(22)
| },
| methods: {
| onItemClick: function onItemClick(e) {
| if (this.props.onItemClick && typeof this.props.onItemClick === 'function') {
| var event = fmtEvent(this.props, e);
| this.props.onItemClick(event);
| }
| }
| }
| });
|
|