1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| import fmtEvent from '../_util/fmtEvent';
| Component({
| props: {
| // title component have boder-bottom line
| hasLine: false,
| // type: arrow、close、more、'';
| type: '',
| // if type="arrow", need to write path
| iconURL: '',
| onActionTap: function onActionTap() {},
| // developer can use class for style
| className: ''
| },
| data: {},
| didMount: function didMount() {},
| didUpdate: function didUpdate() {},
| didUnmount: function didUnmount() {},
| methods: {
| onClick: function onClick(e) {
| var onActionTap = this.props.onActionTap;
| var event = fmtEvent(this.props, e);
|
| if (typeof onActionTap === 'function') {
| onActionTap(event);
| }
| }
| }
| });
|
|