@opentinyvue/vue-calendar-view 3.22.0 → 3.22.1
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 +1 -1
- package/lib/mobile-first.js +43 -42
- package/lib/pc.js +36 -35
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -102,7 +102,7 @@ var _hoisted_1 = {
|
|
|
102
102
|
class: "w-full h-auto"
|
|
103
103
|
};
|
|
104
104
|
var _hoisted_2 = {
|
|
105
|
-
class: "p-2"
|
|
105
|
+
class: "p-2 max-h-[80vh] overflow-auto"
|
|
106
106
|
};
|
|
107
107
|
var _hoisted_3 = {
|
|
108
108
|
class: "px-1.5 mb-1.5 border-l-2 border-color-brand"
|
|
@@ -211,41 +211,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211
211
|
var _component_icon_chevron_right = resolveComponent("icon-chevron-right");
|
|
212
212
|
var _component_icon_checked_sur = resolveComponent("icon-checked-sur");
|
|
213
213
|
var _component_icon_plus = resolveComponent("icon-plus");
|
|
214
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
214
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(
|
|
215
|
+
_component_tiny_tooltip,
|
|
216
|
+
{
|
|
217
|
+
ref: "tooltip",
|
|
218
|
+
"popper-class": "absolute max-w-[theme(spacing.80)]",
|
|
219
|
+
effect: "light",
|
|
220
|
+
placement: "right"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
content: withCtx(function() {
|
|
224
|
+
return [createElementVNode("div", _hoisted_2, [createElementVNode(
|
|
225
|
+
"div",
|
|
226
|
+
_hoisted_3,
|
|
227
|
+
toDisplayString(_ctx.state.eventTipContent.title),
|
|
228
|
+
1
|
|
229
|
+
/* TEXT */
|
|
230
|
+
), createElementVNode(
|
|
231
|
+
"div",
|
|
232
|
+
_hoisted_4,
|
|
233
|
+
toDisplayString(_ctx.state.eventTipContent.startDay) + " " + toDisplayString(_ctx.state.eventTipContent.startTime) + " ~ " + toDisplayString(_ctx.state.eventTipContent.endDay) + " " + toDisplayString(_ctx.state.eventTipContent.endTime),
|
|
234
|
+
1
|
|
235
|
+
/* TEXT */
|
|
236
|
+
), createElementVNode(
|
|
237
|
+
"p",
|
|
238
|
+
_hoisted_5,
|
|
239
|
+
toDisplayString(_ctx.state.eventTipContent.content || ""),
|
|
240
|
+
1
|
|
241
|
+
/* TEXT */
|
|
242
|
+
)])];
|
|
243
|
+
}),
|
|
244
|
+
_: 1
|
|
245
|
+
/* STABLE */
|
|
246
|
+
},
|
|
247
|
+
512
|
|
248
|
+
/* NEED_PATCH */
|
|
249
|
+
), createElementVNode("div", _hoisted_6, [_ctx.showBackToday ? (openBlock(), createBlock(_component_tiny_button, {
|
|
249
250
|
key: 0,
|
|
250
251
|
onClick: _ctx.toToday
|
|
251
252
|
}, {
|
|
@@ -260,7 +261,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
260
261
|
/* STABLE */
|
|
261
262
|
}, 8, ["onClick"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_date_picker, {
|
|
262
263
|
modelValue: _ctx.state.currentDate,
|
|
263
|
-
"onUpdate:modelValue": _cache[
|
|
264
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
264
265
|
return _ctx.state.currentDate = $event;
|
|
265
266
|
}),
|
|
266
267
|
class: normalizeClass([_ctx.showBackToday ? "ml-5" : "", "shrink-0"]),
|
|
@@ -272,7 +273,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
272
273
|
}, null, 8, ["modelValue", "class", "onChange", "format"]), createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "tool")]), _ctx.modes.length ? (openBlock(), createBlock(_component_tiny_slider_button_group, {
|
|
273
274
|
key: 1,
|
|
274
275
|
modelValue: _ctx.state.mode,
|
|
275
|
-
"onUpdate:modelValue": _cache[
|
|
276
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function($event) {
|
|
276
277
|
return _ctx.state.mode = $event;
|
|
277
278
|
}),
|
|
278
279
|
type: "icon",
|
|
@@ -303,7 +304,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
303
304
|
}, 8, ["modelValue"])) : createCommentVNode("v-if", true)]), _ctx.state.mode === "month" ? (openBlock(), createElementBlock("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [createElementVNode("div", {
|
|
304
305
|
"data-tag": "tiny-calendar-view-prevmonth",
|
|
305
306
|
class: "absolute left-3 top-2.5 cursor-pointer",
|
|
306
|
-
onClick: _cache[
|
|
307
|
+
onClick: _cache[2] || (_cache[2] = function() {
|
|
307
308
|
return _ctx.goPrevMonth && _ctx.goPrevMonth.apply(_ctx, arguments);
|
|
308
309
|
})
|
|
309
310
|
}, [createVNode(_component_icon_chevron_left)]), createElementVNode("ul", _hoisted_10, [(openBlock(true), createElementBlock(
|
|
@@ -327,7 +328,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327
328
|
))]), createElementVNode("div", {
|
|
328
329
|
"data-tag": "tiny-calendar-view-nextmonth",
|
|
329
330
|
class: "absolute right-3 top-2.5 cursor-pointer",
|
|
330
|
-
onClick: _cache[
|
|
331
|
+
onClick: _cache[3] || (_cache[3] = function() {
|
|
331
332
|
return _ctx.goNextMonth && _ctx.goNextMonth.apply(_ctx, arguments);
|
|
332
333
|
})
|
|
333
334
|
}, [createVNode(_component_icon_chevron_right)])]), createElementVNode("div", _hoisted_12, [createElementVNode("div", _hoisted_13, [(openBlock(true), createElementBlock(
|
|
@@ -419,7 +420,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
419
420
|
))])])])) : (openBlock(), createElementBlock("div", _hoisted_18, [createElementVNode("div", _hoisted_19, [createElementVNode("div", {
|
|
420
421
|
class: "w-7 shrink-0 text-right cursor-pointer",
|
|
421
422
|
"data-tag": "tiny-calendar-view-prevweek",
|
|
422
|
-
onClick: _cache[
|
|
423
|
+
onClick: _cache[4] || (_cache[4] = function() {
|
|
423
424
|
return _ctx.getPrevWeek && _ctx.getPrevWeek.apply(_ctx, arguments);
|
|
424
425
|
})
|
|
425
426
|
}, [createVNode(_component_icon_chevron_left)]), createElementVNode("ul", _hoisted_20, [(openBlock(true), createElementBlock(
|
|
@@ -475,7 +476,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
475
476
|
))]), createElementVNode("div", {
|
|
476
477
|
"data-tag": "tiny-calendar-view-nextvweek",
|
|
477
478
|
class: "w-7 shrink-0 text-left cursor-pointer",
|
|
478
|
-
onClick: _cache[
|
|
479
|
+
onClick: _cache[5] || (_cache[5] = function() {
|
|
479
480
|
return _ctx.getNextWeek && _ctx.getNextWeek.apply(_ctx, arguments);
|
|
480
481
|
})
|
|
481
482
|
}, [createVNode(_component_icon_chevron_right)])]), _ctx.state.mode === "timeline" ? (openBlock(), createElementBlock(
|
package/lib/pc.js
CHANGED
|
@@ -545,41 +545,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
545
545
|
}),
|
|
546
546
|
128
|
|
547
547
|
/* KEYED_FRAGMENT */
|
|
548
|
-
))])])) : createCommentVNode("v-if", true)])), createVNode(
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
548
|
+
))])])) : createCommentVNode("v-if", true)])), createVNode(
|
|
549
|
+
_component_tiny_tooltip,
|
|
550
|
+
{
|
|
551
|
+
ref: "tooltip",
|
|
552
|
+
"popper-class": "tiny-calendar-view-tooltip",
|
|
553
|
+
effect: "light",
|
|
554
|
+
placement: "right"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
content: withCtx(function() {
|
|
558
|
+
return [createElementVNode("div", _hoisted_24, [createElementVNode(
|
|
559
|
+
"div",
|
|
560
|
+
_hoisted_25,
|
|
561
|
+
toDisplayString(_ctx.state.eventTipContent.title),
|
|
562
|
+
1
|
|
563
|
+
/* TEXT */
|
|
564
|
+
), createElementVNode(
|
|
565
|
+
"div",
|
|
566
|
+
_hoisted_26,
|
|
567
|
+
toDisplayString(_ctx.state.eventTipContent.startDay) + " " + toDisplayString(_ctx.state.eventTipContent.startTime) + " ~ " + toDisplayString(_ctx.state.eventTipContent.endDay) + " " + toDisplayString(_ctx.state.eventTipContent.endTime),
|
|
568
|
+
1
|
|
569
|
+
/* TEXT */
|
|
570
|
+
), createElementVNode(
|
|
571
|
+
"p",
|
|
572
|
+
_hoisted_27,
|
|
573
|
+
toDisplayString(_ctx.state.eventTipContent.content || ""),
|
|
574
|
+
1
|
|
575
|
+
/* TEXT */
|
|
576
|
+
)])];
|
|
577
|
+
}),
|
|
578
|
+
_: 1
|
|
579
|
+
/* STABLE */
|
|
580
|
+
},
|
|
581
|
+
512
|
|
582
|
+
/* NEED_PATCH */
|
|
583
|
+
)],
|
|
583
584
|
4
|
|
584
585
|
/* STYLE */
|
|
585
586
|
);
|