@opentinyvue/vue-calendar-view 2.21.0 → 2.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
@@ -7,7 +7,7 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
12
  import MobileFirstTemplate from "./mobile-first.js";
13
13
  import "@opentinyvue/vue-theme/calendar-view/index.css";
@@ -93,6 +93,10 @@ var calendarViewProps = _extends({}, $props, {
93
93
  multiSelect: {
94
94
  type: Boolean,
95
95
  default: false
96
+ },
97
+ showBackToday: {
98
+ type: Boolean,
99
+ default: true
96
100
  }
97
101
  });
98
102
  var CalendarView = defineComponent({
@@ -106,7 +110,7 @@ var CalendarView = defineComponent({
106
110
  });
107
111
  }
108
112
  });
109
- var version = "2.21.0";
113
+ var version = "2.undefined";
110
114
  CalendarView.model = {
111
115
  prop: "modelValue",
112
116
  event: "update:modelValue"
@@ -75,7 +75,7 @@ var __vue2_script = defineComponent({
75
75
  TinyDatePicker: DatePicker,
76
76
  TinyTooltip: Tooltip
77
77
  },
78
- props: [].concat(props, ["_constants", "modelValue", "showMark", "showNewSchedule", "setDayBgColor", "disabled", "mode", "modes", "year", "month", "dayTimes", "events", "height", "mark-color", "multi-select"]),
78
+ props: [].concat(props, ["_constants", "modelValue", "showMark", "showNewSchedule", "setDayBgColor", "disabled", "mode", "modes", "year", "month", "dayTimes", "events", "height", "mark-color", "multi-select", "showBackToday"]),
79
79
  setup: function setup$1(props2, context) {
80
80
  return setup({
81
81
  props: props2,
@@ -106,7 +106,6 @@ var render = function render2() {
106
106
  ref: "tooltip",
107
107
  attrs: {
108
108
  "popper-class": "absolute max-w-[theme(spacing.80)]",
109
- "manual": true,
110
109
  "effect": "light",
111
110
  "placement": "right"
112
111
  },
@@ -114,7 +113,7 @@ var render = function render2() {
114
113
  key: "content",
115
114
  fn: function fn() {
116
115
  return [_c("div", {
117
- staticClass: "p-2"
116
+ staticClass: "p-2 max-h-[80vh] overflow-auto"
118
117
  }, [_c("div", {
119
118
  staticClass: "px-1.5 mb-1.5 border-l-2 border-color-brand"
120
119
  }, [_vm._v(_vm._s(_vm.state.eventTipContent.title))]), _c("div", {
@@ -124,25 +123,18 @@ var render = function render2() {
124
123
  }, [_vm._v(_vm._s(_vm.state.eventTipContent.content || ""))])])];
125
124
  },
126
125
  proxy: true
127
- }]),
128
- model: {
129
- value: _vm.state.eventTipVisible,
130
- callback: function callback($$v) {
131
- _vm.$set(_vm.state, "eventTipVisible", $$v);
132
- },
133
- expression: "state.eventTipVisible"
134
- }
126
+ }])
135
127
  }), _c("div", {
136
128
  staticClass: "flex justify-around items-center mb-3",
137
129
  attrs: {
138
130
  "data-tag": "tiny-calendar-view-today"
139
131
  }
140
- }, [_c("tiny-button", {
132
+ }, [_vm.showBackToday ? _c("tiny-button", {
141
133
  on: {
142
134
  "click": _vm.toToday
143
135
  }
144
- }, [_vm._v(_vm._s(_vm.t("ui.calendarView.backToday")))]), _c("tiny-date-picker", {
145
- staticClass: "ml-5 shrink-0",
136
+ }, [_vm._v(_vm._s(_vm.t("ui.calendarView.backToday")))]) : _vm._e(), _c("tiny-date-picker", {
137
+ class: [_vm.showBackToday ? "ml-5" : "", "shrink-0"],
146
138
  attrs: {
147
139
  "shape": "filter",
148
140
  "type": "month",
@@ -458,11 +450,11 @@ var render = function render2() {
458
450
  "data-tag": "tiny-calendar-view-curWeek"
459
451
  }
460
452
  }, [_c("div", {
461
- staticClass: "px-1.5 mb-1.5 border-l-2 border-color-brand"
453
+ staticClass: "px-1.5 mb-1.5 border-l-2 border-color-brand break-all"
462
454
  }, [_vm._v(_vm._s(event.title))]), _c("div", {
463
455
  staticClass: "mb-1.5 px-2 text-color-text-placeholder"
464
456
  }, [_vm._v(" " + _vm._s(_vm.getEventShowTime("start", event, date.value)) + " - " + _vm._s(_vm.getEventShowTime("end", event, date.value)) + " ")]), _c("p", {
465
- staticClass: "px-2 text-color-icon-primary line-clamp-2"
457
+ staticClass: "px-2 text-xs text-color-icon-primary line-clamp-2"
466
458
  }, [_vm._v(_vm._s(event.content || ""))])]);
467
459
  });
468
460
  }, {
package/lib/pc.js CHANGED
@@ -284,7 +284,6 @@ var render = function render2() {
284
284
  ref: "tooltip",
285
285
  attrs: {
286
286
  "popper-class": "tiny-calendar-view-tooltip",
287
- "manual": true,
288
287
  "effect": "light",
289
288
  "placement": "right"
290
289
  },
@@ -302,14 +301,7 @@ var render = function render2() {
302
301
  }, [_vm._v(_vm._s(_vm.state.eventTipContent.content || ""))])])];
