@opentinyvue/vue-calendar-view 3.22.1 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +5 -1
- package/lib/mobile-first.js +35 -29
- package/lib/pc.js +44 -34
- package/package.json +12 -12
- package/src/index.d.ts +4 -0
- package/src/mobile-first.vue.d.ts +3 -0
- package/src/pc.vue.d.ts +3 -0
package/lib/index.js
CHANGED
|
@@ -97,6 +97,10 @@ var calendarViewProps = _extends({}, $props, {
|
|
|
97
97
|
showBackToday: {
|
|
98
98
|
type: Boolean,
|
|
99
99
|
default: true
|
|
100
|
+
},
|
|
101
|
+
showTipTime: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: true
|
|
100
104
|
}
|
|
101
105
|
});
|
|
102
106
|
var CalendarView = defineComponent({
|
|
@@ -110,7 +114,7 @@ var CalendarView = defineComponent({
|
|
|
110
114
|
});
|
|
111
115
|
}
|
|
112
116
|
});
|
|
113
|
-
var version = "3.
|
|
117
|
+
var version = "3.23.0";
|
|
114
118
|
CalendarView.model = {
|
|
115
119
|
prop: "modelValue",
|
|
116
120
|
event: "update:modelValue"
|
package/lib/mobile-first.js
CHANGED
|
@@ -6,7 +6,7 @@ import SliderButton from '@opentinyvue/vue-slider-button';
|
|
|
6
6
|
import SliderButtonGroup from '@opentinyvue/vue-slider-button-group';
|
|
7
7
|
import Tooltip from '@opentinyvue/vue-tooltip';
|
|
8
8
|
import { IconCheckedSur, IconPlus, IconChevronLeft, IconChevronRight, IconDayView, IconAgendaView, IconMonthView } from '@opentinyvue/vue-icon';
|
|
9
|
-
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode,
|
|
9
|
+
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, createBlock, createTextVNode, normalizeClass, renderSlot, Fragment, renderList, resolveDynamicComponent, normalizeStyle } from 'vue';
|
|
10
10
|
|
|
11
11
|
function _createForOfIteratorHelperLoose(r, e) {
|
|
12
12
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -79,7 +79,7 @@ var _sfc_main = defineComponent({
|
|
|
79
79
|
TinyDatePicker: DatePicker,
|
|
80
80
|
TinyTooltip: Tooltip
|
|
81
81
|
},
|
|
82
|
-
props: [].concat(props, ["_constants", "modelValue", "showMark", "showNewSchedule", "setDayBgColor", "disabled", "mode", "modes", "year", "month", "dayTimes", "events", "height", "mark-color", "multi-select", "showBackToday"]),
|
|
82
|
+
props: [].concat(props, ["_constants", "modelValue", "showMark", "showNewSchedule", "setDayBgColor", "disabled", "mode", "modes", "year", "month", "dayTimes", "events", "height", "mark-color", "multi-select", "showBackToday", "showTipTime"]),
|
|
83
83
|
setup: function setup$1(props2, context) {
|
|
84
84
|
return setup({
|
|
85
85
|
props: props2,
|
|
@@ -108,6 +108,7 @@ var _hoisted_3 = {
|
|
|
108
108
|
class: "px-1.5 mb-1.5 border-l-2 border-color-brand"
|
|
109
109
|
};
|
|
110
110
|
var _hoisted_4 = {
|
|
111
|
+
key: 0,
|
|
111
112
|
class: "mb-1.5 px-2 text-color-text-placeholder"
|
|
112
113
|
};
|
|
113
114
|
var _hoisted_5 = {
|
|
@@ -170,35 +171,37 @@ var _hoisted_20 = {
|
|
|
170
171
|
"data-tag": "tiny-calendar-view-weekdates",
|
|
171
172
|
class: "flex justify-around flex-1 h-full"
|
|
172
173
|
};
|
|
173
|
-
var _hoisted_21 =
|
|
174
|
+
var _hoisted_21 = ["onClick"];
|
|
175
|
+
var _hoisted_22 = {
|
|
174
176
|
class: "w-12",
|
|
175
177
|
"data-tag": "tiny-calendar-view-timelinelist"
|
|
176
178
|
};
|
|
177
|
-
var
|
|
179
|
+
var _hoisted_23 = {
|
|
178
180
|
class: "text-sm text-color-text-primary"
|
|
179
181
|
};
|
|
180
|
-
var
|
|
182
|
+
var _hoisted_24 = {
|
|
181
183
|
class: "flex-1",
|
|
182
184
|
"data-tag": "tiny-calendar-view-timelinelist"
|
|
183
185
|
};
|
|
184
|
-
var
|
|
186
|
+
var _hoisted_25 = {
|
|
185
187
|
class: "w-full flex justify-around"
|
|
186
188
|
};
|
|
187
|
-
var
|
|
189
|
+
var _hoisted_26 = {
|
|
188
190
|
class: "flex w-full",
|
|
189
191
|
"data-tag": "tiny-calendar-view-schedulelist"
|
|
190
192
|
};
|
|
191
|
-
var
|
|
193
|
+
var _hoisted_27 = {
|
|
192
194
|
class: "px-1.5 mb-1.5 border-l-2 border-color-brand break-all"
|
|
193
195
|
};
|
|
194
|
-
var
|
|
196
|
+
var _hoisted_28 = {
|
|
197
|
+
key: 0,
|
|
195
198
|
class: "mb-1.5 px-2 text-color-text-placeholder"
|
|
196
199
|
};
|
|
197
|
-
var
|
|
200
|
+
var _hoisted_29 = {
|
|
198
201
|
class: "px-2 text-xs text-color-icon-primary line-clamp-2"
|
|
199
202
|
};
|
|
200
|
-
var
|
|
201
|
-
var
|
|
203
|
+
var _hoisted_30 = ["onClick"];
|
|
204
|
+
var _hoisted_31 = {
|
|
202
205
|
class: "ml-1 text-color-text-placeholder"
|
|
203
206
|
};
|
|
204
207
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -227,13 +230,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
230
|
toDisplayString(_ctx.state.eventTipContent.title),
|
|
228
231
|
1
|
|
229
232
|
/* TEXT */
|
|
230
|
-
),
|
|
233
|
+
), _ctx.showTipTime ? (openBlock(), createElementBlock(
|
|
231
234
|
"div",
|
|
232
235
|
_hoisted_4,
|
|
233
236
|
toDisplayString(_ctx.state.eventTipContent.startDay) + " " + toDisplayString(_ctx.state.eventTipContent.startTime) + " ~ " + toDisplayString(_ctx.state.eventTipContent.endDay) + " " + toDisplayString(_ctx.state.eventTipContent.endTime),
|
|
234
237
|
1
|
|
235
238
|
/* TEXT */
|
|
236
|
-
), createElementVNode(
|
|
239
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
237
240
|
"p",
|
|
238
241
|
_hoisted_5,
|
|
239
242
|
toDisplayString(_ctx.state.eventTipContent.content || ""),
|
|
@@ -430,7 +433,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
433
|
return openBlock(), createElementBlock("li", {
|
|
431
434
|
"data-tag": "tiny-calendar-view-weekitem",
|
|
432
435
|
key: date.value,
|
|
433
|
-
class: "leading-10"
|
|
436
|
+
class: "leading-10 cursor-pointer",
|
|
437
|
+
onClick: function onClick($event) {
|
|
438
|
+
return _ctx.selectDay(date);
|
|
439
|
+
}
|
|
434
440
|
}, [renderSlot(_ctx.$slots, "header", {
|
|
435
441
|
slotScope: {
|
|
436
442
|
date: date.value,
|
|
@@ -440,7 +446,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
440
446
|
return [createElementVNode(
|
|
441
447
|
"span",
|
|
442
448
|
{
|
|
443
|
-
class: normalizeClass(["relative mr-2.5 text-base", [_ctx.dateIsToday(date.value) ? "text-color-brand" : "text-color-text-primary"]])
|
|
449
|
+
class: normalizeClass(["relative mr-2.5 text-base", [_ctx.dateIsToday(date.value) || _ctx.computedSelectDay(date) ? "text-color-brand" : "text-color-text-primary"]])
|
|
444
450
|
},
|
|
445
451
|
[createElementVNode(
|
|
446
452
|
"span",
|
|
@@ -463,13 +469,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
463
469
|
), createElementVNode(
|
|
464
470
|
"span",
|
|
465
471
|
{
|
|
466
|
-
class: normalizeClass(["text-sm", [_ctx.dateIsToday(date.value) ? "text-color-brand" : "text-color-text-placeholder"]])
|
|
472
|
+
class: normalizeClass(["text-sm", [_ctx.dateIsToday(date.value) || _ctx.computedSelectDay(date) ? "text-color-brand" : "text-color-text-placeholder"]])
|
|
467
473
|
},
|
|
468
474
|
toDisplayString(_ctx.dateIsToday(date.value) ? _ctx.t("ui.datepicker.today") : _ctx.t("ui.calendarView.weekDays." + index)),
|
|
469
475
|
3
|
|
470
476
|
/* TEXT, CLASS */
|
|
471
477
|
)];
|
|
472
|
-
})]);
|
|
478
|
+
})], 8, _hoisted_21);
|
|
473
479
|
}),
|
|
474
480
|
128
|
|
475
481
|
/* KEYED_FRAGMENT */
|
|
@@ -489,7 +495,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
489
495
|
"height": _ctx.height
|
|
490
496
|
})
|
|
491
497
|
},
|
|
492
|
-
[createElementVNode("div",
|
|
498
|
+
[createElementVNode("div", _hoisted_22, [createElementVNode("ul", null, [(openBlock(true), createElementBlock(
|
|
493
499
|
Fragment,
|
|
494
500
|
null,
|
|
495
501
|
renderList(_ctx.state.dayTimes, function(item, i) {
|
|
@@ -502,7 +508,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
502
508
|
},
|
|
503
509
|
[createElementVNode(
|
|
504
510
|
"span",
|
|
505
|
-
|
|
511
|
+
_hoisted_23,
|
|
506
512
|
toDisplayString(item.text.includes("30") ? "" : item.text),
|
|
507
513
|
1
|
|
508
514
|
/* TEXT */
|
|
@@ -513,7 +519,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
513
519
|
}),
|
|
514
520
|
128
|
|
515
521
|
/* KEYED_FRAGMENT */
|
|
516
|
-
))])]), createElementVNode("div",
|
|
522
|
+
))])]), createElementVNode("div", _hoisted_24, [createElementVNode("ul", _hoisted_25, [(openBlock(true), createElementBlock(
|
|
517
523
|
Fragment,
|
|
518
524
|
null,
|
|
519
525
|
renderList(_ctx.state.weekDates, function(date, index) {
|
|
@@ -599,7 +605,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
599
605
|
"height": _ctx.height
|
|
600
606
|
})
|
|
601
607
|
},
|
|
602
|
-
[createElementVNode("ul",
|
|
608
|
+
[createElementVNode("ul", _hoisted_26, [(openBlock(true), createElementBlock(
|
|
603
609
|
Fragment,
|
|
604
610
|
null,
|
|
605
611
|
renderList(_ctx.state.weekDates, function(date, index) {
|
|
@@ -626,19 +632,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
626
632
|
class: "py-1.5 h-auto border border-color-border-separator rounded mb-2 shadow-sm"
|
|
627
633
|
}, [createElementVNode(
|
|
628
634
|
"div",
|
|
629
|
-
|
|
635
|
+
_hoisted_27,
|
|
630
636
|
toDisplayString(event.title),
|
|
631
637
|
1
|
|
632
638
|
/* TEXT */
|
|
633
|
-
),
|
|
639
|
+
), _ctx.showTipTime ? (openBlock(), createElementBlock(
|
|
634
640
|
"div",
|
|
635
|
-
|
|
641
|
+
_hoisted_28,
|
|
636
642
|
toDisplayString(_ctx.getEventShowTime("start", event, date.value)) + " - " + toDisplayString(_ctx.getEventShowTime("end", event, date.value)),
|
|
637
643
|
1
|
|
638
644
|
/* TEXT */
|
|
639
|
-
), createElementVNode(
|
|
645
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
640
646
|
"p",
|
|
641
|
-
|
|
647
|
+
_hoisted_29,
|
|
642
648
|
toDisplayString(event.content || ""),
|
|
643
649
|
1
|
|
644
650
|
/* TEXT */
|
|
@@ -658,11 +664,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
658
664
|
class: "align-sub fill-color-text-placeholder"
|
|
659
665
|
}), createElementVNode(
|
|
660
666
|
"span",
|
|
661
|
-
|
|
667
|
+
_hoisted_31,
|
|
662
668
|
toDisplayString(_ctx.t("ui.calendarView.new")),
|
|
663
669
|
1
|
|
664
670
|
/* TEXT */
|
|
665
|
-
)], 8,
|
|
671
|
+
)], 8, _hoisted_30)) : createCommentVNode("v-if", true)]);
|
|
666
672
|
}),
|
|
667
673
|
128
|
|
668
674
|
/* KEYED_FRAGMENT */
|
package/lib/pc.js
CHANGED
|
@@ -54,7 +54,7 @@ var _sfc_main = defineComponent({
|
|
|
54
54
|
TinyDatePicker: DatePicker,
|
|
55
55
|
TinyTooltip: Tooltip
|
|
56
56
|
},
|
|
57
|
-
props: [].concat(props, ["modelValue", "showMark", "showNewSchedule", "setDayBgColor", "disabled", "mode", "modes", "year", "month", "dayTimes", "events", "height", "markColor", "multiSelect"]),
|
|
57
|
+
props: [].concat(props, ["modelValue", "showMark", "showNewSchedule", "setDayBgColor", "disabled", "mode", "modes", "year", "month", "dayTimes", "events", "height", "markColor", "multiSelect", "showTipTime"]),
|
|
58
58
|
setup: function setup$1(props2, context) {
|
|
59
59
|
return setup({
|
|
60
60
|
props: props2,
|
|
@@ -115,43 +115,46 @@ var _hoisted_13 = {
|
|
|
115
115
|
var _hoisted_14 = {
|
|
116
116
|
class: "header-main"
|
|
117
117
|
};
|
|
118
|
-
var _hoisted_15 =
|
|
118
|
+
var _hoisted_15 = ["onClick"];
|
|
119
|
+
var _hoisted_16 = {
|
|
119
120
|
key: 0,
|
|
120
121
|
class: "tiny-calendar-view-week__timeline"
|
|
121
122
|
};
|
|
122
|
-
var
|
|
123
|
+
var _hoisted_17 = {
|
|
123
124
|
class: "day-times"
|
|
124
125
|
};
|
|
125
|
-
var
|
|
126
|
+
var _hoisted_18 = {
|
|
126
127
|
class: "day-events"
|
|
127
128
|
};
|
|
128
|
-
var
|
|
129
|
+
var _hoisted_19 = {
|
|
129
130
|
class: "events-list"
|
|
130
131
|
};
|
|
131
|
-
var
|
|
132
|
+
var _hoisted_20 = {
|
|
132
133
|
key: 1,
|
|
133
134
|
class: "tiny-calendar-view-week__schedule"
|
|
134
135
|
};
|
|
135
|
-
var
|
|
136
|
+
var _hoisted_21 = {
|
|
136
137
|
class: "title"
|
|
137
138
|
};
|
|
138
|
-
var
|
|
139
|
+
var _hoisted_22 = {
|
|
140
|
+
key: 0,
|
|
139
141
|
class: "date"
|
|
140
142
|
};
|
|
141
|
-
var
|
|
143
|
+
var _hoisted_23 = {
|
|
142
144
|
class: "content"
|
|
143
145
|
};
|
|
144
|
-
var
|
|
145
|
-
var
|
|
146
|
+
var _hoisted_24 = ["onClick"];
|
|
147
|
+
var _hoisted_25 = {
|
|
146
148
|
class: "tooltip-main"
|
|
147
149
|
};
|
|
148
|
-
var
|
|
150
|
+
var _hoisted_26 = {
|
|
149
151
|
class: "title"
|
|
150
152
|
};
|
|
151
|
-
var
|
|
153
|
+
var _hoisted_27 = {
|
|
154
|
+
key: 0,
|
|
152
155
|
class: "date"
|
|
153
156
|
};
|
|
154
|
-
var
|
|
157
|
+
var _hoisted_28 = {
|
|
155
158
|
class: "content"
|
|
156
159
|
};
|
|
157
160
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -341,7 +344,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
344
|
null,
|
|
342
345
|
renderList(_ctx.state.weekDates, function(date, index) {
|
|
343
346
|
return openBlock(), createElementBlock("li", {
|
|
344
|
-
key: date.value
|
|
347
|
+
key: date.value,
|
|
348
|
+
onClick: function onClick($event) {
|
|
349
|
+
return _ctx.selectDay(date);
|
|
350
|
+
}
|
|
345
351
|
}, [renderSlot(_ctx.$slots, "header", {
|
|
346
352
|
slotScope: {
|
|
347
353
|
date: date.value,
|
|
@@ -351,7 +357,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
351
357
|
return [createElementVNode(
|
|
352
358
|
"span",
|
|
353
359
|
{
|
|
354
|
-
class: normalizeClass(["date", _ctx.dateIsToday(date.value) && "is-today"
|
|
360
|
+
class: normalizeClass(["date", [_ctx.dateIsToday(date.value) && "is-today", {
|
|
361
|
+
current: _ctx.computedSelectDay(date)
|
|
362
|
+
}]])
|
|
355
363
|
},
|
|
356
364
|
[createElementVNode(
|
|
357
365
|
"span",
|
|
@@ -374,13 +382,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
374
382
|
), createElementVNode(
|
|
375
383
|
"span",
|
|
376
384
|
{
|
|
377
|
-
class: normalizeClass(["week-day", _ctx.dateIsToday(date.value) && "is-today"
|
|
385
|
+
class: normalizeClass(["week-day", [_ctx.dateIsToday(date.value) && "is-today", {
|
|
386
|
+
current: _ctx.computedSelectDay(date)
|
|
387
|
+
}]])
|
|
378
388
|
},
|
|
379
389
|
toDisplayString(_ctx.dateIsToday(date.value) ? _ctx.t("ui.datepicker.today") : _ctx.t("ui.calendarView.weekDays." + index)),
|
|
380
390
|
3
|
|
381
391
|
/* TEXT, CLASS */
|
|
382
392
|
)];
|
|
383
|
-
})]);
|
|
393
|
+
})], 8, _hoisted_15);
|
|
384
394
|
}),
|
|
385
395
|
128
|
|
386
396
|
/* KEYED_FRAGMENT */
|
|
@@ -389,7 +399,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
389
399
|
onClick: _cache[5] || (_cache[5] = function() {
|
|
390
400
|
return _ctx.getNextWeek && _ctx.getNextWeek.apply(_ctx, arguments);
|
|
391
401
|
})
|
|
392
|
-
}, [createVNode(_component_icon_chevron_right)])]), _ctx.state.mode === "timeline" ? (openBlock(), createElementBlock("div",
|
|
402
|
+
}, [createVNode(_component_icon_chevron_right)])]), _ctx.state.mode === "timeline" ? (openBlock(), createElementBlock("div", _hoisted_16, [createElementVNode("div", _hoisted_17, [createElementVNode("ul", null, [(openBlock(true), createElementBlock(
|
|
393
403
|
Fragment,
|
|
394
404
|
null,
|
|
395
405
|
renderList(_ctx.state.dayTimes, function(item, i) {
|
|
@@ -412,7 +422,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
412
422
|
}),
|
|
413
423
|
128
|
|
414
424
|
/* KEYED_FRAGMENT */
|
|
415
|
-
))])]), createElementVNode("div",
|
|
425
|
+
))])]), createElementVNode("div", _hoisted_18, [createElementVNode("ul", null, [(openBlock(true), createElementBlock(
|
|
416
426
|
Fragment,
|
|
417
427
|
null,
|
|
418
428
|
renderList(_ctx.state.weekDates, function(date, index) {
|
|
@@ -431,7 +441,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
431
441
|
events: _ctx.state.curWeekEvents[date.value]
|
|
432
442
|
}
|
|
433
443
|
}, function() {
|
|
434
|
-
return [createElementVNode("ul",
|
|
444
|
+
return [createElementVNode("ul", _hoisted_19, [(openBlock(true), createElementBlock(
|
|
435
445
|
Fragment,
|
|
436
446
|
null,
|
|
437
447
|
renderList(_ctx.state.dayTimes, function(item, i) {
|
|
@@ -484,7 +494,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
484
494
|
}),
|
|
485
495
|
128
|
|
486
496
|
/* KEYED_FRAGMENT */
|
|
487
|
-
))])])])) : createCommentVNode("v-if", true), _ctx.state.mode === "schedule" ? (openBlock(), createElementBlock("div",
|
|
497
|
+
))])])])) : createCommentVNode("v-if", true), _ctx.state.mode === "schedule" ? (openBlock(), createElementBlock("div", _hoisted_20, [createElementVNode("ul", null, [(openBlock(true), createElementBlock(
|
|
488
498
|
Fragment,
|
|
489
499
|
null,
|
|
490
500
|
renderList(_ctx.state.weekDates, function(date, index) {
|
|
@@ -508,19 +518,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
508
518
|
class: "day-events"
|
|
509
519
|
}, [createElementVNode(
|
|
510
520
|
"div",
|
|
511
|
-
|
|
521
|
+
_hoisted_21,
|
|
512
522
|
toDisplayString(event.title),
|
|
513
523
|
1
|
|
514
524
|
/* TEXT */
|
|
515
|
-
),
|
|
525
|
+
), _ctx.showTipTime ? (openBlock(), createElementBlock(
|
|
516
526
|
"div",
|
|
517
|
-
|
|
527
|
+
_hoisted_22,
|
|
518
528
|
toDisplayString(_ctx.getEventShowTime("start", event, date.value)) + " - " + toDisplayString(_ctx.getEventShowTime("end", event, date.value)),
|
|
519
529
|
1
|
|
520
530
|
/* TEXT */
|
|
521
|
-
), createElementVNode(
|
|
531
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
522
532
|
"p",
|
|
523
|
-
|
|
533
|
+
_hoisted_23,
|
|
524
534
|
toDisplayString(event.content || ""),
|
|
525
535
|
1
|
|
526
536
|
/* TEXT */
|
|
@@ -541,7 +551,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
541
551
|
toDisplayString(_ctx.t("ui.calendarView.new")),
|
|
542
552
|
1
|
|
543
553
|
/* TEXT */
|
|
544
|
-
)], 8,
|
|
554
|
+
)], 8, _hoisted_24)) : createCommentVNode("v-if", true)]);
|
|
545
555
|
}),
|
|
546
556
|
128
|
|
547
557
|
/* KEYED_FRAGMENT */
|
|
@@ -555,21 +565,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
555
565
|
},
|
|
556
566
|
{
|
|
557
567
|
content: withCtx(function() {
|
|
558
|
-
return [createElementVNode("div",
|
|
568
|
+
return [createElementVNode("div", _hoisted_25, [createElementVNode(
|
|
559
569
|
"div",
|
|
560
|
-
|
|
570
|
+
_hoisted_26,
|
|
561
571
|
toDisplayString(_ctx.state.eventTipContent.title),
|
|
562
572
|
1
|
|
563
573
|
/* TEXT */
|
|
564
|
-
),
|
|
574
|
+
), _ctx.showTipTime ? (openBlock(), createElementBlock(
|
|
565
575
|
"div",
|
|
566
|
-
|
|
576
|
+
_hoisted_27,
|
|
567
577
|
toDisplayString(_ctx.state.eventTipContent.startDay) + " " + toDisplayString(_ctx.state.eventTipContent.startTime) + " ~ " + toDisplayString(_ctx.state.eventTipContent.endDay) + " " + toDisplayString(_ctx.state.eventTipContent.endTime),
|
|
568
578
|
1
|
|
569
579
|
/* TEXT */
|
|
570
|
-
), createElementVNode(
|
|
580
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
571
581
|
"p",
|
|
572
|
-
|
|
582
|
+
_hoisted_28,
|
|
573
583
|
toDisplayString(_ctx.state.eventTipContent.content || ""),
|
|
574
584
|
1
|
|
575
585
|
/* TEXT */
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-calendar-view",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~3.
|
|
11
|
-
"@opentinyvue/vue-icon": "~3.
|
|
12
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
13
|
-
"@opentinyvue/vue-tooltip": "~3.
|
|
14
|
-
"@opentinyvue/vue-button": "~3.
|
|
15
|
-
"@opentinyvue/vue-date-picker": "~3.
|
|
16
|
-
"@opentinyvue/vue-radio-button": "~3.
|
|
17
|
-
"@opentinyvue/vue-radio-group": "~3.
|
|
18
|
-
"@opentinyvue/vue-slider-button": "~3.
|
|
19
|
-
"@opentinyvue/vue-slider-button-group": "~3.
|
|
20
|
-
"@opentinyvue/vue-theme": "~3.
|
|
10
|
+
"@opentinyvue/vue-common": "~3.23.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.23.0",
|
|
12
|
+
"@opentinyvue/vue-renderless": "~3.23.0",
|
|
13
|
+
"@opentinyvue/vue-tooltip": "~3.23.0",
|
|
14
|
+
"@opentinyvue/vue-button": "~3.23.0",
|
|
15
|
+
"@opentinyvue/vue-date-picker": "~3.23.0",
|
|
16
|
+
"@opentinyvue/vue-radio-button": "~3.23.0",
|
|
17
|
+
"@opentinyvue/vue-radio-group": "~3.23.0",
|
|
18
|
+
"@opentinyvue/vue-slider-button": "~3.23.0",
|
|
19
|
+
"@opentinyvue/vue-slider-button-group": "~3.23.0",
|
|
20
|
+
"@opentinyvue/vue-theme": "~3.23.0"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export declare const calendarViewProps: {
|
|
|
65
65
|
type: BooleanConstructor;
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
|
+
showTipTime: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
68
72
|
tiny_mode: StringConstructor;
|
|
69
73
|
tiny_mode_root: BooleanConstructor;
|
|
70
74
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
@@ -21,6 +21,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
21
21
|
"mark-color"?: any;
|
|
22
22
|
"multi-select"?: any;
|
|
23
23
|
showBackToday?: any;
|
|
24
|
+
showTipTime?: any;
|
|
24
25
|
}>, {
|
|
25
26
|
t: (this: any, path: any, options?: any) => any;
|
|
26
27
|
vm: any;
|
|
@@ -53,6 +54,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
53
54
|
"mark-color"?: any;
|
|
54
55
|
"multi-select"?: any;
|
|
55
56
|
showBackToday?: any;
|
|
57
|
+
showTipTime?: any;
|
|
56
58
|
}>>> & {
|
|
57
59
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
60
|
"onWeek-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -87,5 +89,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
87
89
|
readonly "mark-color"?: any;
|
|
88
90
|
readonly "multi-select"?: any;
|
|
89
91
|
readonly showBackToday?: any;
|
|
92
|
+
readonly showTipTime?: any;
|
|
90
93
|
}, {}>;
|
|
91
94
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
18
18
|
setDayBgColor?: any;
|
|
19
19
|
modes?: any;
|
|
20
20
|
dayTimes?: any;
|
|
21
|
+
showTipTime?: any;
|
|
21
22
|
multiSelect?: any;
|
|
22
23
|
markColor?: any;
|
|
23
24
|
}>, {
|
|
@@ -49,6 +50,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
49
50
|
setDayBgColor?: any;
|
|
50
51
|
modes?: any;
|
|
51
52
|
dayTimes?: any;
|
|
53
|
+
showTipTime?: any;
|
|
52
54
|
multiSelect?: any;
|
|
53
55
|
markColor?: any;
|
|
54
56
|
}>>> & {
|
|
@@ -82,6 +84,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
82
84
|
readonly setDayBgColor?: any;
|
|
83
85
|
readonly modes?: any;
|
|
84
86
|
readonly dayTimes?: any;
|
|
87
|
+
readonly showTipTime?: any;
|
|
85
88
|
readonly multiSelect?: any;
|
|
86
89
|
readonly markColor?: any;
|
|
87
90
|
}, {}>;
|