@opentinyvue/vue-calendar-bar 2.21.0 → 3.21.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 +1 -1
- package/lib/mobile-first.js +228 -182
- package/package.json +4 -4
- package/src/calendar-item.vue.d.ts +11 -1
- package/src/index.d.ts +62 -1
- package/src/mobile-first.vue.d.ts +38 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -2,38 +2,42 @@ import { renderless, api } from '@opentinyvue/vue-renderless/calendar-bar/vue';
|
|
|
2
2
|
import { defineComponent, h, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import { IconChevronDown } from '@opentinyvue/vue-icon';
|
|
4
4
|
import CascaderSelect from '@opentinyvue/vue-cascader-select';
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, toDisplayString, createVNode, Fragment, renderList, normalizeStyle, withModifiers, mergeProps } from 'vue';
|
|
5
6
|
|
|
6
|
-
function
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
hook = injectStyles;
|
|
7
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
+
t && (r = t);
|
|
12
|
+
var o = 0;
|
|
13
|
+
return function() {
|
|
14
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
+
};
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
var existing = options.beforeCreate;
|
|
27
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
28
|
-
}
|
|
17
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
+
}
|
|
19
|
+
function _unsupportedIterableToArray(r, a) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
29
24
|
}
|
|
30
|
-
return {
|
|
31
|
-
exports: scriptExports,
|
|
32
|
-
options
|
|
33
|
-
};
|
|
34
25
|
}
|
|
26
|
+
function _arrayLikeToArray(r, a) {
|
|
27
|
+
(null == a || a > r.length) && (a = r.length);
|
|
28
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
+
var target = sfc.__vccOpts || sfc;
|
|
33
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
35
39
|
|
|
36
|
-
var
|
|
40
|
+
var _sfc_main$1 = defineComponent({
|
|
37
41
|
name: "CalendarItem",
|
|
38
42
|
props: {
|
|
39
43
|
text: String,
|
|
@@ -44,9 +48,9 @@ var __vue2_script$1 = defineComponent({
|
|
|
44
48
|
render: function render() {
|
|
45
49
|
var _this = this;
|
|
46
50
|
var text = this.text, day = this.day, config = this.config, $emit = this.$emit;
|
|
47
|
-
var renderItem = config.renderItem,
|
|
48
|
-
if (typeof
|
|
49
|
-
return
|
|
51
|
+
var renderItem = config.renderItem, render2 = config.render;
|
|
52
|
+
if (typeof render2 === "function") {
|
|
53
|
+
return render2({
|
|
50
54
|
h,
|
|
51
55
|
item: day,
|
|
52
56
|
text,
|
|
@@ -92,24 +96,13 @@ var __vue2_script$1 = defineComponent({
|
|
|
92
96
|
}, [h("div", itemAttrs, [child]), markVnode]);
|
|
93
97
|
}
|
|
94
98
|
});
|
|
95
|
-
var
|
|
96
|
-
var __cssModules$1 = {};
|
|
97
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$1);
|
|
98
|
-
function __vue2_injectStyles$1(context) {
|
|
99
|
-
for (var o in __cssModules$1) {
|
|
100
|
-
this[o] = __cssModules$1[o];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
var CalendarItem = /* @__PURE__ */ function() {
|
|
104
|
-
return __component__$1.exports;
|
|
105
|
-
}();
|
|
106
|
-
var __vue2_script = defineComponent({
|
|
99
|
+
var _sfc_main = defineComponent({
|
|
107
100
|
emits: ["update:modelValue", "expand", "week-change"],
|
|
108
101
|
props: [].concat(props, ["modelValue", "config", "cascaderPosition"]),
|
|
109
102
|
components: {
|
|
110
103
|
TinyCascaderSelect: CascaderSelect,
|
|
111
104
|
IconChevronDown: IconChevronDown(),
|
|
112
|
-
CalendarItem
|
|
105
|
+
CalendarItem: _sfc_main$1
|
|
113
106
|
},
|
|
114
107
|
setup: function setup$1(props2, context) {
|
|
115
108
|
return setup({
|
|
@@ -120,147 +113,200 @@ var __vue2_script = defineComponent({
|
|
|
120
113
|
});
|
|
121
114
|
}
|
|
122
115
|
});
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
staticClass: "text-xs",
|
|
169
|
-
style: _vm.state.minSize2,
|
|
170
|
-
attrs: {
|
|
171
|
-
"data-tag": "tiny-calendar-bar-weekday"
|
|
172
|
-
}
|
|
173
|
-
}, [_c("calendar-item", {
|
|
174
|
-
attrs: {
|
|
175
|
-
"text": _vm.t("ui.calendarBar.week." + weekDay),
|
|
176
|
-
"day": "" + weekDay,
|
|
177
|
-
"config": _vm.config
|
|
178
|
-
}
|
|
179
|
-
})], 1);
|
|
180
|
-
}), 0), _c("div", {
|
|
181
|
-
staticClass: "h-max flex relative right-full will-change-transform",
|
|
182
|
-
style: {
|
|
183
|
-
"width": " 300%",
|
|
184
|
-
"transform": "translateX(" + _vm.state.delta + "px)",
|
|
185
|
-
"transition-duration": _vm.state.duration + "ms"
|
|
186
|
-
},
|
|
187
|
-
on: {
|
|
188
|
-
"touchstart": _vm.touchstart,
|
|
189
|
-
"touchend": _vm.touchend,
|
|
190
|
-
"touchmove": _vm.touchmove
|
|
191
|
-
}
|
|
192
|
-
}, [_c("div", {
|
|
193
|
-
ref: "calendarPanel",
|
|
194
|
-
staticClass: "w-full flex"
|
|
195
|
-
}, _vm._l(_vm.state.data, function(calendarDays, idx) {
|
|
196
|
-
return _c("div", {
|
|
197
|
-
key: idx,
|
|
198
|
-
staticClass: "grid grid-cols-7",
|
|
199
|
-
staticStyle: {
|
|
200
|
-
"width": "33.33%"
|
|
201
|
-
}
|
|
202
|
-
}, _vm._l(calendarDays, function(calendarDay) {
|
|
203
|
-
var _vm$m, _vm$m2;
|
|
204
|
-
return _c("div", {
|
|
205
|
-
key: calendarDay.dateStr,
|
|
206
|
-
class: _vm.m("text-sm", (calendarDay.isCurMon || _vm.state.showWeek) && calendarDay.isWorkday ? _vm.config.workdayColorClass || "text-color-icon-primary" : _vm.config.holidayColorClass || "text-color-icon-placeholder", (_vm$m = {}, _vm$m[_vm.config.disabledColorClass || "text-color-icon-disabled"] = calendarDay.disabled, _vm$m), (_vm$m2 = {}, _vm$m2[_vm.config.currentColorClass || "text-color-icon-inverse"] = calendarDay.type === "cur" && calendarDay.isCur, _vm$m2)),
|
|
207
|
-
style: _vm.state.minSize3
|
|
208
|
-
}, [_c("calendar-item", {
|
|
209
|
-
attrs: {
|
|
210
|
-
"text": "" + calendarDay.dateArr[2],
|
|
211
|
-
"day": calendarDay,
|
|
212
|
-
"config": _vm.config
|
|
213
|
-
},
|
|
214
|
-
on: {
|
|
215
|
-
"clickday": _vm.handleClickDay
|
|
216
|
-
}
|
|
217
|
-
})], 1);
|
|
218
|
-
}), 0);
|
|
219
|
-
}), 0)]), _c("div", {
|
|
220
|
-
staticClass: "w-full h-4 flex justify-center items-center"
|
|
221
|
-
}, [_c("div", {
|
|
222
|
-
staticClass: "w-6 h-full flex justify-center items-center",
|
|
223
|
-
on: {
|
|
224
|
-
"click": _vm.handleDraggerClick,
|
|
225
|
-
"mousedown": _vm.handleDraggerMousedown,
|
|
226
|
-
"touchstart": _vm.handleDraggerTouchstart,
|
|
227
|
-
"touchend": _vm.handleDraggerTouchend,
|
|
228
|
-
"touchmove": function touchmove($event) {
|
|
229
|
-
$event.preventDefault();
|
|
230
|
-
return _vm.throttledHandleDraggerTouchmove.apply(null, arguments);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}, [_c("div", {
|
|
234
|
-
class: ["box-content w-6 h-px cursor-pointer bg-color-border-separator rounded-sm", "border-y border-solid border-color-border-separator"]
|
|
235
|
-
})])])]), _c("tiny-cascader-select", _vm._b({
|
|
236
|
-
attrs: {
|
|
237
|
-
"cycle-roll": "",
|
|
238
|
-
"options": _vm.state.cascaderOptions,
|
|
239
|
-
"visible": _vm.state.cascaderVisible
|
|
240
|
-
},
|
|
241
|
-
on: {
|
|
242
|
-
"update:modelValue": _vm.handleCascaderChange,
|
|
243
|
-
"update:visible": _vm.setCascaderVisible
|
|
116
|
+
var _hoisted_1 = {
|
|
117
|
+
"data-tag": "tiny-calendar-bar",
|
|
118
|
+
class: "select-none"
|
|
119
|
+
};
|
|
120
|
+
var _hoisted_2 = {
|
|
121
|
+
class: "-translate-y-px fill-color-icon-primary"
|
|
122
|
+
};
|
|
123
|
+
var _hoisted_3 = {
|
|
124
|
+
"data-tag": "tiny-calendar-bar-gridbox",
|
|
125
|
+
class: "w-full h-max overflow-hidden",
|
|
126
|
+
ref: "weekPanel"
|
|
127
|
+
};
|
|
128
|
+
var _hoisted_4 = {
|
|
129
|
+
class: "grid grid-cols-7"
|
|
130
|
+
};
|
|
131
|
+
var _hoisted_5 = {
|
|
132
|
+
class: "w-full flex",
|
|
133
|
+
ref: "calendarPanel"
|
|
134
|
+
};
|
|
135
|
+
var _hoisted_6 = {
|
|
136
|
+
class: "w-full h-4 flex justify-center items-center"
|
|
137
|
+
};
|
|
138
|
+
var _hoisted_7 = /* @__PURE__ */ createElementVNode(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
class: /* @__PURE__ */ normalizeClass(["box-content w-6 h-px cursor-pointer bg-color-border-separator rounded-sm", "border-y border-solid border-color-border-separator"])
|
|
142
|
+
},
|
|
143
|
+
null,
|
|
144
|
+
-1
|
|
145
|
+
/* HOISTED */
|
|
146
|
+
);
|
|
147
|
+
var _hoisted_8 = [_hoisted_7];
|
|
148
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149
|
+
var _component_icon_chevron_down = resolveComponent("icon-chevron-down");
|
|
150
|
+
var _component_calendar_item = resolveComponent("calendar-item");
|
|
151
|
+
var _component_tiny_cascader_select = resolveComponent("tiny-cascader-select");
|
|
152
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
"data-tag": "tiny-calendar-bar-content",
|
|
156
|
+
class: normalizeClass(["w-full h-11 flex items-center text-sm text-color-text-primary", "border-b-0.5 border-solid border-color-border-separator", {
|
|
157
|
+
"justify-start": _ctx.cascaderPosition === "start",
|
|
158
|
+
"justify-center": _ctx.cascaderPosition === "center",
|
|
159
|
+
"justify-end": _ctx.cascaderPosition === "end"
|
|
160
|
+
}])
|
|
244
161
|
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
162
|
+
[createElementVNode("div", {
|
|
163
|
+
"data-tag": "tiny-calendar-bar-visible",
|
|
164
|
+
class: "w-max h-6 flex items-center cursor-pointer space-x-1.5",
|
|
165
|
+
onClick: _cache[0] || (_cache[0] = function($event) {
|
|
166
|
+
return _ctx.setCascaderVisible(true);
|
|
167
|
+
})
|
|
168
|
+
}, [createElementVNode(
|
|
169
|
+
"span",
|
|
170
|
+
null,
|
|
171
|
+
toDisplayString(_ctx.i18nYearMonth()),
|
|
172
|
+
1
|
|
173
|
+
/* TEXT */
|
|
174
|
+
), createElementVNode("span", _hoisted_2, [createVNode(_component_icon_chevron_down, {
|
|
175
|
+
class: normalizeClass({
|
|
176
|
+
"rotate-180": _ctx.state.cascaderVisible
|
|
177
|
+
})
|
|
178
|
+
}, null, 8, ["class"])])])],
|
|
179
|
+
2
|
|
180
|
+
/* CLASS */
|
|
181
|
+
), createElementVNode(
|
|
182
|
+
"div",
|
|
183
|
+
_hoisted_3,
|
|
184
|
+
[createElementVNode("div", _hoisted_4, [(openBlock(true), createElementBlock(
|
|
185
|
+
Fragment,
|
|
186
|
+
null,
|
|
187
|
+
renderList(_ctx.state.weekDays, function(weekDay) {
|
|
188
|
+
return openBlock(), createElementBlock(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
"data-tag": "tiny-calendar-bar-weekday",
|
|
192
|
+
key: weekDay,
|
|
193
|
+
style: normalizeStyle(_ctx.state.minSize2),
|
|
194
|
+
class: "text-xs"
|
|
195
|
+
},
|
|
196
|
+
[createVNode(_component_calendar_item, {
|
|
197
|
+
text: _ctx.t("ui.calendarBar.week." + weekDay),
|
|
198
|
+
day: "" + weekDay,
|
|
199
|
+
config: _ctx.config
|
|
200
|
+
}, null, 8, ["text", "day", "config"])],
|
|
201
|
+
4
|
|
202
|
+
/* STYLE */
|
|
203
|
+
);
|
|
204
|
+
}),
|
|
205
|
+
128
|
|
206
|
+
/* KEYED_FRAGMENT */
|
|
207
|
+
))]), createElementVNode(
|
|
208
|
+
"div",
|
|
209
|
+
{
|
|
210
|
+
class: "h-max flex relative right-full will-change-transform",
|
|
211
|
+
onTouchstart: _cache[1] || (_cache[1] = function() {
|
|
212
|
+
return _ctx.touchstart && _ctx.touchstart.apply(_ctx, arguments);
|
|
213
|
+
}),
|
|
214
|
+
onTouchend: _cache[2] || (_cache[2] = function() {
|
|
215
|
+
return _ctx.touchend && _ctx.touchend.apply(_ctx, arguments);
|
|
216
|
+
}),
|
|
217
|
+
onTouchmove: _cache[3] || (_cache[3] = function() {
|
|
218
|
+
return _ctx.touchmove && _ctx.touchmove.apply(_ctx, arguments);
|
|
219
|
+
}),
|
|
220
|
+
style: normalizeStyle({
|
|
221
|
+
"width": " 300%",
|
|
222
|
+
"transform": "translateX(" + _ctx.state.delta + "px)",
|
|
223
|
+
"transition-duration": _ctx.state.duration + "ms"
|
|
224
|
+
})
|
|
249
225
|
},
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
226
|
+
[createElementVNode(
|
|
227
|
+
"div",
|
|
228
|
+
_hoisted_5,
|
|
229
|
+
[(openBlock(true), createElementBlock(
|
|
230
|
+
Fragment,
|
|
231
|
+
null,
|
|
232
|
+
renderList(_ctx.state.data, function(calendarDays, idx) {
|
|
233
|
+
return openBlock(), createElementBlock("div", {
|
|
234
|
+
class: "grid grid-cols-7",
|
|
235
|
+
key: idx,
|
|
236
|
+
style: {
|
|
237
|
+
"width": "33.33%"
|
|
238
|
+
}
|
|
239
|
+
}, [(openBlock(true), createElementBlock(
|
|
240
|
+
Fragment,
|
|
241
|
+
null,
|
|
242
|
+
renderList(calendarDays, function(calendarDay) {
|
|
243
|
+
var _ctx$m, _ctx$m2;
|
|
244
|
+
return openBlock(), createElementBlock(
|
|
245
|
+
"div",
|
|
246
|
+
{
|
|
247
|
+
key: calendarDay.dateStr,
|
|
248
|
+
style: normalizeStyle(_ctx.state.minSize3),
|
|
249
|
+
class: normalizeClass(_ctx.m("text-sm", (calendarDay.isCurMon || _ctx.state.showWeek) && calendarDay.isWorkday ? _ctx.config.workdayColorClass || "text-color-icon-primary" : _ctx.config.holidayColorClass || "text-color-icon-placeholder", (_ctx$m = {}, _ctx$m[_ctx.config.disabledColorClass || "text-color-icon-disabled"] = calendarDay.disabled, _ctx$m), (_ctx$m2 = {}, _ctx$m2[_ctx.config.currentColorClass || "text-color-icon-inverse"] = calendarDay.type === "cur" && calendarDay.isCur, _ctx$m2)))
|
|
250
|
+
},
|
|
251
|
+
[createVNode(_component_calendar_item, {
|
|
252
|
+
text: "" + calendarDay.dateArr[2],
|
|
253
|
+
day: calendarDay,
|
|
254
|
+
config: _ctx.config,
|
|
255
|
+
onClickday: _ctx.handleClickDay
|
|
256
|
+
}, null, 8, ["text", "day", "config", "onClickday"])],
|
|
257
|
+
6
|
|
258
|
+
/* CLASS, STYLE */
|
|
259
|
+
);
|
|
260
|
+
}),
|
|
261
|
+
128
|
|
262
|
+
/* KEYED_FRAGMENT */
|
|
263
|
+
))]);
|
|
264
|
+
}),
|
|
265
|
+
128
|
|
266
|
+
/* KEYED_FRAGMENT */
|
|
267
|
+
))],
|
|
268
|
+
512
|
|
269
|
+
/* NEED_PATCH */
|
|
270
|
+
)],
|
|
271
|
+
36
|
|
272
|
+
/* STYLE, NEED_HYDRATION */
|
|
273
|
+
), createElementVNode("div", _hoisted_6, [createElementVNode(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
class: "w-6 h-full flex justify-center items-center",
|
|
277
|
+
onClick: _cache[4] || (_cache[4] = function() {
|
|
278
|
+
return _ctx.handleDraggerClick && _ctx.handleDraggerClick.apply(_ctx, arguments);
|
|
279
|
+
}),
|
|
280
|
+
onMousedown: _cache[5] || (_cache[5] = function() {
|
|
281
|
+
return _ctx.handleDraggerMousedown && _ctx.handleDraggerMousedown.apply(_ctx, arguments);
|
|
282
|
+
}),
|
|
283
|
+
onTouchstart: _cache[6] || (_cache[6] = function() {
|
|
284
|
+
return _ctx.handleDraggerTouchstart && _ctx.handleDraggerTouchstart.apply(_ctx, arguments);
|
|
285
|
+
}),
|
|
286
|
+
onTouchend: _cache[7] || (_cache[7] = function() {
|
|
287
|
+
return _ctx.handleDraggerTouchend && _ctx.handleDraggerTouchend.apply(_ctx, arguments);
|
|
288
|
+
}),
|
|
289
|
+
onTouchmove: _cache[8] || (_cache[8] = withModifiers(function() {
|
|
290
|
+
return _ctx.throttledHandleDraggerTouchmove && _ctx.throttledHandleDraggerTouchmove.apply(_ctx, arguments);
|
|
291
|
+
}, ["prevent"]))
|
|
292
|
+
},
|
|
293
|
+
_hoisted_8,
|
|
294
|
+
32
|
|
295
|
+
/* NEED_HYDRATION */
|
|
296
|
+
)])],
|
|
297
|
+
512
|
|
298
|
+
/* NEED_PATCH */
|
|
299
|
+
), createVNode(_component_tiny_cascader_select, mergeProps({
|
|
300
|
+
modelValue: _ctx.state.cascaderCurrent,
|
|
301
|
+
"onUpdate:modelValue": [_cache[9] || (_cache[9] = function($event) {
|
|
302
|
+
return _ctx.state.cascaderCurrent = $event;
|
|
303
|
+
}), _ctx.handleCascaderChange],
|
|
304
|
+
"cycle-roll": "",
|
|
305
|
+
options: _ctx.state.cascaderOptions,
|
|
306
|
+
visible: _ctx.state.cascaderVisible,
|
|
307
|
+
"onUpdate:visible": _ctx.setCascaderVisible
|
|
308
|
+
}, _ctx.config.cascaderOp), null, 16, ["modelValue", "options", "visible", "onUpdate:modelValue", "onUpdate:visible"])]);
|
|
261
309
|
}
|
|
262
|
-
var mobileFirst = /* @__PURE__ */
|
|
263
|
-
return __component__.exports;
|
|
264
|
-
}();
|
|
310
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
265
311
|
|
|
266
312
|
export { mobileFirst as default };
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-calendar-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.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-cascader-select": "~
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
12
|
-
"@opentinyvue/vue-icon": "~
|
|
10
|
+
"@opentinyvue/vue-cascader-select": "~3.21.0",
|
|
11
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
12
|
+
"@opentinyvue/vue-icon": "~3.21.0",
|
|
13
13
|
"@opentinyvue/vue-renderless": "~3.21.0"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
text: StringConstructor;
|
|
3
|
+
day: (StringConstructor | ObjectConstructor)[];
|
|
4
|
+
config: ObjectConstructor;
|
|
5
|
+
}, unknown, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "clickday"[], "clickday", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
6
|
+
text: StringConstructor;
|
|
7
|
+
day: (StringConstructor | ObjectConstructor)[];
|
|
8
|
+
config: ObjectConstructor;
|
|
9
|
+
}>> & {
|
|
10
|
+
onClickday?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
2
12
|
export default _default;
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,63 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
_constants: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {
|
|
5
|
+
POSITON: {
|
|
6
|
+
START: string;
|
|
7
|
+
CENTER: string;
|
|
8
|
+
END: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
modelValue: StringConstructor;
|
|
13
|
+
config: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
cascaderPosition: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
validator: (value: string) => boolean;
|
|
21
|
+
};
|
|
22
|
+
tiny_mode: StringConstructor;
|
|
23
|
+
tiny_mode_root: BooleanConstructor;
|
|
24
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
25
|
+
tiny_renderless: FunctionConstructor;
|
|
26
|
+
tiny_theme: StringConstructor;
|
|
27
|
+
tiny_chart_theme: ObjectConstructor;
|
|
28
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
31
|
+
_constants: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: () => {
|
|
34
|
+
POSITON: {
|
|
35
|
+
START: string;
|
|
36
|
+
CENTER: string;
|
|
37
|
+
END: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
modelValue: StringConstructor;
|
|
42
|
+
config: {
|
|
43
|
+
type: ObjectConstructor;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
cascaderPosition: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: string) => boolean;
|
|
50
|
+
};
|
|
51
|
+
tiny_mode: StringConstructor;
|
|
52
|
+
tiny_mode_root: BooleanConstructor;
|
|
53
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
54
|
+
tiny_renderless: FunctionConstructor;
|
|
55
|
+
tiny_theme: StringConstructor;
|
|
56
|
+
tiny_chart_theme: ObjectConstructor;
|
|
57
|
+
}>>, {
|
|
58
|
+
tiny_mode_root: boolean;
|
|
59
|
+
_constants: Record<string, any>;
|
|
60
|
+
config: Record<string, any>;
|
|
61
|
+
cascaderPosition: string;
|
|
62
|
+
}, {}>;
|
|
2
63
|
export default _default;
|
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
tiny_mode?: any;
|
|
3
|
+
tiny_mode_root?: any;
|
|
4
|
+
tiny_template?: any;
|
|
5
|
+
tiny_renderless?: any;
|
|
6
|
+
_constants?: any;
|
|
7
|
+
tiny_theme?: any;
|
|
8
|
+
tiny_chart_theme?: any;
|
|
9
|
+
modelValue?: any;
|
|
10
|
+
config?: any;
|
|
11
|
+
cascaderPosition?: any;
|
|
12
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "expand" | "week-change")[], "update:modelValue" | "expand" | "week-change", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
13
|
+
tiny_mode?: any;
|
|
14
|
+
tiny_mode_root?: any;
|
|
15
|
+
tiny_template?: any;
|
|
16
|
+
tiny_renderless?: any;
|
|
17
|
+
_constants?: any;
|
|
18
|
+
tiny_theme?: any;
|
|
19
|
+
tiny_chart_theme?: any;
|
|
20
|
+
modelValue?: any;
|
|
21
|
+
config?: any;
|
|
22
|
+
cascaderPosition?: any;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onExpand?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
"onWeek-change"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
readonly tiny_mode?: any;
|
|
29
|
+
readonly tiny_mode_root?: any;
|
|
30
|
+
readonly tiny_template?: any;
|
|
31
|
+
readonly tiny_renderless?: any;
|
|
32
|
+
readonly _constants?: any;
|
|
33
|
+
readonly tiny_theme?: any;
|
|
34
|
+
readonly tiny_chart_theme?: any;
|
|
35
|
+
readonly modelValue?: any;
|
|
36
|
+
readonly config?: any;
|
|
37
|
+
readonly cascaderPosition?: any;
|
|
38
|
+
}, {}>;
|
|
2
39
|
export default _default;
|