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
29
30
31
32
33
34
35
36
37
38
39
| Component({
| props: {
| title: '',
| onCardClick: function onCardClick() {},
| info: ''
| },
| methods: {
| onCardClick: function onCardClick() {
| var _this$props = this.props,
| info = _this$props.info,
| onCardClick = _this$props.onCardClick;
| onCardClick({
| info: info
| });
| },
| onActionClick: function onActionClick() {
| var _this$props2 = this.props,
| info = _this$props2.info,
| onActionClick = _this$props2.onActionClick;
|
| if (onActionClick) {
| onActionClick({
| info: info
| });
| }
| },
| onExtraActionClick: function onExtraActionClick() {
| var _this$props3 = this.props,
| info = _this$props3.info,
| onExtraActionClick = _this$props3.onExtraActionClick;
|
| if (onExtraActionClick) {
| onExtraActionClick({
| info: info
| });
| }
| }
| }
| });
|
|