一键导入
el-calendar
Calendar component for displaying dates. Invoke when user needs to display a calendar view, select dates, or show scheduled events.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Calendar component for displaying dates. Invoke when user needs to display a calendar view, select dates, or show scheduled events.
用 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-calendar |
| description | Calendar component for displaying dates. Invoke when user needs to display a calendar view, select dates, or show scheduled events. |
| metadata | {"author":"jiaiyan","version":"1.0.0"} |
Calendar component displays dates with customizable content and range.
<template>
<el-calendar v-model="date" />
</template>
<script setup>
import { ref } from 'vue'
const date = ref(new Date())
</script>
<template>
<el-calendar v-model="date">
<template #dateCell="{ data }">
<p>{{ data.day.split('-')[2] }}</p>
</template>
</el-calendar>
</template>
<template>
<el-calendar :range="[startDate, endDate]" />
</template>
<script setup>
const startDate = new Date(2024, 0, 1)
const endDate = new Date(2024, 1, 28)
</script>
<template>
<el-calendar v-model="date">
<template #header="{ date }">
<span>{{ date }}</span>
</template>
</el-calendar>
</template>
| Name | Description | Type | Default |
|---|---|---|---|
| model-value / v-model | Binding value | Date | — |
| range | Time range | [Date, Date] | — |
| controller-type | Controller type | 'button' | 'select' | 'button' |
| formatter | Format label | (value, type) => string | number | — |
| Name | Description | Type |
|---|---|---|
| date-cell | Custom date cell | { data: { type, isSelected, day, date } } |
| header | Custom header | { date: string } |
| Name | Description | Type |
|---|---|---|
| selectedDay | Currently selected date | ComputedRef<Dayjs> |
| pickDay | Select a specific date | (day) => void |
| selectDate | Select date | (type) => void |
date-cell slot for custom contentrange for limited date views