一键导入
el-input-tag
InputTag component for adding content as tags. Invoke when user needs to create tag inputs, multi-value inputs, or keyword/tag entry fields.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
InputTag component for adding content as tags. Invoke when user needs to create tag inputs, multi-value inputs, or keyword/tag entry fields.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Element Plus Skills Library - A comprehensive skill library for AI agents to understand and utilize Element Plus UI components. Invoke when user needs to work with Element Plus components, theming, i18n, dark mode, or design specifications.
Affix component for fixing elements to a specific visible area. Invoke when user needs to create sticky navigation, fixed headers, or elements that remain visible while scrolling.
Alert component for displaying important alert messages. Invoke when user needs to show non-dismissible notifications, status messages, or important information that requires user attention.
Anchor component for anchor navigation. Invoke when user needs to create page anchor navigation, table of contents, or quick navigation to specific sections.
Autocomplete component for input suggestions. Invoke when user needs to provide input suggestions, autocomplete functionality, or search-as-you-type features.
Avatar component for representing people or objects with images, icons, or characters. Invoke when user needs to display user avatars, profile pictures, or entity representations.
| name | el-input-tag |
| description | InputTag component for adding content as tags. Invoke when user needs to create tag inputs, multi-value inputs, or keyword/tag entry fields. |
| metadata | {"author":"jiaiyan","version":"1.0.0"} |
InputTag allows users to add content as tags with various customization options.
<template>
<el-input-tag v-model="tags" placeholder="Press Enter to add tag" />
</template>
<script setup>
import { ref } from 'vue'
const tags = ref(['Tag 1', 'Tag 2'])
</script>
<template>
<el-input-tag
v-model="tags"
trigger="Space"
placeholder="Press Space to add tag"
/>
</template>
<template>
<el-input-tag v-model="tags" :max="5" />
</template>
<template>
<el-input-tag
v-model="tags"
collapse-tags
collapse-tags-tooltip
/>
</template>
<template>
<el-input-tag v-model="tags" draggable />
</template>
<template>
<el-input-tag v-model="tags" delimiter="," />
</template>
<template>
<el-input-tag v-model="tags">
<template #tag="{ value, index }">
<el-tag type="success">{{ value }}</el-tag>
</template>
</el-input-tag>
</template>
| Name | Description | Type | Default |
|---|---|---|---|
| model-value / v-model | Binding value | string[] | — |
| max | Max number of tags | number | — |
| tag-type | Tag type | '' | 'success' | 'info' | 'warning' | 'danger' | 'info' |
| tag-effect | Tag effect | '' | 'light' | 'dark' | 'plain' | 'light' |
| trigger | Trigger key | 'Enter' | 'Space' | 'Enter' |
| draggable | Enable drag | boolean | false |
| delimiter | Add tag on delimiter match | string | RegExp | — |
| size | Size | 'large' | 'default' | 'small' | — |
| collapse-tags | Collapse tags | boolean | false |
| collapse-tags-tooltip | Show tooltip on collapse | boolean | false |
| save-on-blur | Save on blur | boolean | true |
| clearable | Show clear button | boolean | false |
| disabled | Disabled | boolean | false |
| placeholder | Placeholder | string | — |
| Name | Description | Type |
|---|---|---|
| change | Value changes | (value: string[]) => void |
| add-tag | Tag added | (value: string | string[]) => void |
| remove-tag | Tag removed | (value: string, index: number) => void |
| focus | Input focuses | (event: FocusEvent) => void |
| blur | Input blurs | (event: FocusEvent) => void |
| clear | Clear clicked | () => void |
| Name | Description | Type |
|---|---|---|
| tag | Custom tag | { value, index } |
| prefix | Prefix content | — |
| suffix | Suffix content | — |
| Name | Description | Type |
|---|---|---|
| focus | Focus input | () => void |
| blur | Blur input | () => void |
max to limit tag countdelimiter for comma-separated inputdraggable for reordering