@zat-design/sisyphus-react 3.6.5-beta.2 → 3.6.5-beta.4
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/ProDownload/index.d.ts +1 -1
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEnum/components/Group.d.ts +1 -1
- package/es/ProEnum/components/Tag.d.ts +1 -1
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/utils/eventCenter.js +1 -2
- package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/es/ProForm/components/base/Input/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/es/ProForm/index.d.ts +3 -2
- package/es/ProForm/index.js +3 -17
- package/es/ProForm/utils/useWatch.d.ts +7 -0
- package/es/ProForm/utils/useWatch.js +80 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Step/index.d.ts +1 -1
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/es/ProTable/components/TableResizable/index.d.ts +1 -1
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTabs/components/Card/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProTooltip/index.d.ts +1 -1
- package/es/ProTree/components/CloseIcon.d.ts +1 -2
- package/es/ProTree/components/List.d.ts +1 -1
- package/es/ProTree/components/ProTree.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +1 -1
- package/es/ProTree/index.d.ts +1 -1
- package/es/ProTreeModal/components/Cascader.d.ts +1 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/index.d.ts +1 -1
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/lib/ProDownload/index.d.ts +1 -1
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEnum/components/Group.d.ts +1 -1
- package/lib/ProEnum/components/Tag.d.ts +1 -1
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/utils/eventCenter.js +1 -2
- package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/lib/ProForm/components/base/Input/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/lib/ProForm/index.d.ts +3 -2
- package/lib/ProForm/index.js +2 -16
- package/lib/ProForm/utils/useWatch.d.ts +7 -0
- package/lib/ProForm/utils/useWatch.js +90 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/index.d.ts +4 -4
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/lib/ProSelect/index.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Step/index.d.ts +1 -1
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTabs/components/Card/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProTooltip/index.d.ts +1 -1
- package/lib/ProTree/components/CloseIcon.d.ts +1 -2
- package/lib/ProTree/components/List.d.ts +1 -1
- package/lib/ProTree/components/ProTree.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +1 -1
- package/lib/ProTree/index.d.ts +1 -1
- package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
- package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
- package/lib/ProTreeModal/index.d.ts +1 -1
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/package.json +1 -1
    
        package/lib/ProEnum/index.d.ts
    CHANGED
    
    | @@ -2,8 +2,8 @@ import useEnum from './hooks/useEnum'; | |
| 2 2 | 
             
            import { ProEnumProps } from './propsType';
         | 
| 3 3 | 
             
            import './style/index.less';
         | 
| 4 4 | 
             
            declare const ProEnum: {
         | 
| 5 | 
            -
                (props: ProEnumProps): JSX.Element;
         | 
| 6 | 
            -
                getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
         | 
| 5 | 
            +
                (props: ProEnumProps): import("react/jsx-runtime").JSX.Element;
         | 
| 6 | 
            +
                getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
         | 
| 7 7 | 
             
                useEnum: typeof useEnum;
         | 
| 8 8 | 
             
            };
         | 
| 9 9 | 
             
            export default ProEnum;
         | 
| @@ -10,7 +10,7 @@ var SimpleEventCenter = /*#__PURE__*/function () { | |
| 10 10 | 
             
                this.events = void 0;
         | 
| 11 11 | 
             
                this.events = new Map();
         | 
| 12 12 | 
             
              }
         | 
| 13 | 
            -
              (0, _createClass2.default)(SimpleEventCenter, [{
         | 
| 13 | 
            +
              return (0, _createClass2.default)(SimpleEventCenter, [{
         | 
| 14 14 | 
             
                key: "subscribe",
         | 
| 15 15 | 
             
                value: function subscribe(eventName, callback) {
         | 
| 16 16 | 
             
                  if (!this.events.has(eventName)) {
         | 
| @@ -37,6 +37,5 @@ var SimpleEventCenter = /*#__PURE__*/function () { | |
| 37 37 | 
             
                  }
         | 
| 38 38 | 
             
                }
         | 
| 39 39 | 
             
              }]);
         | 
| 40 | 
            -
              return SimpleEventCenter;
         | 
| 41 40 | 
             
            }(); // 将 eventCenter 实例添加到 window 对象上
         | 
| 42 41 | 
             
            window.eventCenter = new SimpleEventCenter();
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
         | 
| 1 | 
            +
            declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default getEnumLabel;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            /// <reference types="react" />
         | 
| 2 2 | 
             
            import { ProCascaderProps } from './propsType';
         | 
| 3 | 
            -
            declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => JSX.Element>;
         | 
| 3 | 
            +
            declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 4 4 | 
             
            export default _default;
         | 
| @@ -12,5 +12,5 @@ export interface InputRangeProps { | |
| 12 12 | 
             
                isPositiveInteger?: boolean;
         | 
| 13 13 | 
             
                precision?: number;
         | 
| 14 14 | 
             
            }
         | 
| 15 | 
            -
            declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
         | 
| 15 | 
            +
            declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 16 16 | 
             
            export default InputRange;
         | 
| @@ -1,4 +1,3 @@ | |
| 1 | 
            -
            /// <reference types="react" />
         | 
| 2 1 | 
             
            import { ProAddressPropsType } from './propsTypes';
         | 
| 3 2 | 
             
            export declare const transferAddressInfoToRegion: () => {
         | 
| 4 3 | 
             
                normalize: (value: any) => {
         | 
| @@ -24,5 +23,5 @@ export declare const transferAddressInfoToRegion: () => { | |
| 24 23 | 
             
                    };
         | 
| 25 24 | 
             
                };
         | 
| 26 25 | 
             
            };
         | 
| 27 | 
            -
            export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
         | 
| 26 | 
            +
            export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
         | 
| 28 27 | 
             
            export default ProAddress;
         | 
| @@ -1,3 +1,2 @@ | |
| 1 | 
            -
            /// <reference types="react" />
         | 
| 2 1 | 
             
            import { ProRangeBoxPropsType } from './propsType';
         | 
| 3 | 
            -
            export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
         | 
| 2 | 
            +
            export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
         | 
    
        package/lib/ProForm/index.d.ts
    CHANGED
    
    | @@ -1,11 +1,12 @@ | |
| 1 | 
            -
            import {  | 
| 1 | 
            +
            import { FormInstance } from 'antd';
         | 
| 2 2 | 
             
            import React, { ForwardRefRenderFunction } from 'react';
         | 
| 3 3 | 
             
            import { FormProviderProps } from 'antd/es/form/context';
         | 
| 4 4 | 
             
            import { ProFormProps } from './propsType';
         | 
| 5 5 | 
             
            import { useForm } from './utils/useForm';
         | 
| 6 | 
            +
            import useWatch from './utils/useWatch';
         | 
| 6 7 | 
             
            interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormProps<T>> {
         | 
| 7 8 | 
             
                useForm: typeof useForm;
         | 
| 8 | 
            -
                useWatch: typeof  | 
| 9 | 
            +
                useWatch: typeof useWatch;
         | 
| 9 10 | 
             
                [key: string]: any;
         | 
| 10 11 | 
             
            }
         | 
| 11 12 | 
             
            declare const ProFormForward: IProForm;
         | 
    
        package/lib/ProForm/index.js
    CHANGED
    
    | @@ -24,6 +24,7 @@ var _index = require("./utils/index"); | |
| 24 24 | 
             
            var _useForm3 = require("./utils/useForm");
         | 
| 25 25 | 
             
            var _useFieldProps = require("./utils/useFieldProps");
         | 
| 26 26 | 
             
            var _locale = _interopRequireDefault(require("../locale"));
         | 
| 27 | 
            +
            var _useWatch = _interopRequireDefault(require("./utils/useWatch"));
         | 
| 27 28 | 
             
            var _excluded = ["mode", "span", "disabled", "isView", "columns", "footer", "onOk", "okText", "onCancel", "confirmLoading", "cancelText", "form", "children", "rowProps", "className", "expand", "expandOpen", "expandOpenChange", "viewEmpty", "labelAlign", "labelWidth", "onValuesChange", "onFinish", "originalValues", "submitOnEnter", "clearNotShow", "initialValues", "requiredOnView", "formId", "required", "originalDiffTip", "formKey", "globalControl", "scrollToError", "optimize"];
         | 
| 28 29 | 
             
            var ProForm = function ProForm(props, ref) {
         | 
| 29 30 | 
             
              var _forms$formKey, _localStorage, _ref;
         | 
| @@ -274,22 +275,7 @@ var ProForm = function ProForm(props, ref) { | |
| 274 275 | 
             
            // @ts-ignore
         | 
| 275 276 | 
             
            var ProFormForward = /*#__PURE__*/(0, _react.forwardRef)(ProForm);
         | 
| 276 277 | 
             
            ProFormForward.useForm = _useForm3.useForm;
         | 
| 277 | 
            -
            ProFormForward.useWatch =  | 
| 278 | 
            -
              if ((0, _lodash.isString)(watchValue)) {
         | 
| 279 | 
            -
                var watchValues = [watchValue];
         | 
| 280 | 
            -
                watchValues.forEach(function (item) {
         | 
| 281 | 
            -
                  _antd.Form.useWatch(item, form);
         | 
| 282 | 
            -
                });
         | 
| 283 | 
            -
                return form.getFieldsValue(watchValues);
         | 
| 284 | 
            -
              }
         | 
| 285 | 
            -
              if (watchValue.length) {
         | 
| 286 | 
            -
                watchValue.forEach(function (item) {
         | 
| 287 | 
            -
                  _antd.Form.useWatch(item, form);
         | 
| 288 | 
            -
                });
         | 
| 289 | 
            -
                return form.getFieldsValue(watchValue);
         | 
| 290 | 
            -
              }
         | 
| 291 | 
            -
              return _antd.Form.useWatch([], form);
         | 
| 292 | 
            -
            };
         | 
| 278 | 
            +
            ProFormForward.useWatch = _useWatch.default;
         | 
| 293 279 | 
             
            var ProFormProvider = exports.ProFormProvider = function ProFormProvider(props) {
         | 
| 294 280 | 
             
              var onFormChange = props.onFormChange,
         | 
| 295 281 | 
             
                onFormFinish = props.onFormFinish,
         | 
| @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            import { InternalNamePath, FormInstance, NamePath } from 'rc-field-form/es/interface';
         | 
| 2 | 
            +
            export declare function toArray<T>(value?: T | T[] | null): T[];
         | 
| 3 | 
            +
            export declare function getNamePath(path: NamePath | null): InternalNamePath;
         | 
| 4 | 
            +
            export declare function stringify(value: any): string | number;
         | 
| 5 | 
            +
            declare function useWatch(dependencies: string, form?: FormInstance, wait?: number): any;
         | 
| 6 | 
            +
            declare function useWatch(dependencies: NamePath[], form?: FormInstance, wait?: number): any[];
         | 
| 7 | 
            +
            export default useWatch;
         | 
| @@ -0,0 +1,90 @@ | |
| 1 | 
            +
            "use strict";
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
         | 
| 4 | 
            +
            Object.defineProperty(exports, "__esModule", {
         | 
| 5 | 
            +
              value: true
         | 
| 6 | 
            +
            });
         | 
| 7 | 
            +
            exports.default = void 0;
         | 
| 8 | 
            +
            exports.getNamePath = getNamePath;
         | 
| 9 | 
            +
            exports.stringify = stringify;
         | 
| 10 | 
            +
            exports.toArray = toArray;
         | 
| 11 | 
            +
            var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
         | 
| 12 | 
            +
            var _lodash = require("lodash");
         | 
| 13 | 
            +
            var _FieldContext = require("rc-field-form/es/FieldContext");
         | 
| 14 | 
            +
            var _warning = _interopRequireDefault(require("rc-util/lib/warning"));
         | 
| 15 | 
            +
            var _react = require("react");
         | 
| 16 | 
            +
            function toArray(value) {
         | 
| 17 | 
            +
              if (value === undefined || value === null) {
         | 
| 18 | 
            +
                return [];
         | 
| 19 | 
            +
              }
         | 
| 20 | 
            +
              return Array.isArray(value) ? value : [value];
         | 
| 21 | 
            +
            }
         | 
| 22 | 
            +
            function getNamePath(path) {
         | 
| 23 | 
            +
              return toArray(path);
         | 
| 24 | 
            +
            }
         | 
| 25 | 
            +
            function stringify(value) {
         | 
| 26 | 
            +
              try {
         | 
| 27 | 
            +
                return JSON.stringify(value);
         | 
| 28 | 
            +
              } catch (err) {
         | 
| 29 | 
            +
                return Math.random();
         | 
| 30 | 
            +
              }
         | 
| 31 | 
            +
            }
         | 
| 32 | 
            +
            // 创建之后namepath就不可变
         | 
| 33 | 
            +
            var useWatchWarning = process.env.NODE_ENV !== 'production' ? function (namePath) {
         | 
| 34 | 
            +
              var fullyStr = JSON.stringify(namePath);
         | 
| 35 | 
            +
              var nameStrRef = (0, _react.useRef)(fullyStr);
         | 
| 36 | 
            +
              (0, _warning.default)(nameStrRef.current === fullyStr, '`useWatch` is not support dynamic `namePath`. Please provide static instead.');
         | 
| 37 | 
            +
            } : function () {};
         | 
| 38 | 
            +
            function useWatch(dependencies, form, wait) {
         | 
| 39 | 
            +
              var _useState = (0, _react.useState)(typeof dependencies === 'string' ? undefined : []),
         | 
| 40 | 
            +
                _useState2 = (0, _slicedToArray2.default)(_useState, 2),
         | 
| 41 | 
            +
                value = _useState2[0],
         | 
| 42 | 
            +
                setValue = _useState2[1];
         | 
| 43 | 
            +
              var valueStr = (0, _react.useMemo)(function () {
         | 
| 44 | 
            +
                return stringify(value);
         | 
| 45 | 
            +
              }, [value]);
         | 
| 46 | 
            +
              var valueStrRef = (0, _react.useRef)(valueStr);
         | 
| 47 | 
            +
              valueStrRef.current = valueStr;
         | 
| 48 | 
            +
              var formInstance = form;
         | 
| 49 | 
            +
              var isValidForm = formInstance && formInstance._init;
         | 
| 50 | 
            +
              var _dependencies = typeof dependencies === 'string' ? [dependencies] : dependencies;
         | 
| 51 | 
            +
              var namePaths = _dependencies === null || _dependencies === void 0 ? void 0 : _dependencies.map(function (item) {
         | 
| 52 | 
            +
                return getNamePath(item);
         | 
| 53 | 
            +
              });
         | 
| 54 | 
            +
              var namePathsRef = (0, _react.useRef)(namePaths);
         | 
| 55 | 
            +
              namePathsRef.current = namePaths;
         | 
| 56 | 
            +
              useWatchWarning(namePaths);
         | 
| 57 | 
            +
              (0, _react.useEffect)(function () {
         | 
| 58 | 
            +
                if (!isValidForm) return;
         | 
| 59 | 
            +
                var getFieldsValue = formInstance.getFieldsValue,
         | 
| 60 | 
            +
                  getInternalHooks = formInstance.getInternalHooks;
         | 
| 61 | 
            +
                var _getInternalHooks = getInternalHooks(_FieldContext.HOOK_MARK),
         | 
| 62 | 
            +
                  registerWatch = _getInternalHooks.registerWatch;
         | 
| 63 | 
            +
                var callback = function callback(store) {
         | 
| 64 | 
            +
                  var newValue = namePathsRef.current.map(function (namePath) {
         | 
| 65 | 
            +
                    return (0, _lodash.get)(store, namePath);
         | 
| 66 | 
            +
                  });
         | 
| 67 | 
            +
                  var nextValueStr = stringify(newValue);
         | 
| 68 | 
            +
                  // Compare stringify in case it's nest object
         | 
| 69 | 
            +
                  if (valueStrRef.current !== nextValueStr) {
         | 
| 70 | 
            +
                    valueStrRef.current = nextValueStr;
         | 
| 71 | 
            +
                    setValue(newValue);
         | 
| 72 | 
            +
                  }
         | 
| 73 | 
            +
                };
         | 
| 74 | 
            +
                // 增加防抖
         | 
| 75 | 
            +
                if (wait) {
         | 
| 76 | 
            +
                  callback = (0, _lodash.debounce)(callback, wait);
         | 
| 77 | 
            +
                }
         | 
| 78 | 
            +
                var cancelRegister = registerWatch(callback);
         | 
| 79 | 
            +
                var initialValue = namePathsRef.current.map(function (namePath) {
         | 
| 80 | 
            +
                  return (0, _lodash.get)(getFieldsValue(), namePath);
         | 
| 81 | 
            +
                });
         | 
| 82 | 
            +
                setValue(initialValue);
         | 
| 83 | 
            +
                return cancelRegister;
         | 
| 84 | 
            +
              },
         | 
| 85 | 
            +
              // We do not need re-register since namePath content is the same
         | 
| 86 | 
            +
              // eslint-disable-next-line react-hooks/exhaustive-deps
         | 
| 87 | 
            +
              [isValidForm]);
         | 
| 88 | 
            +
              return value;
         | 
| 89 | 
            +
            }
         | 
| 90 | 
            +
            var _default = exports.default = useWatch;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            /// <reference types="react" />
         | 
| 2 2 | 
             
            import { ProFooterProps } from './PropTypes';
         | 
| 3 | 
            -
            declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
         | 
| 3 | 
            +
            declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 4 4 | 
             
            export default _default;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import type { ProHeaderProps } from './PropTypes';
         | 
| 3 | 
            -
            declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
         | 
| 3 | 
            +
            declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 4 4 | 
             
            export default _default;
         | 
    
        package/lib/ProLayout/index.d.ts
    CHANGED
    
    | @@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{ | |
| 5 5 | 
             
                onSelected: (params: any) => void;
         | 
| 6 6 | 
             
            }>;
         | 
| 7 7 | 
             
            declare const ProLayout: {
         | 
| 8 | 
            -
                (props: ProLayoutProps): JSX.Element;
         | 
| 8 | 
            +
                (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
         | 
| 9 9 | 
             
                defaultProps: {
         | 
| 10 10 | 
             
                    menus: any[];
         | 
| 11 11 | 
             
                    iconfontUrl: string;
         | 
| @@ -17,8 +17,8 @@ declare const ProLayout: { | |
| 17 17 | 
             
                    headerHeight: number;
         | 
| 18 18 | 
             
                    contentStyle: {};
         | 
| 19 19 | 
             
                };
         | 
| 20 | 
            -
                ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
         | 
| 21 | 
            -
                ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
         | 
| 22 | 
            -
                ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
         | 
| 20 | 
            +
                ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 21 | 
            +
                ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 22 | 
            +
                ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 23 23 | 
             
            };
         | 
| 24 24 | 
             
            export default ProLayout;
         | 
    
        package/lib/ProSelect/index.d.ts
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import { PropSelectProps, ProSelectAction } from './propsType';
         | 
| 3 3 | 
             
            import './index.less';
         | 
| 4 | 
            -
            export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
         | 
| 4 | 
            +
            export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
         | 
| 6 6 | 
             
            export default _default;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            export declare const MenuItem: (props: any) => JSX.Element;
         | 
| 1 | 
            +
            export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default MenuItem;
         | 
| @@ -1,3 +1,3 @@ | |
| 1 1 | 
             
            import { ProStepItem } from '../../propsType';
         | 
| 2 | 
            -
            declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
         | 
| 2 | 
            +
            declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
         | 
| 3 3 | 
             
            export default _default;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { ProStepPropsType } from '../../propsType';
         | 
| 2 2 | 
             
            export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
         | 
| 3 3 | 
             
                errorCollection: object;
         | 
| 4 | 
            -
            }) => JSX.Element;
         | 
| 4 | 
            +
            }) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            export default Step;
         | 
    
        package/lib/ProStep/index.d.ts
    CHANGED
    
    | @@ -4,9 +4,9 @@ import './style/index.less'; | |
| 4 4 | 
             
            export declare const ProStepContext: import("react").Context<any>;
         | 
| 5 5 | 
             
            export declare const useStep: () => any;
         | 
| 6 6 | 
             
            declare const ProStep: {
         | 
| 7 | 
            -
                ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
         | 
| 7 | 
            +
                ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
         | 
| 8 8 | 
             
                useStep: () => any;
         | 
| 9 | 
            -
                Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
         | 
| 9 | 
            +
                Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
         | 
| 10 10 | 
             
                Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
         | 
| 11 11 | 
             
            };
         | 
| 12 12 | 
             
            export default ProStep;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const ResizableLine: () => JSX.Element;
         | 
| 1 | 
            +
            declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default ResizableLine;
         | 
    
        package/lib/ProTable/index.d.ts
    CHANGED
    
    | @@ -5,7 +5,7 @@ export declare const defaultPage: { | |
| 5 5 | 
             
                pageNum: number;
         | 
| 6 6 | 
             
                pageSize: number;
         | 
| 7 7 | 
             
            };
         | 
| 8 | 
            -
            declare function ProTable(props: ProTableProps): JSX.Element;
         | 
| 8 | 
            +
            declare function ProTable(props: ProTableProps): import("react/jsx-runtime").JSX.Element;
         | 
| 9 9 | 
             
            declare namespace ProTable {
         | 
| 10 10 | 
             
                var defaultProps: {
         | 
| 11 11 | 
             
                    quickConfig: boolean;
         | 
| @@ -1,3 +1,3 @@ | |
| 1 1 | 
             
            import type { DevToolsPropsType } from '../../propsType';
         | 
| 2 | 
            -
            declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
         | 
| 2 | 
            +
            declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
         | 
| 3 3 | 
             
            export default PrdTools;
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import type { ProThemeToolsProps } from './propsType';
         | 
| 2 2 | 
             
            declare const ProThemeTools: {
         | 
| 3 | 
            -
                ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): JSX.Element;
         | 
| 3 | 
            +
                ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
                defaultProps: {
         | 
| 5 5 | 
             
                    size: number;
         | 
| 6 6 | 
             
                    mode: string;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            import { ProTooltipPropsType } from './propsType';
         | 
| 2 2 | 
             
            import './style/index.less';
         | 
| 3 | 
            -
            declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
         | 
| 3 | 
            +
            declare const ProTooltip: (props: ProTooltipPropsType) => import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
            export default ProTooltip;
         | 
| @@ -12,6 +12,6 @@ interface ListProps { | |
| 12 12 | 
             
                handleFilterClose?: (code: string) => void;
         | 
| 13 13 | 
             
                optionRender?: (item: any, searchStr?: string) => string | ReactNode;
         | 
| 14 14 | 
             
            }
         | 
| 15 | 
            -
            declare function List(props: ListProps): JSX.Element;
         | 
| 15 | 
            +
            declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
         | 
| 16 16 | 
             
            declare const _default: import("react").MemoExoticComponent<typeof List>;
         | 
| 17 17 | 
             
            export default _default;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import { PropTreeSelectProps } from './propsType';
         | 
| 3 | 
            -
            export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
         | 
| 3 | 
            +
            export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
            declare const _default: React.ForwardRefExoticComponent<PropTreeSelectProps & React.RefAttributes<unknown>>;
         | 
| 5 5 | 
             
            export default _default;
         | 
| @@ -4,6 +4,6 @@ declare function SearchTitle(props: { | |
| 4 4 | 
             
                label?: string;
         | 
| 5 5 | 
             
                showEllipse?: boolean;
         | 
| 6 6 | 
             
                ellipseWidth?: string;
         | 
| 7 | 
            -
            }): JSX.Element;
         | 
| 7 | 
            +
            }): import("react/jsx-runtime").JSX.Element;
         | 
| 8 8 | 
             
            declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
         | 
| 9 9 | 
             
            export default _default;
         | 
| @@ -23,5 +23,5 @@ interface ListProps extends ProTreeProps { | |
| 23 23 | 
             
                handleFilterClose?: (code: string, node?: any) => void;
         | 
| 24 24 | 
             
                [key: string]: any;
         | 
| 25 25 | 
             
            }
         | 
| 26 | 
            -
            declare function List(props: ListProps): JSX.Element;
         | 
| 26 | 
            +
            declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
         | 
| 27 27 | 
             
            export default List;
         | 
    
        package/lib/ProTree/index.d.ts
    CHANGED
    
    
| @@ -10,5 +10,5 @@ interface CascaderProps { | |
| 10 10 | 
             
                handleOnChange?: (e: any, value: string) => void;
         | 
| 11 11 | 
             
                optionRender?: (item: any, searchStr: string) => string | ReactNode;
         | 
| 12 12 | 
             
            }
         | 
| 13 | 
            -
            declare const Cascader: (props: CascaderProps) => JSX.Element;
         | 
| 13 | 
            +
            declare const Cascader: (props: CascaderProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 14 14 | 
             
            export default Cascader;
         | 
| @@ -17,5 +17,5 @@ interface TriggerProps { | |
| 17 17 | 
             
                handleClearAll: () => void;
         | 
| 18 18 | 
             
                appointChange: (appoint?: boolean) => void;
         | 
| 19 19 | 
             
            }
         | 
| 20 | 
            -
            declare function Trigger(props: TriggerProps): JSX.Element;
         | 
| 20 | 
            +
            declare function Trigger(props: TriggerProps): import("react/jsx-runtime").JSX.Element;
         | 
| 21 21 | 
             
            export default Trigger;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { ProTreeModalProps } from './propsType';
         | 
| 2 2 | 
             
            import './style/index.less';
         | 
| 3 3 | 
             
            export declare const CASCADER = "CASCADER";
         | 
| 4 | 
            -
            declare const ProTreeModal: (props: ProTreeModalProps) => JSX.Element;
         | 
| 4 | 
            +
            declare const ProTreeModal: (props: ProTreeModalProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            export default ProTreeModal;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 1 | 
             
            import { DraggableUploadListItemProps } from '../propsType';
         | 
| 2 | 
            -
            export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
         | 
| 2 | 
            +
            export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => import("react/jsx-runtime").JSX.Element;
         |