revdev-components 0.274.0 → 0.275.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.
|
@@ -3,8 +3,8 @@ import { DatePickerProps } from "antd";
|
|
|
3
3
|
import { FormLineProps } from "../line";
|
|
4
4
|
interface ControlProps extends Omit<DatePickerProps, "value" | "onChange" | "format"> {
|
|
5
5
|
format: string;
|
|
6
|
-
value?: string
|
|
7
|
-
onChange?: (value
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value?: string) => void;
|
|
8
8
|
}
|
|
9
9
|
interface Props extends FormLineProps, Omit<ControlProps, "name" | "value" | "onChange"> {
|
|
10
10
|
}
|
package/build/index.js
CHANGED
|
@@ -5453,7 +5453,7 @@ var Control = function (_a) {
|
|
|
5453
5453
|
onChange === null || onChange === void 0 ? void 0 : onChange(date.format(format));
|
|
5454
5454
|
}
|
|
5455
5455
|
else {
|
|
5456
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
5456
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(undefined);
|
|
5457
5457
|
}
|
|
5458
5458
|
}, [onChange, format]);
|
|
5459
5459
|
var currentValue = React.useMemo(function () {
|