SkillsGrove
SkillsGrove/Продуктивность/jiaiyan/element-plus-skills/el-calendar

el-calendar

Установка

$npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-calendar
$git clone --depth 1 https://github.com/jiaiyan/element-plus-skills.git /tmp/element-plus-skills && mkdir -p ~/.claude/skills && cp -r /tmp/element-plus-skills/components/el-calendar ~/.claude/skills/el-calendar
Пожалуйста, установи для меня этот Agent Skill: https://github.com/jiaiyan/element-plus-skills/tree/1d126b39a80523665cc6290f70ce25aa89d708ae/components/el-calendar — сначала прочитай его SKILL.md и скрипты и устанавливай в мою папку навыков только после того, как убедишься, что он безопасен.

Кратко

Исходное описание · MITCalendar component for displaying dates. Invoke when user needs to display a calendar view, select dates, or show scheduled events.
Приведённый ниже SKILL.md воспроизведён из jiaiyan/element-plus-skills (коммит 1d126b3) под лицензией MIT. Текст не изменён; опущены только метаданные заголовка файла, изображения показаны как ссылки, а очень длинные файлы сокращены. Авторские права: 2026 jiaiyan. Лицензия: LICENSE. Показан только файл с инструкциями; скрипты смотрите в исходном репозитории.

Calendar Component

Calendar component displays dates with customizable content and range.

When to Use

  • Date selection
  • Event calendars
  • Schedule displays
  • Date range views

Basic Usage

<template>
  <el-calendar v-model="date" />
</template>

<script setup>
import { ref } from 'vue'

const date = ref(new Date())
</script>

Custom Content

<template>
  <el-calendar v-model="date">
    <template #dateCell="{ data }">
      <p>{{ data.day.split('-')[2] }}</p>
    </template>
  </el-calendar>
</template>

Range

<template>
  <el-calendar :range="[startDate, endDate]" />
</template>

<script setup>
const startDate = new Date(2024, 0, 1)
const endDate = new Date(2024, 1, 28)
</script>

Custom Header

<template>
  <el-calendar v-model="date">
    <template #header="{ date }">
      <span>{{ date }}</span>
    </template>
  </el-calendar>
</template>

API Reference

Attributes

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 —

Slots

Name Description Type
date-cell Custom date cell { data: { type, isSelected, day, date } }
header Custom header { date: string }

Exposes

Name Description Type
selectedDay Currently selected date ComputedRef<Dayjs>
pickDay Select a specific date (day) => void
selectDate Select date (type) => void

Best Practices

  1. Use date-cell slot for custom content
  2. Use range for limited date views
  3. Customize header for branding
Полный текст лицензии (MIT)
MIT License

Copyright (c) 2026 jiaiyan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.