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

Version Path
mihari-5.7.0 frontend/src/components/tag/Tags.vue
mihari-5.6.2 frontend/src/components/tag/Tags.vue
mihari-5.6.1 frontend/src/components/tag/Tags.vue
mihari-5.6.0 frontend/src/components/tag/Tags.vue
mihari-5.5.0 frontend/src/components/tag/Tags.vue
mihari-5.4.9 frontend/src/components/tag/Tags.vue
mihari-5.4.8 frontend/src/components/tag/Tags.vue
mihari-5.4.7 frontend/src/components/tag/Tags.vue
mihari-5.4.6 frontend/src/components/tag/Tags.vue
mihari-5.4.5 frontend/src/components/tag/Tags.vue
mihari-5.4.4 frontend/src/components/tag/Tags.vue
mihari-5.4.3 frontend/src/components/tag/Tags.vue
mihari-5.4.2 frontend/src/components/tag/Tags.vue
mihari-5.4.1 frontend/src/components/tag/Tags.vue
mihari-5.4.0 frontend/src/components/tag/Tags.vue
mihari-5.3.2 frontend/src/components/tag/Tags.vue
mihari-5.3.1 frontend/src/components/tag/Tags.vue
mihari-5.3.0 frontend/src/components/tag/Tags.vue