@opentinyvue/vue-date-range 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.
- package/lib/pc.js +49 -32
- package/package.json +10 -10
package/lib/pc.js
CHANGED
|
@@ -367,39 +367,56 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
367
367
|
"format-weeks": _ctx.formatWeeks,
|
|
368
368
|
onPick: _ctx.handleRangePick,
|
|
369
369
|
readonly: _ctx.readonly
|
|
370
|
-
}, null, 8, ["date", "default-value", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "first-day-of-week", "show-week-number", "format-weeks", "onPick", "readonly"])])])])]), _ctx.state.showTime && !_ctx.readonly ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
371
|
-
|
|
372
|
-
class: "tiny-picker-panel__link-btn",
|
|
373
|
-
onClick: _ctx.handleClear
|
|
374
|
-
}, {
|
|
375
|
-
default: withCtx(function() {
|
|
376
|
-
return [createTextVNode(
|
|
377
|
-
toDisplayString(_ctx.t("ui.datepicker.clear")),
|
|
378
|
-
1
|
|
379
|
-
/* TEXT */
|
|
380
|
-
)];
|
|
381
|
-
}),
|
|
382
|
-
_: 1
|
|
383
|
-
/* STABLE */
|
|
384
|
-
}, 8, ["onClick"]), createVNode(_component_tiny_button, {
|
|
385
|
-
plain: _ctx.state.confirmButtonProps.plain,
|
|
386
|
-
type: _ctx.state.confirmButtonProps.type,
|
|
387
|
-
class: "tiny-picker-panel__link-btn",
|
|
388
|
-
disabled: _ctx.state.btnDisabled,
|
|
389
|
-
onClick: _cache[18] || (_cache[18] = function($event) {
|
|
370
|
+
}, null, 8, ["date", "default-value", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "first-day-of-week", "show-week-number", "format-weeks", "onPick", "readonly"])])])])]), _ctx.state.showTime && !_ctx.readonly || _ctx.$slots.footer || _ctx.$slots.now || _ctx.$slots.confirm ? (openBlock(), createElementBlock("div", _hoisted_23, [renderSlot(_ctx.$slots, "footer", {
|
|
371
|
+
confirm: function confirm() {
|
|
390
372
|
return _ctx.handleConfirm(false);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
373
|
+
},
|
|
374
|
+
clear: _ctx.handleClear
|
|
375
|
+
}, function() {
|
|
376
|
+
return [renderSlot(_ctx.$slots, "clear", {
|
|
377
|
+
clear: _ctx.handleClear
|
|
378
|
+
}, function() {
|
|
379
|
+
return [createVNode(_component_tiny_button, {
|
|
380
|
+
type: "text",
|
|
381
|
+
class: "tiny-picker-panel__link-btn",
|
|
382
|
+
onClick: _ctx.handleClear
|
|
383
|
+
}, {
|
|
384
|
+
default: withCtx(function() {
|
|
385
|
+
return [createTextVNode(
|
|
386
|
+
toDisplayString(_ctx.t("ui.datepicker.clear")),
|
|
387
|
+
1
|
|
388
|
+
/* TEXT */
|
|
389
|
+
)];
|
|
390
|
+
}),
|
|
391
|
+
_: 1
|
|
392
|
+
/* STABLE */
|
|
393
|
+
}, 8, ["onClick"])];
|
|
394
|
+
}), renderSlot(_ctx.$slots, "confirm", {
|
|
395
|
+
confirm: function confirm() {
|
|
396
|
+
return _ctx.handleConfirm(false);
|
|
397
|
+
}
|
|
398
|
+
}, function() {
|
|
399
|
+
return [createVNode(_component_tiny_button, {
|
|
400
|
+
plain: _ctx.state.confirmButtonProps.plain,
|
|
401
|
+
type: _ctx.state.confirmButtonProps.type,
|
|
402
|
+
class: "tiny-picker-panel__link-btn",
|
|
403
|
+
disabled: _ctx.state.btnDisabled,
|
|
404
|
+
onClick: _cache[18] || (_cache[18] = function($event) {
|
|
405
|
+
return _ctx.handleConfirm(false);
|
|
406
|
+
})
|
|
407
|
+
}, {
|
|
408
|
+
default: withCtx(function() {
|
|
409
|
+
return [createTextVNode(
|
|
410
|
+
toDisplayString(_ctx.t("ui.datepicker.confirm")),
|
|
411
|
+
1
|
|
412
|
+
/* TEXT */
|
|
413
|
+
)];
|
|
414
|
+
}),
|
|
415
|
+
_: 1
|
|
416
|
+
/* STABLE */
|
|
417
|
+
}, 8, ["plain", "type", "disabled"])];
|
|
418
|
+
})];
|
|
419
|
+
})])) : createCommentVNode("v-if", true)],
|
|
403
420
|
2
|
|
404
421
|
/* CLASS */
|
|
405
422
|
)];
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-date-range",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
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-renderless": "~3.
|
|
18
|
-
"@opentinyvue/vue-theme": "~3.
|
|
19
|
-
"@opentinyvue/vue-time": "~3.
|
|
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-renderless": "~3.27.0",
|
|
18
|
+
"@opentinyvue/vue-theme": "~3.27.0",
|
|
19
|
+
"@opentinyvue/vue-time": "~3.27.0"
|
|
20
20
|
},
|
|
21
21
|
"types": "index.d.ts",
|
|
22
22
|
"scripts": {
|