@opentinyvue/vue-date-range 2.26.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.
Files changed (2) hide show
  1. package/lib/pc.js +37 -20
  2. package/package.json +10 -10
package/lib/pc.js CHANGED
@@ -362,29 +362,46 @@ var render = function render2() {
362
362
  "changerange": _vm.handleChangeRange,
363
363
  "pick": _vm.handleRangePick
364
364
  }
365
- })], 1)])])], 2), _vm.state.showTime && !_vm.readonly ? _c("div", {
365
+ })], 1)])])], 2), _vm.state.showTime && !_vm.readonly || _vm.$slots.footer || _vm.$slots.now || _vm.$slots.confirm ? _c("div", {
366
366
  staticClass: "tiny-picker-panel__footer"
367
- }, [_c("tiny-button", {
368
- staticClass: "tiny-picker-panel__link-btn",
369
- attrs: {
370
- "type": "text"
371
- },
372
- on: {
373
- "click": _vm.handleClear
374
- }
375
- }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.clear")) + " ")]), _c("tiny-button", {
376
- staticClass: "tiny-picker-panel__link-btn",
377
- attrs: {
378
- "plain": _vm.state.confirmButtonProps.plain,
379
- "type": _vm.state.confirmButtonProps.type,
380
- "disabled": _vm.state.btnDisabled
381
- },
382
- on: {
383
- "click": function click($event) {
367
+ }, [_vm._t("footer", function() {
368
+ return [_vm._t("clear", function() {
369
+ return [_c("tiny-button", {
370
+ staticClass: "tiny-picker-panel__link-btn",
371
+ attrs: {
372
+ "type": "text"
373
+ },
374
+ on: {
375
+ "click": _vm.handleClear
376
+ }
377
+ }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.clear")) + " ")])];
378
+ }, {
379
+ "clear": _vm.handleClear
380
+ }), _vm._t("confirm", function() {
381
+ return [_c("tiny-button", {
382
+ staticClass: "tiny-picker-panel__link-btn",
383
+ attrs: {
384
+ "plain": _vm.state.confirmButtonProps.plain,
385
+ "type": _vm.state.confirmButtonProps.type,
386
+ "disabled": _vm.state.btnDisabled
387
+ },
388
+ on: {
389
+ "click": function click($event) {
390
+ return _vm.handleConfirm(false);
391
+ }
392
+ }
393
+ }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.confirm")) + " ")])];
394
+ }, {
395
+ "confirm": function confirm() {
384
396
  return _vm.handleConfirm(false);
385
397
  }
386
- }
387
- }, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.confirm")) + " ")])], 1) : _vm._e()])]);
398
+ })];
399
+ }, {
400
+ "confirm": function confirm() {
401
+ return _vm.handleConfirm(false);
402
+ },
403
+ "clear": _vm.handleClear
404
+ })], 2) : _vm._e()])]);
388
405
  };
389
406
  var staticRenderFns = [];
390
407
  var __cssModules = {};
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-date-range",
3
3
  "type": "module",
4
- "version": "2.26.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.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-renderless": "~3.26.0",
18
- "@opentinyvue/vue-theme": "~3.26.0",
19
- "@opentinyvue/vue-time": "~2.26.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-renderless": "~3.27.0",
18
+ "@opentinyvue/vue-theme": "~3.27.0",
19
+ "@opentinyvue/vue-time": "~2.27.0"
20
20
  },
21
21
  "types": "index.d.ts",
22
22
  "scripts": {