mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			556 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			556 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <ul role="list" class="py-2">
 | 
						|
    <article-list-item
 | 
						|
      v-for="article in articles"
 | 
						|
      :key="article.slug"
 | 
						|
      :link="article.link"
 | 
						|
      :title="article.title"
 | 
						|
      @click="onClick"
 | 
						|
    />
 | 
						|
  </ul>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import ArticleListItem from './ArticleListItem';
 | 
						|
 | 
						|
export default {
 | 
						|
  components: {
 | 
						|
    ArticleListItem,
 | 
						|
  },
 | 
						|
  props: {
 | 
						|
    articles: {
 | 
						|
      type: Array,
 | 
						|
      default: () => [],
 | 
						|
    },
 | 
						|
  },
 | 
						|
  data() {
 | 
						|
    return {};
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    onClick(link) {
 | 
						|
      this.$emit('click', link);
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |