@opentinyvue/vue-date-panel 3.26.0 → 3.27.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.
Files changed (2) hide show
  1. package/lib/pc.js +42 -34
  2. 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, "default", {}, function() {
420
- return [withDirectives(createVNode(_component_tiny_button, {
421
- size: _ctx.state.buttonSize,
422
- type: "text",
423
- class: "tiny-picker-panel__link-btn",
424
- onClick: _ctx.changeToNow
425
- }, {
426
- default: withCtx(function() {
427
- return [createTextVNode(
428
- toDisplayString(_ctx.t("ui.datepicker.now")),
429
- 1
430
- /* TEXT */
431
- )];
432
- }),
433
- _: 1
434
- /* STABLE */
435
- }, 8, ["size", "onClick"]), [[vShow, !["dates", "years"].includes(_ctx.state.selectionMode)]])];
436
- }), createVNode(_component_tiny_button, {
437
- type: _ctx.state.buttonType,
438
- size: _ctx.state.buttonSize,
439
- class: "tiny-picker-panel__link-btn",
440
- onClick: _ctx.confirm
441
- }, {
442
- default: withCtx(function() {
443
- return [createTextVNode(
444
- toDisplayString(_ctx.t("ui.datepicker.confirm")),
445
- 1
446
- /* TEXT */
447
- )];
448
- }),
449
- _: 1
450
- /* STABLE */
451
- }, 8, ["type", "size", "onClick"])],
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.26.0",
4
+ "version": "3.27.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.26.0",
12
- "@opentinyvue/vue-common": "~3.26.0",
13
- "@opentinyvue/vue-date-table": "~3.26.0",
14
- "@opentinyvue/vue-directive": "~3.26.0",
15
- "@opentinyvue/vue-icon": "~3.26.0",
16
- "@opentinyvue/vue-input": "~3.26.0",
17
- "@opentinyvue/vue-locale": "~3.26.0",
18
- "@opentinyvue/vue-month-table": "~3.26.0",
19
- "@opentinyvue/vue-popup": "~3.26.0",
20
- "@opentinyvue/vue-renderless": "~3.26.0",
21
- "@opentinyvue/vue-theme": "~3.26.0",
22
- "@opentinyvue/vue-time": "~3.26.0",
23
- "@opentinyvue/vue-year-table": "~3.26.0"
11
+ "@opentinyvue/vue-button": "~3.27.0",
12
+ "@opentinyvue/vue-common": "~3.27.0",
13
+ "@opentinyvue/vue-date-table": "~3.27.0",
14
+ "@opentinyvue/vue-directive": "~3.27.0",
15
+ "@opentinyvue/vue-icon": "~3.27.0",
16
+ "@opentinyvue/vue-input": "~3.27.0",
17
+ "@opentinyvue/vue-locale": "~3.27.0",
18
+ "@opentinyvue/vue-month-table": "~3.27.0",
19
+ "@opentinyvue/vue-popup": "~3.27.0",
20
+ "@opentinyvue/vue-renderless": "~3.27.0",
21
+ "@opentinyvue/vue-theme": "~3.27.0",
22
+ "@opentinyvue/vue-time": "~3.27.0",
23
+ "@opentinyvue/vue-year-table": "~3.27.0"
24
24
  },
25
25
  "types": "index.d.ts",
26
26
  "scripts": {