1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <article class="corpus item">
- <header>
- <h1>
- <a
- :href="item.url"
- @click.prevent="onclick"
- @keyup.enter="onclick"
- v-html="item.title"
- />
- </h1>
- </header>
- <div class="text-quantity" v-html="item.textsQuantity" />
- </article>
- </template>
- <script>
- export default {
- name: 'CorpusItem',
- props: {
- item: {
- type: Object,
- required: true
- }
- },
- data: () => ({
- }),
- methods: {
- onclick () {
- console.log('clicked on corpus item', this.item)
- // this.$router.push({
- // name:`article`,
- // params: { alias:this.alias },
- // query: { uuid: this.item.uuid }
- // // meta: { uuid:this.item.uuid },
- // })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|