1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| import fmtEvent from '../_util/fmtEvent';
| import fmtUnit from '../_util/fmtUnit';
| Component({
| props: {
| className: '',
| value: '',
| placeholder: '',
| onSelect: function onSelect() {},
| labelCls: '',
| pickerCls: '',
| layer: '',
| // 表单排列位置,当为空时默认横向排列, vertical 为竖向排列
| iconType: 'right'
| },
| data: {
| iconSize: fmtUnit(18)
| },
| methods: {
| onPickerTap: function onPickerTap(e) {
| var event = fmtEvent(this.props, e);
| this.props.onPickerTap(event);
| }
| }
| });
|
|