@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.
@@ -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 React, { useState } from 'react';
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
- return [dayjs(value[0]), dayjs(value[1])];
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),
@@ -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, "request" | "auth" | "onRequestBefore" | "onCancel"> & {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.21",
4
- "description": "ProTable在抽屉中吸顶异常;table排序参数修改保持与后端一致;table添加序号",
3
+ "version": "1.1.22-beta-1",
4
+ "description": "CcsDatePicker.RangePicker参数bug;",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Hong",