303
302
  },
304
303
  proxy: true
305
- }]),
306
- model: {
307
- value: _vm.state.eventTipVisible,
308
- callback: function callback($$v) {
309
- _vm.$set(_vm.state, "eventTipVisible", $$v);
310
- },
311
- expression: "state.eventTipVisible"
312
- }
304
+ }])
313
305
  })], 1);
314
306
  };
315
307
  var staticRenderFns = [];
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-calendar-view",
3
- "version": "2.21.0",
3
+ "version": "2.22.1",
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": "~2.21.0",
11
- "@opentinyvue/vue-icon": "~2.21.0",
12
- "@opentinyvue/vue-renderless": "~3.21.0",
13
- "@opentinyvue/vue-tooltip": "~2.21.0",
14
- "@opentinyvue/vue-button": "~2.21.0",
15
- "@opentinyvue/vue-date-picker": "~2.21.0",
16
- "@opentinyvue/vue-radio-button": "~2.21.0",
17
- "@opentinyvue/vue-radio-group": "~2.21.0",
18
- "@opentinyvue/vue-slider-button": "~2.21.0",
19
- "@opentinyvue/vue-slider-button-group": "~2.21.0",
20
- "@opentinyvue/vue-theme": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~2.22.0",
11
+ "@opentinyvue/vue-icon": "~2.22.0",
12
+ "@opentinyvue/vue-renderless": "~3.22.0",
13
+ "@opentinyvue/vue-tooltip": "~2.22.0",
14
+ "@opentinyvue/vue-button": "~2.22.0",
15
+ "@opentinyvue/vue-date-picker": "~2.22.0",
16
+ "@opentinyvue/vue-radio-button": "~2.22.0",
17
+ "@opentinyvue/vue-radio-group": "~2.22.0",
18
+ "@opentinyvue/vue-slider-button": "~2.22.0",
19
+ "@opentinyvue/vue-slider-button-group": "~2.22.0",
20
+ "@opentinyvue/vue-theme": "~3.22.0"
21
21
  },
22
22
  "license": "MIT",
23
23
  "types": "index.d.ts"
package/src/index.d.ts CHANGED
@@ -61,6 +61,10 @@ export declare const calendarViewProps: {
61
61
  type: BooleanConstructor;
62
62
  default: boolean;
63
63
  };
64
+ showBackToday: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
64
68
  tiny_mode: StringConstructor;
65
69
  tiny_mode_root: BooleanConstructor;
66
70
  tiny_template: (ObjectConstructor | FunctionConstructor)[];