@opentinyvue/vue-date-panel 2.25.0 → 2.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.
@@ -510,8 +510,8 @@ function __vue2_injectStyles(context) {
510
510
  this[o] = __cssModules[o];
511
511
  }
512
512
  }
513
- var mobileFirst = /* @__PURE__ */ function() {
513
+ var mobileFirst = /* @__PURE__ */ (function() {
514
514
  return __component__.exports;
515
- }();
515
+ })();
516
516
 
517
517
  export { mobileFirst as default };
package/lib/pc.js CHANGED
@@ -444,38 +444,46 @@ var render = function render2() {
444
444
  }
445
445
  }
446
446
  }, [_vm._v(" " + _vm._s(tz.name) + " ")]);
447
- }), 0)])])], 1)], 1) : _vm._e(), _vm.state.isShowFooter ? _c("div", {
447
+ }), 0)])])], 1)], 1) : _vm._e(), _vm.state.isShowFooter || _vm.$slots.footer || _vm.$slots.now || _vm.$slots.confirm ? _c("div", {
448
448
  staticClass: "tiny-picker-panel__footer",
449
449
  style: {
450
450
  justifyContent: !["dates", "years"].includes(_vm.state.selectionMode) ? "space-between" : "right"
451
451
  }
452
- }, [_vm._t("default", function() {
453
- return [_c("tiny-button", {
454
- directives: [{
455
- name: "show",
456
- rawName: "v-show",
457
- value: !["dates", "years"].includes(_vm.state.selectionMode),
458
- expression: "!['dates', 'years'].includes(state.selectionMode)"
459
- }],
460
- staticClass: "tiny-picker-panel__link-btn",
461
- attrs: {
462
- "size": _vm.state.buttonSize,
463
- "type": "text"
464
- },
465
- on: {
466
- "click": _vm.changeToNow
467
- }
468
- }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.now")) + " ")])];
469
- }), _c("tiny-button", {
470
- staticClass: "tiny-picker-panel__link-btn",
471
- attrs: {
472
- "type": _vm.state.buttonType,
473
- "size": _vm.state.buttonSize
474
- },
475
- on: {
476
- "click": _vm.confirm
477
- }
478
- }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.confirm")) + " ")])], 2) : _vm._e()])]);
452
+ }, [_vm._t("footer", function() {
453
+ return [_vm._t("now", function() {
454
+ return [_c("tiny-button", {
455
+ directives: [{
456
+ name: "show",
457
+ rawName: "v-show",
458
+ value: !["dates", "years"].includes(_vm.state.selectionMode),
459
+ expression: "!['dates', 'years'].includes(state.selectionMode)"
460
+ }],
461
+ staticClass: "tiny-picker-panel__link-btn",
462
+ attrs: {
463
+ "size": _vm.state.buttonSize,
464
+ "type": "text"
465
+ },
466
+ on: {
467
+ "click": _vm.changeToNow
468
+ }
469
+ }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.now")) + " ")])];
470
+ }, {
471
+ "changeToNow": _vm.changeToNow
472
+ }), _vm._t("confirm", function() {
473
+ return [_c("tiny-button", {
474
+ staticClass: "tiny-picker-panel__link-btn",
475
+ attrs: {
476
+ "type": _vm.state.buttonType,
477
+ "size": _vm.state.buttonSize
478
+ },
479
+ on: {
480
+ "click": _vm.confirm
481
+ }
482
+ }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.confirm")) + " ")])];
483
+ })];
484
+ }, {
485
+ "confirm": _vm.confirm
486
+ })], 2) : _vm._e()])]);
479
487
  };
480
488
  var staticRenderFns = [];
481
489
  var __cssModules = {};
@@ -485,8 +493,8 @@ function __vue2_injectStyles(context) {
485
493
  this[o] = __cssModules[o];
486
494
  }
487
495
  }
488
- var pc = /* @__PURE__ */ function() {
496
+ var pc = /* @__PURE__ */ (function() {
489
497
  return __component__.exports;
490
- }();
498
+ })();
491
499
 
492
500
  export { pc as default };
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-date-panel",
3
3
  "type": "module",
4
- "version": "2.25.0",
4
+ "version": "2.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": "~2.25.0",
12
- "@opentinyvue/vue-common": "~2.25.0",
13
- "@opentinyvue/vue-date-table": "~2.25.0",
14
- "@opentinyvue/vue-directive": "~2.25.0",
15
- "@opentinyvue/vue-icon": "~2.25.0",
16
- "@opentinyvue/vue-input": "~2.25.0",
17
- "@opentinyvue/vue-locale": "~2.25.0",
18
- "@opentinyvue/vue-month-table": "~2.25.0",
19
- "@opentinyvue/vue-popup": "~2.25.0",
20
- "@opentinyvue/vue-renderless": "~3.25.0",
21
- "@opentinyvue/vue-theme": "~3.25.0",
22
- "@opentinyvue/vue-time": "~2.25.0",
23
- "@opentinyvue/vue-year-table": "~2.25.0"
11
+ "@opentinyvue/vue-button": "~2.27.0",
12
+ "@opentinyvue/vue-common": "~2.27.0",
13
+ "@opentinyvue/vue-date-table": "~2.27.0",
14
+ "@opentinyvue/vue-directive": "~2.27.0",
15
+ "@opentinyvue/vue-icon": "~2.27.0",
16
+ "@opentinyvue/vue-input": "~2.27.0",
17
+ "@opentinyvue/vue-locale": "~2.27.0",
18
+ "@opentinyvue/vue-month-table": "~2.27.0",
19
+ "@opentinyvue/vue-popup": "~2.27.0",
20
+ "@opentinyvue/vue-renderless": "~3.27.0",
21
+ "@opentinyvue/vue-theme": "~3.27.0",
22
+ "@opentinyvue/vue-time": "~2.27.0",
23
+ "@opentinyvue/vue-year-table": "~2.27.0"
24
24
  },
25
25
  "types": "index.d.ts",
26
26
  "scripts": {