@opentinyvue/vue-date-panel 2.26.0 → 2.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.
Files changed (2) hide show
  1. package/lib/pc.js +36 -28
  2. package/package.json +14 -14
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 = {};
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-date-panel",
3
3
  "type": "module",
4
- "version": "2.26.0",
4
+ "version": "2.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": "~2.26.0",
12
- "@opentinyvue/vue-common": "~2.26.0",
13
- "@opentinyvue/vue-date-table": "~2.26.0",
14
- "@opentinyvue/vue-directive": "~2.26.0",
15
- "@opentinyvue/vue-icon": "~2.26.0",
16
- "@opentinyvue/vue-input": "~2.26.0",
17
- "@opentinyvue/vue-locale": "~2.26.0",
18
- "@opentinyvue/vue-month-table": "~2.26.0",
19
- "@opentinyvue/vue-popup": "~2.26.0",
20
- "@opentinyvue/vue-renderless": "~3.26.0",
21
- "@opentinyvue/vue-theme": "~3.26.0",
22
- "@opentinyvue/vue-time": "~2.26.0",
23
- "@opentinyvue/vue-year-table": "~2.26.0"
11
+ "@opentinyvue/vue-button": "~2.28.0",
12
+ "@opentinyvue/vue-common": "~2.28.0",
13
+ "@opentinyvue/vue-date-table": "~2.28.0",
14
+ "@opentinyvue/vue-directive": "~2.28.0",
15
+ "@opentinyvue/vue-icon": "~2.28.0",
16
+ "@opentinyvue/vue-input": "~2.28.0",
17
+ "@opentinyvue/vue-locale": "~2.28.0",
18
+ "@opentinyvue/vue-month-table": "~2.28.0",
19
+ "@opentinyvue/vue-popup": "~2.28.0",
20
+ "@opentinyvue/vue-renderless": "~3.28.0",
21
+ "@opentinyvue/vue-theme": "~3.28.0",
22
+ "@opentinyvue/vue-time": "~2.28.0",
23
+ "@opentinyvue/vue-year-table": "~2.28.0"
24
24
  },
25
25
  "types": "index.d.ts",
26
26
  "scripts": {