원클릭으로
el-date-picker
DatePicker component for date input. Invoke when user needs to select dates, date ranges, months, years, or datetime values.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
DatePicker component for date input. Invoke when user needs to select dates, date ranges, months, years, or datetime 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-date-picker |
| description | DatePicker component for date input. Invoke when user needs to select dates, date ranges, months, years, or datetime values. |
| metadata | {"author":"jiaiyan","version":"1.0.0"} |
DatePicker allows users to select dates, date ranges, months, years, or datetime values.
<template>
<el-date-picker
v-model="value"
type="date"
placeholder="Pick a day"
/>
</template>
<script setup>
import { ref } from 'vue'
const value = ref('')
</script>
<template>
<el-date-picker
v-model="value"
type="daterange"
range-separator="To"
start-placeholder="Start date"
end-placeholder="End date"
/>
</template>
<script setup>
import { ref } from 'vue'
const value = ref([])
</script>
<template>
<el-date-picker
v-model="value"
type="date"
placeholder="Pick a day"
:shortcuts="shortcuts"
/>
</template>
<script setup>
import { ref } from 'vue'
const value = ref('')
const shortcuts = [
{
text: 'Today',
value: new Date()
},
{
text: 'Yesterday',
value: () => {
const date = new Date()
date.setTime(date.getTime() - 3600 * 1000 * 24)
return date
}
},
{
text: 'A week ago',
value: () => {
const date = new Date()
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
return date
}
}
]
</script>
<template>
<el-date-picker
v-model="value"
type="date"
placeholder="Pick a day"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
/>
</template>
<template>
<el-date-picker
v-model="value"
type="date"
placeholder="Pick a day"
:disabled-date="disabledDate"
/>
</template>
<script setup>
import { ref } from 'vue'
const value = ref('')
const disabledDate = (time) => {
return time.getTime() > Date.now()
}
</script>
| Name | Description | Type | Default |
|---|---|---|---|
| model-value / v-model | Binding value | string | Date | number | array | — |
| type | Picker type | 'year' | 'month' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'date' |
| format | Display format | string | 'YYYY-MM-DD' |
| value-format | Value format | string | — |
| readonly | Read only | boolean | false |
| disabled | Disabled | boolean | false |
| editable | Input editable | boolean | true |
| clearable | Show clear button | boolean | true |
| placeholder | Placeholder | string | — |
| start-placeholder | Start placeholder | string | — |
| end-placeholder | End placeholder | string | — |
| range-separator | Range separator | string | '-' |
| default-value | Default calendar date | Date | [Date, Date] | — |
| disabled-date | Disabled date function | (date: Date) => boolean | — |
| shortcuts | Shortcut options | Array<{ text: string, value: Date | Function }> | — |
| unlink-panels | Unlink range panels | boolean | false |
| Name | Description | Type |
|---|---|---|
| change | Value changes | (value) => void |
| blur | Input blurs | (e: FocusEvent) => void |
| focus | Input focuses | (e: FocusEvent) => void |
| calendar-change | Calendar selection changes | (val) => void |
| visible-change | Dropdown visibility changes | (visibility: boolean) => void |
| Name | Description |
|---|---|
| default | Custom cell content |
| range-separator | Custom range separator |
| Name | Description | Type |
|---|---|---|
| focus | Focus input | () => void |
| blur | Blur input | () => void |
| handleOpen | Open picker | () => void |
| handleClose | Close picker | () => void |
value-format for string valuesshortcuts for quick selectionsdisabled-date to restrict selections