@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 CHANGED
@@ -110,7 +110,7 @@ var CalendarView = defineComponent({
110
110
  });
111
111
  }
112
112
  });
113
- var version = "3.22.0";
113
+ var version = "3.undefined";
114
114
  CalendarView.model = {
115
115
  prop: "modelValue",
116
116
  event: "update:modelValue"
@@ -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(_component_tiny_tooltip, {
215
- ref: "tooltip",
216
- modelValue: _ctx.state.eventTipVisible,
217
- "onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
218
- return _ctx.state.eventTipVisible = $event;
219
- }),
220
- "popper-class": "absolute max-w-[theme(spacing.80)]",
221
- manual: true,
222
- effect: "light",
223
- placement: "right"
224
- }, {
225
- content: withCtx(function() {
226
- return [createElementVNode("div", _hoisted_2, [createElementVNode(
227
- "div",
228
- _hoisted_3,
229
- toDisplayString(_ctx.state.eventTipContent.title),
230
- 1
231
- /* TEXT */
232
- ), createElementVNode(
233
- "div",
234
- _hoisted_4,
235
- toDisplayString(_ctx.state.eventTipContent.startDay) + " " + toDisplayString(_ctx.state.eventTipContent.startTime) + " ~ " + toDisplayString(_ctx.state.eventTipContent.endDay) + " " + toDisplayString(_ctx.state.eventTipContent.endTime),
236
- 1
237
- /* TEXT */
238
- ), createElementVNode(
239
- "p",
240
- _hoisted_5,
241
- toDisplayString(_ctx.state.eventTipContent.content || ""),
242
- 1
243
- /* TEXT */
244
- )])];
245
- }),
246
- _: 1
247
- /* STABLE */
248
- }, 8, ["modelValue"]), createElementVNode("div", _hoisted_6, [_ctx.showBackToday ? (openBlock(), createBlock(_component_tiny_button, {
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[1] || (_cache[1] = function($event) {
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[2] || (_cache[2] = function($event) {
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[3] || (_cache[3] = function() {
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[4] || (_cache[4] = function() {
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[5] || (_cache[5] = function() {
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[6] || (_cache[6] = function() {
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(_component_tiny_tooltip, {
549
- ref: "tooltip",
550
- modelValue: _ctx.state.eventTipVisible,
551
- "onUpdate:modelValue": _cache[6] || (_cache[6] = function($event) {
552
- return _ctx.state.eventTipVisible = $event;
553
- }),
554
- "popper-class": "tiny-calendar-view-tooltip",
555
- manual: true,
556
- effect: "light",
557
- placement: "right"
558
- }, {
559
- content: withCtx(function() {
560
- return [createElementVNode("div", _hoisted_24, [createElementVNode(
561
- "div",
562
- _hoisted_25,
563
- toDisplayString(_ctx.state.eventTipContent.title),
564
- 1
565
- /* TEXT */
566
- ), createElementVNode(
567
- "div",
568
- _hoisted_26,
569
- toDisplayString(_ctx.state.eventTipContent.startDay) + " " + toDisplayString(_ctx.state.eventTipContent.startTime) + " ~ " + toDisplayString(_ctx.state.eventTipContent.endDay) + " " + toDisplayString(_ctx.state.eventTipContent.endTime),
570
- 1
571
- /* TEXT */
572
- ), createElementVNode(
573
- "p",
574
- _hoisted_27,
575
- toDisplayString(_ctx.state.eventTipContent.content || ""),
576
- 1
577
- /* TEXT */
578
- )])];
579
- }),
580
- _: 1
581
- /* STABLE */
582
- }, 8, ["modelValue"])],
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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-calendar-view",
3
- "version": "3.22.0",
3
+ "version": "3.22.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",