Sha256: 15b2ccb911733390e6a879926536fce4d1ed64f8897d95f70015377ad38b85e8
Contents?: true
Size: 716 Bytes
Versions: 18
Compression:
Stored size: 716 Bytes
Contents
<template> <div class="field is-grouped is-grouped-multiline"> <TagComponent v-for="tag in tags" :tag="tag" :key="tag.name" @update-tag="updateTag" ></TagComponent> </div> </template> <script lang="ts"> import { defineComponent, type PropType } from "vue" import TagComponent from "@/components/tag/Tag.vue" import type { Tag } from "@/types" export default defineComponent({ name: "TagsItem", components: { TagComponent }, props: { tags: { type: Array as PropType<Tag[]>, required: true } }, setup(_, context) { const updateTag = (tag: string) => { context.emit("update-tag", tag) } return { updateTag } } }) </script>
Version data entries
18 entries across 18 versions & 1 rubygems