This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-13 13:15:44 -07:00
|
|
|
<template>
|
|
|
|
<span>
|
2020-11-10 15:47:44 -08:00
|
|
|
<span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']">
|
|
|
|
<strong v-if="part.variable">{{pronoun.getMorpheme(part.str, counter)}}</strong>
|
2020-09-13 13:15:44 -07:00
|
|
|
<span v-else>{{part.str}}</span>
|
|
|
|
</span>
|
|
|
|
<small v-if="link">
|
2020-11-10 15:47:44 -08:00
|
|
|
(<nuxt-link :to="'/' + pronoun.canonicalName">{{ pronoun.canonicalName }}</nuxt-link>)
|
2020-09-13 13:15:44 -07:00
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
example: { required: true },
|
2020-11-10 15:47:44 -08:00
|
|
|
pronoun: { required: true },
|
2020-09-13 13:15:44 -07:00
|
|
|
counter: { default: 0 },
|
|
|
|
link: { type: Boolean },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|