File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
examples/sites/demos/apis
packages/vue/src/calendar-view/src Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,20 @@ export default {
149
149
pcDemo : 'basic-usage' ,
150
150
mfDemo : 'basic-usage'
151
151
} ,
152
+ {
153
+ name : 'show-tip-time' ,
154
+ type : 'Boolean' ,
155
+ defaultValue : 'true' ,
156
+ desc : {
157
+ 'zh-CN' : '显示日程tips时间' ,
158
+ 'en-US' : 'Show schedule tips time'
159
+ } ,
160
+ meta : {
161
+ stable : '3.23.0'
162
+ } ,
163
+ mode : [ 'pc' , 'mobile-first' ] ,
164
+ mfDemo : ''
165
+ } ,
152
166
{
153
167
name : 'v-model' ,
154
168
type : 'String' ,
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ export const calendarViewProps = {
80
80
showBackToday : {
81
81
type : Boolean ,
82
82
default : true
83
+ } ,
84
+ showTipTime : {
85
+ type : Boolean ,
86
+ default : true
83
87
}
84
88
}
85
89
Original file line number Diff line number Diff line change 4
4
<template #content >
5
5
<div class =" p-2 max-h-[80vh] overflow-auto" >
6
6
<div class =" px-1.5 mb-1.5 border-l-2 border-color-brand" >{{ state.eventTipContent.title }}</div >
7
- <div class =" mb-1.5 px-2 text-color-text-placeholder" >
7
+ <div v-if = " showTipTime " class =" mb-1.5 px-2 text-color-text-placeholder" >
8
8
{{ state.eventTipContent.startDay }} {{ state.eventTipContent.startTime }} ~
9
9
{{ state.eventTipContent.endDay }} {{ state.eventTipContent.endTime }}
10
10
</div >
@@ -370,7 +370,8 @@ export default defineComponent({
370
370
' height' ,
371
371
' mark-color' ,
372
372
' multi-select' ,
373
- ' showBackToday'
373
+ ' showBackToday' ,
374
+ ' showTipTime'
374
375
],
375
376
setup(props , context ) {
376
377
return setup ({
Original file line number Diff line number Diff line change 216
216
<template #content >
217
217
<div class =" tooltip-main" >
218
218
<div class =" title" >{{ state.eventTipContent.title }}</div >
219
- <div class =" date" >
219
+ <div v-if = " showTipTime " class =" date" >
220
220
{{ state.eventTipContent.startDay }} {{ state.eventTipContent.startTime }} ~
221
221
{{ state.eventTipContent.endDay }} {{ state.eventTipContent.endTime }}
222
222
</div >
@@ -284,7 +284,8 @@ export default defineComponent({
284
284
' events' ,
285
285
' height' ,
286
286
' markColor' ,
287
- ' multiSelect'
287
+ ' multiSelect' ,
288
+ ' showTipTime'
288
289
],
289
290
setup (props , context ) {
290
291
return setup ({
You can’t perform that action at this time.
0 commit comments