You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					31 lines
				
				523 B
			
		
		
			
		
	
	
					31 lines
				
				523 B
			| 
								 
											5 years ago
										 
									 | 
							
								<template>
							 | 
						||
| 
								 | 
							
								  <keep-alive include="hottestItemList">
							 | 
						||
| 
								 | 
							
								    <component :is="selectComponent"></component>
							 | 
						||
| 
								 | 
							
								  </keep-alive>
							 | 
						||
| 
								 | 
							
								</template>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<script>
							 | 
						||
| 
								 | 
							
								import HottestItemList from './hottest-item-list'
							 | 
						||
| 
								 | 
							
								import ItemDetailView from './item-detail-view'
							 | 
						||
| 
								 | 
							
								export default {
							 | 
						||
| 
								 | 
							
								  data () {
							 | 
						||
| 
								 | 
							
								    return {
							 | 
						||
| 
								 | 
							
								      selectComponent: HottestItemList
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  components: {
							 | 
						||
| 
								 | 
							
								    HottestItemList,
							 | 
						||
| 
								 | 
							
								    ItemDetailView
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  methods: {
							 | 
						||
| 
								 | 
							
								    init () {
							 | 
						||
| 
								 | 
							
								      this.selectComponent = HottestItemList
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								</script>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<style lang="scss" scoped>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								</style>
							 |