| | |
| | | properties: { |
| | | relatedBookData: { |
| | | type: Array, |
| | | value:[] |
| | | value: [], |
| | | }, |
| | | relatedBookLoading: { |
| | | type: Boolean, |
| | | }, |
| | | noRelatedBookData: { |
| | | type: Boolean, |
| | | }, |
| | | }, |
| | | |
| | | /** |
| | | * 组件的初始数据 |
| | | */ |
| | | data: {}, |
| | | data: { |
| | | rowCol: [{ |
| | | size: '200rpx', |
| | | borderRadius: '12rpx' |
| | | }, 1], |
| | | }, |
| | | |
| | | /** |
| | | * 组件的方法列表 |
| | | */ |
| | | methods: {}, |
| | | }); |
| | | methods: { |
| | | goBookDetails(e) { |
| | | const item = e.currentTarget.dataset.item; |
| | | var myEventDetail = { |
| | | id: item.id, |
| | | name: item.name, |
| | | }; |
| | | var myEventOption = { |
| | | bubbles: true, |
| | | composed: true, |
| | | }; |
| | | this.triggerEvent("goBookDetails", myEventDetail, myEventOption); |
| | | }, |
| | | }, |
| | | }); |