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
40
41
42
43
| Component({
| options: {
| addGlobalClass: true,
| multipleSlots: true, // 在组件定义时的选项中启用多slot支持
| },
|
| relations: {
| '../order-card/index': {
| type: 'ancestor',
| linked(target) {
| this.parent = target;
| },
| },
| },
|
| properties: {
| goods: Object,
| thumbWidth: Number,
| thumbHeight: Number,
| thumbWidthInPopup: Number,
| thumbHeightInPopup: Number,
| noTopLine: Boolean,
| step: Boolean,
| stepDisabled: Boolean,
| },
|
| data: {
| goods: {},
| hidden: false,
| },
|
| methods: {
| setHidden(hidden) {
| if (this.data.hidden === hidden) return;
| this.setData({ hidden });
| },
|
| onNumChange(e) {
| const { value } = e.detail;
| this.triggerEvent('num-change', { value });
| },
| },
| });
|
|