一键导入
el-color-picker
ColorPicker component for color selection. Invoke when user needs to select colors, set theme colors, or customize color values.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
ColorPicker component for color selection. Invoke when user needs to select colors, set theme colors, or customize color values.
用 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-color-picker |
| description | ColorPicker component for color selection. Invoke when user needs to select colors, set theme colors, or customize color values. |
| metadata | {"author":"jiaiyan","version":"1.0.0"} |
ColorPicker is a color selector supporting multiple color formats.
<template>
<el-color-picker v-model="color" />
</template>
<script setup>
import { ref } from 'vue'
const color = ref('#409EFF')
</script>
<template>
<el-color-picker v-model="color" show-alpha />
</template>
<script setup>
import { ref } from 'vue'
const color = ref('rgba(19, 206, 102, 0.8)')
</script>
<template>
<el-color-picker
v-model="color"
:predefine="predefineColors"
/>
</template>
<script setup>
import { ref } from 'vue'
const color = ref('#409EFF')
const predefineColors = [
'#ff4500',
'#ff8c00',
'#ffd700',
'#90ee90',
'#00ced1',
'#1e90ff',
'#c71585'
]
</script>
<template>
<el-color-picker v-model="color" size="large" />
<el-color-picker v-model="color" />
<el-color-picker v-model="color" size="small" />
</template>
<template>
<el-color-picker v-model="color" color-format="rgb" />
</template>
<script setup>
import { ref } from 'vue'
const color = ref('rgb(64, 158, 255)')
</script>
| Name | Description | Type | Default |
|---|---|---|---|
| model-value / v-model | Binding value | string | — |
| disabled | Disabled | boolean | false |
| clearable | Show clear button | boolean | true |
| size | Size | 'large' | 'default' | 'small' | — |
| show-alpha | Show alpha slider | boolean | false |
| color-format | Color format | 'rgb' | 'prgb' | 'hex' | 'hex3' | 'hex4' | 'hex6' | 'hex8' | 'name' | 'hsl' | 'hsv' | 'hex' or 'rgb' |
| predefine | Predefined colors | string[] | — |
| validate-event | Trigger form validation | boolean | true |
| Name | Description | Type |
|---|---|---|
| change | Value changes | (value: string) => void |
| active-change | Active color changes | (value: string) => void |
| focus | Component focuses | (event: FocusEvent) => void |
| blur | Component blurs | (event: FocusEvent) => void |
| clear | Clear button clicked | () => void |
| Name | Description | Type |
|---|---|---|
| color | Current color object | Color |
| show | Show picker | () => void |
| hide | Hide picker | () => void |
| focus | Focus picker | () => void |
| blur | Blur picker | () => void |
show-alpha for transparent colorspredefine for brand colorscolor-format for specific format needs