@opentinyvue/vue-date-panel 3.21.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 +38 -2
- package/lib/mobile-first.js +8 -7
- package/lib/pc.js +53 -15
- package/package.json +17 -16
- package/src/index.d.ts +72 -0
- package/src/pc.vue.d.ts +74 -1
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, $
|
|
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/date-panel/index.css";
|
|
@@ -42,8 +42,44 @@ var DatePanel = defineComponent({
|
|
|
42
42
|
default: false
|
|
43
43
|
},
|
|
44
44
|
formatWeeks: Function,
|
|
45
|
+
type: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ""
|
|
48
|
+
},
|
|
49
|
+
firstDayOfWeek: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: 7
|
|
52
|
+
},
|
|
45
53
|
nowClick: {
|
|
46
54
|
type: Function
|
|
55
|
+
},
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: [Date, String, Number],
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
format: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: ""
|
|
63
|
+
},
|
|
64
|
+
readonly: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false
|
|
67
|
+
},
|
|
68
|
+
shortcuts: {
|
|
69
|
+
type: Array,
|
|
70
|
+
default: function _default2() {
|
|
71
|
+
return [];
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
disabledDate: {
|
|
75
|
+
type: Function,
|
|
76
|
+
default: function _default3() {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
popperClass: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: ""
|
|
47
83
|
}
|
|
48
84
|
}),
|
|
49
85
|
setup: function setup(props, context) {
|
|
@@ -54,7 +90,7 @@ var DatePanel = defineComponent({
|
|
|
54
90
|
});
|
|
55
91
|
}
|
|
56
92
|
});
|
|
57
|
-
var version = "3.
|
|
93
|
+
var version = "3.undefined";
|
|
58
94
|
DatePanel.install = function(Vue) {
|
|
59
95
|
Vue.component(DatePanel.name, DatePanel);
|
|
60
96
|
};
|
package/lib/mobile-first.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/date-panel/vue';
|
|
2
2
|
import { directive, setup, props } from '@opentinyvue/vue-common';
|
|
3
3
|
import { language } from '@opentinyvue/vue-locale';
|
|
4
|
-
import Clickoutside from '@opentinyvue/vue-
|
|
4
|
+
import { Clickoutside } from '@opentinyvue/vue-directive';
|
|
5
5
|
import Time from '@opentinyvue/vue-time';
|
|
6
6
|
import DateTable from '@opentinyvue/vue-date-table';
|
|
7
7
|
import YearTable from '@opentinyvue/vue-year-table';
|
|
@@ -161,6 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
161
161
|
persisted: ""
|
|
162
162
|
}, {
|
|
163
163
|
default: withCtx(function() {
|
|
164
|
+
var _ctx$state$shortcuts, _ctx$state$shortcuts2;
|
|
164
165
|
return [withDirectives(createElementVNode(
|
|
165
166
|
"div",
|
|
166
167
|
{
|
|
@@ -178,7 +179,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
179
|
[renderSlot(_ctx.$slots, "sidebar", {
|
|
179
180
|
dataTag: "tiny-picker-panel__sidebar",
|
|
180
181
|
class: normalizeClass(_ctx.gcls("sidebar"))
|
|
181
|
-
}), _ctx.state.shortcuts ? (openBlock(), createElementBlock(
|
|
182
|
+
}), (_ctx$state$shortcuts = _ctx.state.shortcuts) != null && _ctx$state$shortcuts.length ? (openBlock(), createElementBlock(
|
|
182
183
|
"div",
|
|
183
184
|
{
|
|
184
185
|
key: 0,
|
|
@@ -209,7 +210,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
210
|
{
|
|
210
211
|
"data-tag": "tiny-picker-panel__body",
|
|
211
212
|
class: normalizeClass([_ctx.gcls("picker-panel-body"), {
|
|
212
|
-
"ml-28": _ctx.slots.sidebar || _ctx.state.shortcuts
|
|
213
|
+
"ml-28": _ctx.slots.sidebar || ((_ctx$state$shortcuts2 = _ctx.state.shortcuts) == null ? void 0 : _ctx$state$shortcuts2.length)
|
|
213
214
|
}])
|
|
214
215
|
},
|
|
215
216
|
[_ctx.state.showTime ? (openBlock(), createElementBlock(
|
|
@@ -293,8 +294,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
293
294
|
"span",
|
|
294
295
|
{
|
|
295
296
|
role: "button",
|
|
296
|
-
onClick: _cache[5] || (_cache[5] = function() {
|
|
297
|
-
return _ctx.
|
|
297
|
+
onClick: _cache[5] || (_cache[5] = function($event) {
|
|
298
|
+
return _ctx.showHeaderPicker("Year");
|
|
298
299
|
}),
|
|
299
300
|
"data-tag": "tiny-date-picker__header-label",
|
|
300
301
|
class: normalizeClass([_ctx.gcls("header-label")])
|
|
@@ -306,8 +307,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
307
|
"span",
|
|
307
308
|
{
|
|
308
309
|
role: "button",
|
|
309
|
-
onClick: _cache[6] || (_cache[6] = function() {
|
|
310
|
-
return _ctx.
|
|
310
|
+
onClick: _cache[6] || (_cache[6] = function($event) {
|
|
311
|
+
return _ctx.showHeaderPicker("Month");
|
|
311
312
|
}),
|
|
312
313
|
"data-tag": "tiny-date-picker__header-label",
|
|
313
314
|
class: normalizeClass([_ctx.gcls("header-label"), {
|
package/lib/pc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/date-panel/vue';
|
|
2
2
|
import { defineComponent, $prefix, directive, setup, $props } from '@opentinyvue/vue-common';
|
|
3
3
|
import { language } from '@opentinyvue/vue-locale';
|
|
4
|
-
import Clickoutside from '@opentinyvue/vue-
|
|
4
|
+
import { Clickoutside } from '@opentinyvue/vue-directive';
|
|
5
5
|
import Time from '@opentinyvue/vue-time';
|
|
6
6
|
import DateTable from '@opentinyvue/vue-date-table';
|
|
7
7
|
import YearTable from '@opentinyvue/vue-year-table';
|
|
@@ -10,7 +10,7 @@ import Input from '@opentinyvue/vue-input';
|
|
|
10
10
|
import Button from '@opentinyvue/vue-button';
|
|
11
11
|
import { iconDoubleRight, iconDoubleLeft, iconChevronLeft, iconChevronRight, iconChevronDown, iconChevronUp } from '@opentinyvue/vue-icon';
|
|
12
12
|
import Popup from '@opentinyvue/vue-popup';
|
|
13
|
-
import { resolveComponent, resolveDirective, openBlock, createBlock, Transition, withCtx,
|
|
13
|
+
import { resolveComponent, resolveDirective, openBlock, createBlock, Transition, withCtx, createElementVNode, normalizeClass, renderSlot, createElementBlock, Fragment, renderList, toDisplayString, createCommentVNode, createVNode, withDirectives, vShow, resolveDynamicComponent, normalizeStyle, createTextVNode } from 'vue';
|
|
14
14
|
|
|
15
15
|
function _createForOfIteratorHelperLoose(r, e) {
|
|
16
16
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -91,15 +91,51 @@ var _sfc_main = defineComponent({
|
|
|
91
91
|
default: false
|
|
92
92
|
},
|
|
93
93
|
formatWeeks: Function,
|
|
94
|
+
type: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: ""
|
|
97
|
+
},
|
|
98
|
+
firstDayOfWeek: {
|
|
99
|
+
type: Number,
|
|
100
|
+
default: 7
|
|
101
|
+
},
|
|
94
102
|
timeEditable: {
|
|
95
103
|
type: Boolean,
|
|
96
104
|
default: true
|
|
97
105
|
},
|
|
98
106
|
nowClick: {
|
|
99
107
|
type: Function
|
|
108
|
+
},
|
|
109
|
+
modelValue: {
|
|
110
|
+
type: [Date, String, Number],
|
|
111
|
+
default: ""
|
|
112
|
+
},
|
|
113
|
+
format: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: ""
|
|
116
|
+
},
|
|
117
|
+
readonly: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: false
|
|
120
|
+
},
|
|
121
|
+
shortcuts: {
|
|
122
|
+
type: Array,
|
|
123
|
+
default: function _default2() {
|
|
124
|
+
return [];
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
disabledDate: {
|
|
128
|
+
type: Function,
|
|
129
|
+
default: function _default3() {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
popperClass: {
|
|
134
|
+
type: String,
|
|
135
|
+
default: ""
|
|
100
136
|
}
|
|
101
137
|
}),
|
|
102
|
-
emits: ["pick", "select-change", "dodestroy"],
|
|
138
|
+
emits: ["pick", "select-change", "update:modelValue", "dodestroy"],
|
|
103
139
|
setup: function setup$1(props, context) {
|
|
104
140
|
return setup({
|
|
105
141
|
props,
|
|
@@ -170,11 +206,11 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
170
206
|
return openBlock(), createBlock(Transition, {
|
|
171
207
|
name: "tiny-zoom-in-top",
|
|
172
208
|
onAfterEnter: _ctx.handleEnter,
|
|
173
|
-
onAfterLeave: _ctx.handleLeave
|
|
174
|
-
persisted: ""
|
|
209
|
+
onAfterLeave: _ctx.handleLeave
|
|
175
210
|
}, {
|
|
176
211
|
default: withCtx(function() {
|
|
177
|
-
|
|
212
|
+
var _ctx$state$shortcuts;
|
|
213
|
+
return [createElementVNode(
|
|
178
214
|
"div",
|
|
179
215
|
{
|
|
180
216
|
class: normalizeClass(["tiny-picker-panel tiny-date-picker tiny-popper", [{
|
|
@@ -184,7 +220,7 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
184
220
|
},
|
|
185
221
|
[createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "sidebar", {
|
|
186
222
|
class: "tiny-picker-panel__sidebar"
|
|
187
|
-
}), _ctx.state.shortcuts ? (openBlock(), createElementBlock("div", _hoisted_2, [(openBlock(true), createElementBlock(
|
|
223
|
+
}), (_ctx$state$shortcuts = _ctx.state.shortcuts) != null && _ctx$state$shortcuts.length ? (openBlock(), createElementBlock("div", _hoisted_2, [(openBlock(true), createElementBlock(
|
|
188
224
|
Fragment,
|
|
189
225
|
null,
|
|
190
226
|
renderList(_ctx.state.shortcuts, function(shortcut, key) {
|
|
@@ -252,8 +288,8 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
252
288
|
}, [createVNode(_component_icon_chevron_left)], 8, _hoisted_9), [[vShow, _ctx.state.currentView === "date"]]), createElementVNode(
|
|
253
289
|
"span",
|
|
254
290
|
{
|
|
255
|
-
onClick: _cache[5] || (_cache[5] = function() {
|
|
256
|
-
return _ctx.
|
|
291
|
+
onClick: _cache[5] || (_cache[5] = function($event) {
|
|
292
|
+
return _ctx.showHeaderPicker("Year");
|
|
257
293
|
}),
|
|
258
294
|
role: "button",
|
|
259
295
|
class: "tiny-date-picker__header-label"
|
|
@@ -264,8 +300,8 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
264
300
|
), withDirectives(createElementVNode(
|
|
265
301
|
"span",
|
|
266
302
|
{
|
|
267
|
-
onClick: _cache[6] || (_cache[6] = function() {
|
|
268
|
-
return _ctx.
|
|
303
|
+
onClick: _cache[6] || (_cache[6] = function($event) {
|
|
304
|
+
return _ctx.showHeaderPicker("Month");
|
|
269
305
|
}),
|
|
270
306
|
role: "button",
|
|
271
307
|
class: normalizeClass(["tiny-date-picker__header-label", {
|
|
@@ -304,8 +340,9 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
304
340
|
"cell-class-name": _ctx.state.cellClassName,
|
|
305
341
|
"disabled-date": _ctx.state.disabledDate,
|
|
306
342
|
"show-week-number": _ctx.showWeekNumber,
|
|
307
|
-
"format-weeks": _ctx.formatWeeks
|
|
308
|
-
|
|
343
|
+
"format-weeks": _ctx.formatWeeks,
|
|
344
|
+
readonly: _ctx.readonly
|
|
345
|
+
}, null, 8, ["onPick", "selection-mode", "first-day-of-week", "value", "default-value", "date", "cell-class-name", "disabled-date", "show-week-number", "format-weeks", "readonly"])) : createCommentVNode("v-if", true), ["year", "years", "yearrange"].includes(_ctx.state.currentView) ? (openBlock(), createBlock(_component_year_table, {
|
|
309
346
|
key: 1,
|
|
310
347
|
ref: "yearTable",
|
|
311
348
|
value: _ctx.state.value,
|
|
@@ -314,8 +351,9 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
314
351
|
"disabled-date": _ctx.state.disabledDate,
|
|
315
352
|
"selection-mode": _ctx.state.selectionMode,
|
|
316
353
|
"start-year": _ctx.state.startYear,
|
|
354
|
+
readonly: _ctx.readonly,
|
|
317
355
|
onPick: _ctx.handleYearPick
|
|
318
|
-
}, null, 8, ["value", "default-value", "date", "disabled-date", "selection-mode", "start-year", "onPick"])) : createCommentVNode("v-if", true), _ctx.state.currentView === "month" ? (openBlock(), createBlock(_component_month_table, {
|
|
356
|
+
}, null, 8, ["value", "default-value", "date", "disabled-date", "selection-mode", "start-year", "readonly", "onPick"])) : createCommentVNode("v-if", true), _ctx.state.currentView === "month" ? (openBlock(), createBlock(_component_month_table, {
|
|
319
357
|
key: 2,
|
|
320
358
|
ref: "monthTable",
|
|
321
359
|
onPick: _ctx.handleMonthPick,
|
|
@@ -416,7 +454,7 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
416
454
|
)) : createCommentVNode("v-if", true)],
|
|
417
455
|
2
|
|
418
456
|
/* CLASS */
|
|
419
|
-
)
|
|
457
|
+
)];
|
|
420
458
|
}),
|
|
421
459
|
_: 3
|
|
422
460
|
/* FORWARDED */
|
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-date-panel",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.22.1",
|
|
4
5
|
"description": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
5
8
|
"main": "./lib/index.js",
|
|
6
9
|
"module": "./lib/index.js",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"type": "module",
|
|
9
10
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-
|
|
11
|
-
"@opentinyvue/vue-
|
|
12
|
-
"@opentinyvue/vue-
|
|
13
|
-
"@opentinyvue/vue-
|
|
14
|
-
"@opentinyvue/vue-
|
|
15
|
-
"@opentinyvue/vue-
|
|
16
|
-
"@opentinyvue/vue-
|
|
17
|
-
"@opentinyvue/vue-
|
|
18
|
-
"@opentinyvue/vue-
|
|
19
|
-
"@opentinyvue/vue-
|
|
20
|
-
"@opentinyvue/vue-
|
|
21
|
-
"@opentinyvue/vue-
|
|
11
|
+
"@opentinyvue/vue-button": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-date-table": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-directive": "~3.22.0",
|
|
15
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
16
|
+
"@opentinyvue/vue-input": "~3.22.0",
|
|
17
|
+
"@opentinyvue/vue-locale": "~3.22.0",
|
|
18
|
+
"@opentinyvue/vue-month-table": "~3.22.0",
|
|
19
|
+
"@opentinyvue/vue-popup": "~3.22.0",
|
|
20
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
21
|
+
"@opentinyvue/vue-theme": "~3.22.0",
|
|
22
|
+
"@opentinyvue/vue-time": "~3.22.0",
|
|
23
|
+
"@opentinyvue/vue-year-table": "~3.22.0"
|
|
22
24
|
},
|
|
23
|
-
"license": "MIT",
|
|
24
25
|
"types": "index.d.ts",
|
|
25
26
|
"scripts": {
|
|
26
27
|
"build": "pnpm -w build:ui $npm_package_name",
|
package/src/index.d.ts
CHANGED
|
@@ -13,9 +13,41 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
formatWeeks: FunctionConstructor;
|
|
16
|
+
type: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
firstDayOfWeek: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
16
24
|
nowClick: {
|
|
17
25
|
type: FunctionConstructor;
|
|
18
26
|
};
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
format: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
readonly: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
shortcuts: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
disabledDate: {
|
|
44
|
+
type: FunctionConstructor;
|
|
45
|
+
default: () => null;
|
|
46
|
+
};
|
|
47
|
+
popperClass: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
19
51
|
tiny_mode: StringConstructor;
|
|
20
52
|
tiny_mode_root: BooleanConstructor;
|
|
21
53
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
@@ -39,9 +71,41 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
39
71
|
default: boolean;
|
|
40
72
|
};
|
|
41
73
|
formatWeeks: FunctionConstructor;
|
|
74
|
+
type: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
firstDayOfWeek: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
42
82
|
nowClick: {
|
|
43
83
|
type: FunctionConstructor;
|
|
44
84
|
};
|
|
85
|
+
modelValue: {
|
|
86
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
format: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
readonly: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
shortcuts: {
|
|
98
|
+
type: ArrayConstructor;
|
|
99
|
+
default: () => never[];
|
|
100
|
+
};
|
|
101
|
+
disabledDate: {
|
|
102
|
+
type: FunctionConstructor;
|
|
103
|
+
default: () => null;
|
|
104
|
+
};
|
|
105
|
+
popperClass: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
45
109
|
tiny_mode: StringConstructor;
|
|
46
110
|
tiny_mode_root: BooleanConstructor;
|
|
47
111
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
@@ -49,8 +113,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
49
113
|
tiny_theme: StringConstructor;
|
|
50
114
|
tiny_chart_theme: ObjectConstructor;
|
|
51
115
|
}>>, {
|
|
116
|
+
format: string;
|
|
117
|
+
type: string;
|
|
52
118
|
tiny_mode_root: boolean;
|
|
119
|
+
modelValue: string | number | Date;
|
|
120
|
+
popperClass: string;
|
|
121
|
+
readonly: boolean;
|
|
53
122
|
step: Record<string, any>;
|
|
54
123
|
showWeekNumber: boolean;
|
|
124
|
+
disabledDate: Function;
|
|
125
|
+
firstDayOfWeek: number;
|
|
126
|
+
shortcuts: unknown[];
|
|
55
127
|
}, {}>;
|
|
56
128
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
formatWeeks: FunctionConstructor;
|
|
16
|
+
type: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
firstDayOfWeek: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
16
24
|
timeEditable: {
|
|
17
25
|
type: BooleanConstructor;
|
|
18
26
|
default: boolean;
|
|
@@ -20,6 +28,30 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
20
28
|
nowClick: {
|
|
21
29
|
type: FunctionConstructor;
|
|
22
30
|
};
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
format: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
readonly: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
shortcuts: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
disabledDate: {
|
|
48
|
+
type: FunctionConstructor;
|
|
49
|
+
default: () => null;
|
|
50
|
+
};
|
|
51
|
+
popperClass: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
23
55
|
tiny_mode: StringConstructor;
|
|
24
56
|
tiny_mode_root: BooleanConstructor;
|
|
25
57
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
@@ -35,7 +67,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
35
67
|
dp: (props: any) => void;
|
|
36
68
|
gcls: (key: any) => any;
|
|
37
69
|
m: (...cssClasses: any[]) => string;
|
|
38
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("select-change" | "pick" | "dodestroy")[], "select-change" | "pick" | "dodestroy", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
70
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "select-change" | "pick" | "dodestroy")[], "update:modelValue" | "select-change" | "pick" | "dodestroy", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
39
71
|
emitter: ObjectConstructor;
|
|
40
72
|
step: {
|
|
41
73
|
type: ObjectConstructor;
|
|
@@ -50,6 +82,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
50
82
|
default: boolean;
|
|
51
83
|
};
|
|
52
84
|
formatWeeks: FunctionConstructor;
|
|
85
|
+
type: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
firstDayOfWeek: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
53
93
|
timeEditable: {
|
|
54
94
|
type: BooleanConstructor;
|
|
55
95
|
default: boolean;
|
|
@@ -57,6 +97,30 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
57
97
|
nowClick: {
|
|
58
98
|
type: FunctionConstructor;
|
|
59
99
|
};
|
|
100
|
+
modelValue: {
|
|
101
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
format: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
readonly: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
shortcuts: {
|
|
113
|
+
type: ArrayConstructor;
|
|
114
|
+
default: () => never[];
|
|
115
|
+
};
|
|
116
|
+
disabledDate: {
|
|
117
|
+
type: FunctionConstructor;
|
|
118
|
+
default: () => null;
|
|
119
|
+
};
|
|
120
|
+
popperClass: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
60
124
|
tiny_mode: StringConstructor;
|
|
61
125
|
tiny_mode_root: BooleanConstructor;
|
|
62
126
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
@@ -64,13 +128,22 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
64
128
|
tiny_theme: StringConstructor;
|
|
65
129
|
tiny_chart_theme: ObjectConstructor;
|
|
66
130
|
}>> & {
|
|
131
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
67
132
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
68
133
|
"onSelect-change"?: ((...args: any[]) => any) | undefined;
|
|
69
134
|
onDodestroy?: ((...args: any[]) => any) | undefined;
|
|
70
135
|
}, {
|
|
136
|
+
format: string;
|
|
137
|
+
type: string;
|
|
71
138
|
tiny_mode_root: boolean;
|
|
139
|
+
modelValue: string | number | Date;
|
|
140
|
+
popperClass: string;
|
|
141
|
+
readonly: boolean;
|
|
72
142
|
timeEditable: boolean;
|
|
73
143
|
step: Record<string, any>;
|
|
74
144
|
showWeekNumber: boolean;
|
|
145
|
+
disabledDate: Function;
|
|
146
|
+
firstDayOfWeek: number;
|
|
147
|
+
shortcuts: unknown[];
|
|
75
148
|
}, {}>;
|
|
76
149
|
export default _default;
|