@opentinyvue/vue-date-panel 3.26.0 → 3.28.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/pc.js +42 -34
- package/package.json +14 -14
package/lib/pc.js
CHANGED
|
@@ -407,7 +407,7 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
407
407
|
}),
|
|
408
408
|
_: 1
|
|
409
409
|
/* STABLE */
|
|
410
|
-
}, 8, ["modelValue"])])])), [[_directive_clickoutside, _ctx.handleTzPickClose]]) : createCommentVNode("v-if", true), _ctx.state.isShowFooter ? (openBlock(), createElementBlock(
|
|
410
|
+
}, 8, ["modelValue"])])])), [[_directive_clickoutside, _ctx.handleTzPickClose]]) : createCommentVNode("v-if", true), _ctx.state.isShowFooter || _ctx.$slots.footer || _ctx.$slots.now || _ctx.$slots.confirm ? (openBlock(), createElementBlock(
|
|
411
411
|
"div",
|
|
412
412
|
{
|
|
413
413
|
key: 1,
|
|
@@ -416,39 +416,47 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
416
416
|
justifyContent: !["dates", "years"].includes(_ctx.state.selectionMode) ? "space-between" : "right"
|
|
417
417
|
})
|
|
418
418
|
},
|
|
419
|
-
[renderSlot(_ctx.$slots, "
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
)
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
419
|
+
[renderSlot(_ctx.$slots, "footer", {
|
|
420
|
+
confirm: _ctx.confirm
|
|
421
|
+
}, function() {
|
|
422
|
+
return [renderSlot(_ctx.$slots, "now", {
|
|
423
|
+
changeToNow: _ctx.changeToNow
|
|
424
|
+
}, function() {
|
|
425
|
+
return [withDirectives(createVNode(_component_tiny_button, {
|
|
426
|
+
size: _ctx.state.buttonSize,
|
|
427
|
+
type: "text",
|
|
428
|
+
class: "tiny-picker-panel__link-btn",
|
|
429
|
+
onClick: _ctx.changeToNow
|
|
430
|
+
}, {
|
|
431
|
+
default: withCtx(function() {
|
|
432
|
+
return [createTextVNode(
|
|
433
|
+
toDisplayString(_ctx.t("ui.datepicker.now")),
|
|
434
|
+
1
|
|
435
|
+
/* TEXT */
|
|
436
|
+
)];
|
|
437
|
+
}),
|
|
438
|
+
_: 1
|
|
439
|
+
/* STABLE */
|
|
440
|
+
}, 8, ["size", "onClick"]), [[vShow, !["dates", "years"].includes(_ctx.state.selectionMode)]])];
|
|
441
|
+
}), renderSlot(_ctx.$slots, "confirm", {}, function() {
|
|
442
|
+
return [createVNode(_component_tiny_button, {
|
|
443
|
+
type: _ctx.state.buttonType,
|
|
444
|
+
size: _ctx.state.buttonSize,
|
|
445
|
+
class: "tiny-picker-panel__link-btn",
|
|
446
|
+
onClick: _ctx.confirm
|
|
447
|
+
}, {
|
|
448
|
+
default: withCtx(function() {
|
|
449
|
+
return [createTextVNode(
|
|
450
|
+
toDisplayString(_ctx.t("ui.datepicker.confirm")),
|
|
451
|
+
1
|
|
452
|
+
/* TEXT */
|
|
453
|
+
)];
|
|
454
|
+
}),
|
|
455
|
+
_: 1
|
|
456
|
+
/* STABLE */
|
|
457
|
+
}, 8, ["type", "size", "onClick"])];
|
|
458
|
+
})];
|
|
459
|
+
})],
|
|
452
460
|
4
|
|
453
461
|
/* STYLE */
|
|
454
462
|
)) : createCommentVNode("v-if", true)],
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-date-panel",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.28.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opentinyvue/vue-button": "~3.
|
|
12
|
-
"@opentinyvue/vue-common": "~3.
|
|
13
|
-
"@opentinyvue/vue-date-table": "~3.
|
|
14
|
-
"@opentinyvue/vue-directive": "~3.
|
|
15
|
-
"@opentinyvue/vue-icon": "~3.
|
|
16
|
-
"@opentinyvue/vue-input": "~3.
|
|
17
|
-
"@opentinyvue/vue-locale": "~3.
|
|
18
|
-
"@opentinyvue/vue-month-table": "~3.
|
|
19
|
-
"@opentinyvue/vue-popup": "~3.
|
|
20
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
21
|
-
"@opentinyvue/vue-theme": "~3.
|
|
22
|
-
"@opentinyvue/vue-time": "~3.
|
|
23
|
-
"@opentinyvue/vue-year-table": "~3.
|
|
11
|
+
"@opentinyvue/vue-button": "~3.28.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.28.0",
|
|
13
|
+
"@opentinyvue/vue-date-table": "~3.28.0",
|
|
14
|
+
"@opentinyvue/vue-directive": "~3.28.0",
|
|
15
|
+
"@opentinyvue/vue-icon": "~3.28.0",
|
|
16
|
+
"@opentinyvue/vue-input": "~3.28.0",
|
|
17
|
+
"@opentinyvue/vue-locale": "~3.28.0",
|
|
18
|
+
"@opentinyvue/vue-month-table": "~3.28.0",
|
|
19
|
+
"@opentinyvue/vue-popup": "~3.28.0",
|
|
20
|
+
"@opentinyvue/vue-renderless": "~3.28.0",
|
|
21
|
+
"@opentinyvue/vue-theme": "~3.28.0",
|
|
22
|
+
"@opentinyvue/vue-time": "~3.28.0",
|
|
23
|
+
"@opentinyvue/vue-year-table": "~3.28.0"
|
|
24
24
|
},
|
|
25
25
|
"types": "index.d.ts",
|
|
26
26
|
"scripts": {
|