@ccs-ui/rc-pro 1.1.21 → 1.1.22-beta-1
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/date-picker/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
17
|
import { DatePicker } from 'antd';
|
|
18
18
|
import dayjs from 'dayjs';
|
|
19
19
|
import _isArray from 'lodash/isArray';
|
|
20
|
-
import
|
|
20
|
+
import { useState } from 'react';
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
22
|
function CcsDatePicker(_ref) {
|
|
23
23
|
var value = _ref.value,
|
|
@@ -46,7 +46,9 @@ function RangePicker(_ref2) {
|
|
|
46
46
|
restProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
47
47
|
var _useState3 = useState(function () {
|
|
48
48
|
if (_isArray(value)) {
|
|
49
|
-
|
|
49
|
+
var st = value[0] ? dayjs(value[0]) : value[0];
|
|
50
|
+
var et = value[1] ? dayjs(value[1]) : value[1];
|
|
51
|
+
return [st, et];
|
|
50
52
|
}
|
|
51
53
|
}),
|
|
52
54
|
_useState4 = _slicedToArray(_useState3, 2),
|
package/es/dialog/HookModal.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FormProps } from 'antd';
|
|
3
3
|
import { DialogFormRef } from './form';
|
|
4
4
|
import { CcsDialogModal, CcsDialogModalProps } from './hook';
|
|
5
|
-
export declare const DialogSelfButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "
|
|
5
|
+
export declare const DialogSelfButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "auth" | "request" | "onRequestBefore" | "onCancel"> & {
|
|
6
6
|
formRef: React.RefObject<DialogFormRef>;
|
|
7
7
|
formInitialValues: FormProps['initialValues'];
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED