ywana-core8 0.0.941 → 0.0.942
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/dist/index.modern.js
CHANGED
@@ -3227,12 +3227,14 @@ var Calendar = function Calendar(props) {
|
|
3227
3227
|
var _props$events = props.events,
|
3228
3228
|
events = _props$events === void 0 ? [] : _props$events,
|
3229
3229
|
children = props.children,
|
3230
|
-
onChange = props.onChange
|
3230
|
+
onChange = props.onChange,
|
3231
|
+
onRange = props.onRange;
|
3231
3232
|
var _useState = useState(props.range || "year"),
|
3232
3233
|
range = _useState[0],
|
3233
3234
|
setRange = _useState[1];
|
3234
3235
|
function onChangeRange(range) {
|
3235
3236
|
setRange(range);
|
3237
|
+
if (onRange) onRange(range);
|
3236
3238
|
}
|
3237
3239
|
return /*#__PURE__*/React.createElement("div", {
|
3238
3240
|
className: "calendar"
|