Files
chatwoot/app/javascript/widget/components/ArticleList.vue
Nithin David Thomas 703e19304d feat: Components to render articles in widget home (#7596)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
2023-07-24 16:45:55 -07:00

35 lines
553 B
Vue

<template>
<ul role="list" class="py-2">
<article-list-item
v-for="article in articles"
:key="article.id"
: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>