<template>
  <div>
    <template v-for="(item, index) in options">
      <template v-if="value == item.postId">
        <span
          :key="item.postId"
          :index="index"
          >{{ item.postName }}</span
        >
      </template>
    </template>
  </div>
</template>

<script>
export default {
  name: "DictPost",
  props: {
    options: {
      type: Array,
      default: null,
    },
    value: [Number, String, Array],
  },
  computed: {
  },
};
</script>
<style scoped>
.el-tag + .el-tag {
  margin-left: 10px;
}
</style>
