@pisell/date-picker 1.0.26 → 1.0.28
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/es/ActionBar/index.d.ts +1 -0
- package/es/ActionBar/index.js +4 -3
- package/es/PisellDateRangePicker/index.js +2 -1
- package/es/PisellDateRangePicker/index.less +1 -1
- package/lib/ActionBar/index.d.ts +1 -0
- package/lib/ActionBar/index.js +2 -2
- package/lib/PisellDateRangePicker/index.js +2 -1
- package/lib/PisellDateRangePicker/index.less +1 -1
- package/package.json +1 -1
package/es/ActionBar/index.d.ts
CHANGED
package/es/ActionBar/index.js
CHANGED
|
@@ -23,9 +23,10 @@ var ActionBar = function ActionBar(props) {
|
|
|
23
23
|
onCancel = props.onCancel,
|
|
24
24
|
onOk = props.onOk,
|
|
25
25
|
onChange = props.onChange,
|
|
26
|
-
showTime = props.showTime
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
showTime = props.showTime,
|
|
27
|
+
_props$value = props.value,
|
|
28
|
+
value = _props$value === void 0 ? [] : _props$value;
|
|
29
|
+
var slotProps = ownerState.slotProps;
|
|
29
30
|
var _ref = (slotProps === null || slotProps === void 0 ? void 0 : slotProps.shortcuts) || {},
|
|
30
31
|
items = _ref.items;
|
|
31
32
|
var hasShortcuts = !!items.length;
|
|
@@ -143,7 +143,8 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
|
|
|
143
143
|
onOk: handleOk,
|
|
144
144
|
onCancel: handleClose,
|
|
145
145
|
showTime: showTime,
|
|
146
|
-
onChange: handleChange
|
|
146
|
+
onChange: handleChange,
|
|
147
|
+
value: _value
|
|
147
148
|
},
|
|
148
149
|
field: {
|
|
149
150
|
size: "small",
|
package/lib/ActionBar/index.d.ts
CHANGED
package/lib/ActionBar/index.js
CHANGED
|
@@ -40,8 +40,8 @@ var import_dayjs = __toESM(require("dayjs"));
|
|
|
40
40
|
var import_locales = require("../locales");
|
|
41
41
|
var import_index = require("./index.less");
|
|
42
42
|
var ActionBar = (props) => {
|
|
43
|
-
const { ownerState, onCancel, onOk, onChange, showTime } = props;
|
|
44
|
-
const {
|
|
43
|
+
const { ownerState, onCancel, onOk, onChange, showTime, value = [] } = props;
|
|
44
|
+
const { slotProps } = ownerState;
|
|
45
45
|
const { items } = (slotProps == null ? void 0 : slotProps.shortcuts) || {};
|
|
46
46
|
const hasShortcuts = !!items.length;
|
|
47
47
|
const handleStartChange = (val) => {
|