mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
17 lines
327 B
Vue
17 lines
327 B
Vue
|
<template>
|
||
|
<el-calendar>
|
||
|
<template #dateCell="{ data }">
|
||
|
<p :class="data.isSelected ? 'is-selected' : ''">
|
||
|
{{ data.day.split('-').slice(1).join('-') }}
|
||
|
{{ data.isSelected ? '✔️' : '' }}
|
||
|
</p>
|
||
|
</template>
|
||
|
</el-calendar>
|
||
|
</template>
|
||
|
|
||
|
<style>
|
||
|
.is-selected {
|
||
|
color: #1989fa;
|
||
|
}
|
||
|
</style>
|