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-10-12 14:28:26 -07:00
|
|
|
<span v-for="part in example[(example.isHonorific ? template.isPluralHonorific(counter) : template.isPlural(counter)) ? 'pluralParts' : 'singularParts']">
|
2020-09-13 13:15:44 -07:00
|
|
|
<strong v-if="part.variable">{{template.getMorpheme(part.str, counter)}}</strong>
|
|
|
|
<span v-else>{{part.str}}</span>
|
|
|
|
</span>
|
|
|
|
<small v-if="link">
|
|
|
|
(<nuxt-link :to="'/' + template.canonicalName">{{ template.canonicalName }}</nuxt-link>)
|
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
example: { required: true },
|
|
|
|
template: { required: true },
|
|
|
|
counter: { default: 0 },
|
|
|
|
link: { type: Boolean },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|