@zat-design/sisyphus-react 3.7.3-beta.14 → 3.7.3-beta.16
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/ProAction/index.js +4 -4
- package/es/ProDownload/index.d.ts +1 -1
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/VirtualTable.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/ProEditTable/utils/tools.js +3 -3
- 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/combination/ProCascader/index.js +7 -7
- 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/components/render/ChangedWrapper.d.ts +1 -0
- package/es/ProForm/components/render/ChangedWrapper.js +17 -8
- package/es/ProForm/utils/index.js +14 -10
- package/es/ProForm/utils/transformValue.js +17 -11
- package/es/ProIcon/utils/index.js +4 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- 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/ProLayout/utils/index.js +9 -9
- 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/FormatColumn/index.js +3 -3
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +9 -8
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
- package/es/ProTable/components/RenderFooter/index.d.ts +1 -1
- package/es/ProTable/components/RenderTableHeader/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/ProTools/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/AdaptiveTooltip.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/ProTreeSelect/index.js +18 -18
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +1 -1
- package/es/ProTree/components/Tree.js +3 -3
- package/es/ProTree/index.d.ts +1 -1
- package/es/ProTree/utils.js +12 -11
- 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/Tree.js +6 -6
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/index.d.ts +1 -1
- package/es/ProTreeModal/utils.js +12 -11
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/lib/ProAction/index.js +4 -4
- package/lib/ProDownload/index.d.ts +1 -1
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/VirtualTable.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/ProEditTable/utils/tools.js +3 -3
- 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/combination/ProCascader/index.js +7 -7
- 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/components/render/ChangedWrapper.d.ts +1 -0
- package/lib/ProForm/components/render/ChangedWrapper.js +19 -10
- package/lib/ProForm/utils/index.js +10 -10
- package/lib/ProForm/utils/transformValue.js +17 -11
- package/lib/ProIcon/utils/index.js +3 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- 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/ProLayout/utils/index.js +9 -9
- 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/FormatColumn/index.js +3 -3
- package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -8
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
- package/lib/ProTable/components/RenderFooter/index.d.ts +1 -1
- package/lib/ProTable/components/RenderTableHeader/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/ProTools/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/AdaptiveTooltip.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/ProTreeSelect/index.js +18 -18
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +1 -1
- package/lib/ProTree/components/Tree.js +3 -3
- package/lib/ProTree/index.d.ts +1 -1
- package/lib/ProTree/utils.js +11 -11
- 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/Tree.js +6 -6
- package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
- package/lib/ProTreeModal/index.d.ts +1 -1
- package/lib/ProTreeModal/utils.js +11 -11
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/package.json +1 -1
    
        package/es/ProAction/index.js
    CHANGED
    
    | @@ -39,7 +39,7 @@ var ProAction = function ProAction(props) { | |
| 39 39 | 
             
              var index = state.index,
         | 
| 40 40 | 
             
                servicesArray = state.servicesArray;
         | 
| 41 41 | 
             
              var length = config.length;
         | 
| 42 | 
            -
              var  | 
| 42 | 
            +
              var _onActionRun = /*#__PURE__*/function () {
         | 
| 43 43 | 
             
                var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(currentIndex, array) {
         | 
| 44 44 | 
             
                  var _actionProps$useReque, _options$onSuccess, _newServicesArray$cur, _newServicesArray$cur2, _newServicesArray$cur3, _actionProps$onAction, _actionProps$continue;
         | 
| 45 45 | 
             
                  var actionProps, newServicesArray, _ref2, service, options, transformResponse, res, data, open, _newServicesArray$cur4, _newServicesArray$cur5, _newServicesArray$cur6, list, errorTitle, isContinue;
         | 
| @@ -136,7 +136,7 @@ var ProAction = function ProAction(props) { | |
| 136 136 | 
             
                        return _context.abrupt("return", false);
         | 
| 137 137 | 
             
                      case 44:
         | 
| 138 138 | 
             
                        if (currentIndex + 1 < length) {
         | 
| 139 | 
            -
                           | 
| 139 | 
            +
                          _onActionRun(currentIndex + 1, newServicesArray);
         | 
| 140 140 | 
             
                        } else {
         | 
| 141 141 | 
             
                          setState({
         | 
| 142 142 | 
             
                            loading: false
         | 
| @@ -154,7 +154,7 @@ var ProAction = function ProAction(props) { | |
| 154 154 | 
             
              }();
         | 
| 155 155 | 
             
              var ChildContent = /*#__PURE__*/React.cloneElement(children, {
         | 
| 156 156 | 
             
                onClick: function onClick() {
         | 
| 157 | 
            -
                   | 
| 157 | 
            +
                  _onActionRun(0, []);
         | 
| 158 158 | 
             
                },
         | 
| 159 159 | 
             
                loading: state.loading
         | 
| 160 160 | 
             
              });
         | 
| @@ -166,7 +166,7 @@ var ProAction = function ProAction(props) { | |
| 166 166 | 
             
              return _jsxs(_Fragment, {
         | 
| 167 167 | 
             
                children: [((_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.mode) === 'confirm' ? _jsx(_Popconfirm, {
         | 
| 168 168 | 
             
                  onConfirm: function onConfirm() {
         | 
| 169 | 
            -
                    return  | 
| 169 | 
            +
                    return _onActionRun(0, []);
         | 
| 170 170 | 
             
                  },
         | 
| 171 171 | 
             
                  title: ((_config$2 = config[0]) === null || _config$2 === void 0 ? void 0 : _config$2.title) || (locale === null || locale === void 0 ? void 0 : (_locale$ProAction2 = locale.ProAction) === null || _locale$ProAction2 === void 0 ? void 0 : _locale$ProAction2.defaultTitle),
         | 
| 172 172 | 
             
                  children: children
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import { IProDownloadProps } from './propsType';
         | 
| 2 2 | 
             
            declare const ProDownload: {
         | 
| 3 | 
            -
                (props: IProDownloadProps): JSX.Element;
         | 
| 3 | 
            +
                (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
                downLoadRequest: import("./utils").DownloadRequestProps;
         | 
| 5 5 | 
             
            };
         | 
| 6 6 | 
             
            export default ProDownload;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const ActionButton: ({ record, index, config, btnConfig }: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default ActionButton;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default RenderField;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const RenderToolbar: (config: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default RenderToolbar;
         | 
| @@ -8,5 +8,5 @@ interface SummaryProps<T = any> { | |
| 8 8 | 
             
                };
         | 
| 9 9 | 
             
                rowSelection: any;
         | 
| 10 10 | 
             
            }
         | 
| 11 | 
            -
            declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
         | 
| 11 | 
            +
            declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 12 12 | 
             
            export default Summary;
         | 
| @@ -9,7 +9,7 @@ export declare const defaultBtnNameMap: { | |
| 9 9 | 
             
                custom: any;
         | 
| 10 10 | 
             
            };
         | 
| 11 11 | 
             
            export declare const iconMap: {
         | 
| 12 | 
            -
                add: JSX.Element;
         | 
| 12 | 
            +
                add: import("react/jsx-runtime").JSX.Element;
         | 
| 13 13 | 
             
            };
         | 
| 14 14 | 
             
            export declare const defaultSingleActionKeys: string[];
         | 
| 15 15 | 
             
            export declare const defaultMultipleActionKeys: string[];
         | 
| @@ -6,14 +6,14 @@ export var getRandom = function getRandom() { | |
| 6 6 | 
             
            };
         | 
| 7 7 | 
             
            // 深层次对比两个对象且取出来差异值
         | 
| 8 8 | 
             
            export var difference = function difference(object, base) {
         | 
| 9 | 
            -
              var  | 
| 9 | 
            +
              var _changes = function changes(object, base) {
         | 
| 10 10 | 
             
                return transform(object, function (result, value, key) {
         | 
| 11 11 | 
             
                  if (!isEqual(value, base[key])) {
         | 
| 12 | 
            -
                    result[key] = isObject(value) && isObject(base[key]) ?  | 
| 12 | 
            +
                    result[key] = isObject(value) && isObject(base[key]) ? _changes(value, base[key]) : value;
         | 
| 13 13 | 
             
                  }
         | 
| 14 14 | 
             
                });
         | 
| 15 15 | 
             
              };
         | 
| 16 | 
            -
              return  | 
| 16 | 
            +
              return _changes(object, base);
         | 
| 17 17 | 
             
            };
         | 
| 18 18 | 
             
            // 数组字段循环校验,解决validateFields无法批量校验的问题
         | 
| 19 19 | 
             
            export var customValidate = function customValidate(validateKeys, form, rowName) {
         | 
| @@ -6,5 +6,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource' | |
| 6 6 | 
             
                allowClear?: boolean;
         | 
| 7 7 | 
             
                button?: boolean;
         | 
| 8 8 | 
             
            }
         | 
| 9 | 
            -
            declare const Group: (props: Props) => JSX.Element;
         | 
| 9 | 
            +
            declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
         | 
| 10 10 | 
             
            export default Group;
         | 
| @@ -3,5 +3,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource' | |
| 3 3 | 
             
                fieldValue: string;
         | 
| 4 4 | 
             
                fieldLabel: string;
         | 
| 5 5 | 
             
            }
         | 
| 6 | 
            -
            declare const ProEnumTag: (props: Props) => JSX.Element;
         | 
| 6 | 
            +
            declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
         | 
| 7 7 | 
             
            export default ProEnumTag;
         | 
    
        package/es/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;
         | 
| @@ -7,7 +7,7 @@ var SimpleEventCenter = /*#__PURE__*/function () { | |
| 7 7 | 
             
                this.events = void 0;
         | 
| 8 8 | 
             
                this.events = new Map();
         | 
| 9 9 | 
             
              }
         | 
| 10 | 
            -
              _createClass(SimpleEventCenter, [{
         | 
| 10 | 
            +
              return _createClass(SimpleEventCenter, [{
         | 
| 11 11 | 
             
                key: "subscribe",
         | 
| 12 12 | 
             
                value: function subscribe(eventName, callback) {
         | 
| 13 13 | 
             
                  if (!this.events.has(eventName)) {
         | 
| @@ -34,6 +34,5 @@ var SimpleEventCenter = /*#__PURE__*/function () { | |
| 34 34 | 
             
                  }
         | 
| 35 35 | 
             
                }
         | 
| 36 36 | 
             
              }]);
         | 
| 37 | 
            -
              return SimpleEventCenter;
         | 
| 38 37 | 
             
            }(); // 将 eventCenter 实例添加到 window 对象上
         | 
| 39 38 | 
             
            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;
         | 
| @@ -29,9 +29,9 @@ var defaultFieldNames = { | |
| 29 29 | 
             
              value: 'code',
         | 
| 30 30 | 
             
              children: 'children'
         | 
| 31 31 | 
             
            };
         | 
| 32 | 
            -
            var  | 
| 32 | 
            +
            var _filterDataSource = function filterDataSource(dataSource, level, fieldNames) {
         | 
| 33 33 | 
             
              return dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
         | 
| 34 | 
            -
                return _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] :  | 
| 34 | 
            +
                return _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] : _filterDataSource(item === null || item === void 0 ? void 0 : item[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], level - 1, fieldNames)));
         | 
| 35 35 | 
             
              });
         | 
| 36 36 | 
             
            };
         | 
| 37 37 | 
             
            var getViewLabel = function getViewLabel(_ref) {
         | 
| @@ -96,7 +96,7 @@ var ProCascader = function ProCascader(props) { | |
| 96 96 | 
             
                enumDataSource = _ref5$ === void 0 ? [] : _ref5$;
         | 
| 97 97 | 
             
              var realDataSource = useMemo(function () {
         | 
| 98 98 | 
             
                var innerDataSource = dataSource || (addressCode ? enumDataSource : []);
         | 
| 99 | 
            -
                var result = isAddressMode && realLevel === 2 ?  | 
| 99 | 
            +
                var result = isAddressMode && realLevel === 2 ? _filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
         | 
| 100 100 | 
             
                return transformDataName(result, fieldNames);
         | 
| 101 101 | 
             
              }, [isAddressMode, addressCode, realLevel, dataSource, enumDataSource === null || enumDataSource === void 0 ? void 0 : enumDataSource.length]);
         | 
| 102 102 | 
             
              var _useRequest = _objectSpread({}, useRequest),
         | 
| @@ -131,7 +131,7 @@ var ProCascader = function ProCascader(props) { | |
| 131 131 | 
             
                          value: fieldNames.value,
         | 
| 132 132 | 
             
                          children: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'
         | 
| 133 133 | 
             
                        });
         | 
| 134 | 
            -
                        serviceData = isAddressMode && realLevel === 2 ?  | 
| 134 | 
            +
                        serviceData = isAddressMode && realLevel === 2 ? _filterDataSource(transFormData, level, fieldNames) : transFormData;
         | 
| 135 135 | 
             
                        setServiceData(serviceData);
         | 
| 136 136 | 
             
                      case 9:
         | 
| 137 137 | 
             
                      case "end":
         | 
| @@ -196,7 +196,7 @@ var ProCascader = function ProCascader(props) { | |
| 196 196 | 
             
              })) === null || _ref7$filter === void 0 ? void 0 : _ref7$filter.join(separator)) || '-' : (defaultLabel === null || defaultLabel === void 0 ? void 0 : (_defaultLabel$filter = defaultLabel.filter(function (item) {
         | 
| 197 197 | 
             
                return !!item;
         | 
| 198 198 | 
             
              })) === null || _defaultLabel$filter === void 0 ? void 0 : _defaultLabel$filter.join(separator)) || '-';
         | 
| 199 | 
            -
              var  | 
| 199 | 
            +
              var _findSelectedOptions = function findSelectedOptions(options, value) {
         | 
| 200 200 | 
             
                var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
         | 
| 201 201 | 
             
                var _value = value !== null && value !== void 0 ? value : [];
         | 
| 202 202 | 
             
                // 基准情况:如果 value 数组为空,且 path 不为空,说明找到了完整的路径
         | 
| @@ -215,7 +215,7 @@ var ProCascader = function ProCascader(props) { | |
| 215 215 | 
             
                if (foundOption) {
         | 
| 216 216 | 
             
                  // 如果找到了匹配的选项,并且还有更多的 value 需要匹配,递归地在子选项中查找
         | 
| 217 217 | 
             
                  if (_value.length > 1 && foundOption.children) {
         | 
| 218 | 
            -
                    return  | 
| 218 | 
            +
                    return _findSelectedOptions(foundOption.children, _value.slice(1), [].concat(_toConsumableArray(path), [foundOption]));
         | 
| 219 219 | 
             
                  }
         | 
| 220 220 | 
             
                  // 如果没有更多的 value 需要匹配,返回当前选项(以及之前的路径)
         | 
| 221 221 | 
             
                  return [].concat(_toConsumableArray(path), [foundOption]);
         | 
| @@ -224,7 +224,7 @@ var ProCascader = function ProCascader(props) { | |
| 224 224 | 
             
                return null;
         | 
| 225 225 | 
             
              };
         | 
| 226 226 | 
             
              var _selectedOptions = useMemo(function () {
         | 
| 227 | 
            -
                return  | 
| 227 | 
            +
                return _findSelectedOptions(service ? serviceData : realDataSource, addressValue);
         | 
| 228 228 | 
             
              }, [service, serviceData, realDataSource, addressValue]);
         | 
| 229 229 | 
             
              var handleAddressChange = function handleAddressChange(e) {
         | 
| 230 230 | 
             
                var cascaderValue = value === null || value === void 0 ? void 0 : value.slice(0, realLevel);
         | 
| @@ -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;
         | 
| @@ -2,6 +2,7 @@ import "antd/es/space/style"; | |
| 2 2 | 
             
            import _Space from "antd/es/space";
         | 
| 3 3 | 
             
            import "antd/es/tooltip/style";
         | 
| 4 4 | 
             
            import _Tooltip from "antd/es/tooltip";
         | 
| 5 | 
            +
            import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
         | 
| 5 6 | 
             
            import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
         | 
| 6 7 | 
             
            import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
         | 
| 7 8 | 
             
            var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName"];
         | 
| @@ -13,7 +14,7 @@ import { diffOriginal } from '../../utils/diffOriginal'; | |
| 13 14 | 
             
            import { useProConfig } from '../../../ProConfigProvider';
         | 
| 14 15 | 
             
            import { isEmpty } from '../../../utils';
         | 
| 15 16 | 
             
            var ChangedWrapper = function ChangedWrapper(props) {
         | 
| 16 | 
            -
              var _diffConfig$toolTip;
         | 
| 17 | 
            +
              var _diffConfig$toolTip, _children$props;
         | 
| 17 18 | 
             
              var name = props.name,
         | 
| 18 19 | 
             
                names = props.names,
         | 
| 19 20 | 
             
                namesStr = props.namesStr,
         | 
| @@ -51,11 +52,9 @@ var ChangedWrapper = function ChangedWrapper(props) { | |
| 51 52 | 
             
              var isChanged = diffType === 'changed';
         | 
| 52 53 | 
             
              var tipContent = useMemo(function () {
         | 
| 53 54 | 
             
                if (!isWatch || noChange) return undefined;
         | 
| 54 | 
            -
                return /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), {}, {
         | 
| 55 | 
            -
                  isView: true | 
| 56 | 
            -
             | 
| 57 | 
            -
                  checked: type === 'Switch' ? originalValue : undefined
         | 
| 58 | 
            -
                })) : undefined;
         | 
| 55 | 
            +
                return /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), {}, _defineProperty({
         | 
| 56 | 
            +
                  isView: true
         | 
| 57 | 
            +
                }, valuePropName, originalValue))) : undefined;
         | 
| 59 58 | 
             
              }, [originalValue, children]);
         | 
| 60 59 | 
             
              if (!isWatch || noChange) {
         | 
| 61 60 | 
             
                return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
         | 
| @@ -75,17 +74,27 @@ var ChangedWrapper = function ChangedWrapper(props) { | |
| 75 74 | 
             
              });
         | 
| 76 75 | 
             
              return _jsx(_Tooltip, {
         | 
| 77 76 | 
             
                open: tipOpenCalc(),
         | 
| 77 | 
            +
                mouseEnterDelay: 1,
         | 
| 78 78 | 
             
                getPopupContainer: function getPopupContainer(target) {
         | 
| 79 79 | 
             
                  return target.parentElement;
         | 
| 80 80 | 
             
                },
         | 
| 81 81 | 
             
                title: _jsxs(_Space, {
         | 
| 82 | 
            -
                   | 
| 82 | 
            +
                  direction: "vertical",
         | 
| 83 | 
            +
                  children: [_jsxs(_Space, {
         | 
| 84 | 
            +
                    children: ["\u521D\u59CB\u503C\uFF1A", tipContent]
         | 
| 85 | 
            +
                  }), ((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.showEllipse) && _jsxs(_Space, {
         | 
| 86 | 
            +
                    children: ["\u5F53\u524D\u503C\uFF1A", /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread(_objectSpread({}, children.props), rest), {}, {
         | 
| 87 | 
            +
                      isView: true
         | 
| 88 | 
            +
                    })) : undefined]
         | 
| 89 | 
            +
                  })]
         | 
| 83 90 | 
             
                }),
         | 
| 84 91 | 
             
                placement: "topLeft",
         | 
| 85 92 | 
             
                children: _jsx("div", {
         | 
| 86 93 | 
             
                  className: diffClassName,
         | 
| 87 94 | 
             
                  style: style,
         | 
| 88 | 
            -
                  children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest) | 
| 95 | 
            +
                  children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread(_objectSpread({}, children.props), rest), {}, {
         | 
| 96 | 
            +
                    isDiffChange: isChanged
         | 
| 97 | 
            +
                  })) : undefined
         | 
| 89 98 | 
             
                })
         | 
| 90 99 | 
             
              });
         | 
| 91 100 | 
             
            };
         | 
| @@ -120,7 +120,7 @@ export var splitNameStr = function splitNameStr(name) { | |
| 120 120 | 
             
              });
         | 
| 121 121 | 
             
            };
         | 
| 122 122 | 
             
            // 过滤掉字段名中包含 '-' 的字段
         | 
| 123 | 
            -
             | 
| 123 | 
            +
            var _filterInternalFields = function filterInternalFields(values, optimize) {
         | 
| 124 124 | 
             
              if (optimize) {
         | 
| 125 125 | 
             
                return values;
         | 
| 126 126 | 
             
              }
         | 
| @@ -134,20 +134,21 @@ export var filterInternalFields = function filterInternalFields(values, optimize | |
| 134 134 | 
             
              }
         | 
| 135 135 | 
             
              if (Array.isArray(nextValues)) {
         | 
| 136 136 | 
             
                return nextValues.map(function (item) {
         | 
| 137 | 
            -
                  return  | 
| 137 | 
            +
                  return _filterInternalFields(item);
         | 
| 138 138 | 
             
                });
         | 
| 139 139 | 
             
              }
         | 
| 140 140 | 
             
              if (isObject(nextValues)) {
         | 
| 141 141 | 
             
                var result = {};
         | 
| 142 142 | 
             
                Object.keys(nextValues).forEach(function (key) {
         | 
| 143 143 | 
             
                  if (key.includes('-')) return;
         | 
| 144 | 
            -
                  result[key] =  | 
| 144 | 
            +
                  result[key] = _filterInternalFields(nextValues[key]);
         | 
| 145 145 | 
             
                });
         | 
| 146 146 | 
             
                return result;
         | 
| 147 147 | 
             
              }
         | 
| 148 148 | 
             
              return nextValues;
         | 
| 149 149 | 
             
            };
         | 
| 150 | 
            -
            export  | 
| 150 | 
            +
            export { _filterInternalFields as filterInternalFields };
         | 
| 151 | 
            +
            var _getAllNamePath = function getAllNamePath(object) {
         | 
| 151 152 | 
             
              var currentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
         | 
| 152 153 | 
             
              var keys = Object.keys(object);
         | 
| 153 154 | 
             
              var resultKeys = [];
         | 
| @@ -161,13 +162,14 @@ export var getAllNamePath = function getAllNamePath(object) { | |
| 161 162 | 
             
                }
         | 
| 162 163 | 
             
                // 深度获取对象key
         | 
| 163 164 | 
             
                if (isObject(value)) {
         | 
| 164 | 
            -
                  resultKeys.concat( | 
| 165 | 
            +
                  resultKeys.concat(_getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
         | 
| 165 166 | 
             
                }
         | 
| 166 167 | 
             
                resultKeys.push([].concat(_toConsumableArray(currentPath), [key]));
         | 
| 167 168 | 
             
              });
         | 
| 168 169 | 
             
              return resultKeys;
         | 
| 169 170 | 
             
            };
         | 
| 170 171 | 
             
            // 判断一个字段值是否算空
         | 
| 172 | 
            +
            export { _getAllNamePath as getAllNamePath };
         | 
| 171 173 | 
             
            var nullList = [undefined, 'null', '""', '[]'];
         | 
| 172 174 | 
             
            export var isNullValue = function isNullValue(value) {
         | 
| 173 175 | 
             
              return nullList.includes(JSON.stringify(value));
         | 
| @@ -304,7 +306,7 @@ export var customEqualForFun = function customEqualForFun(value, other) { | |
| 304 306 | 
             
            /**
         | 
| 305 307 | 
             
             * 查询数据中是否包含rowKey
         | 
| 306 308 | 
             
             */
         | 
| 307 | 
            -
             | 
| 309 | 
            +
            var _hasRowKey = function hasRowKey(obj) {
         | 
| 308 310 | 
             
              if (_typeof(obj) !== 'object' || obj === null) {
         | 
| 309 311 | 
             
                return false;
         | 
| 310 312 | 
             
              }
         | 
| @@ -314,12 +316,13 @@ export var hasRowKey = function hasRowKey(obj) { | |
| 314 316 | 
             
                return true;
         | 
| 315 317 | 
             
              }
         | 
| 316 318 | 
             
              return keys.some(function (key) {
         | 
| 317 | 
            -
                return  | 
| 319 | 
            +
                return _hasRowKey(obj[key]);
         | 
| 318 320 | 
             
              });
         | 
| 319 321 | 
             
            };
         | 
| 320 322 | 
             
            /**
         | 
| 321 323 | 
             
             * 查询数据中是否包含rowKey
         | 
| 322 324 | 
             
             */
         | 
| 325 | 
            +
            export { _hasRowKey as hasRowKey };
         | 
| 323 326 | 
             
            export var view = function view(obj) {
         | 
| 324 327 | 
             
              if (_typeof(obj) !== 'object' || obj === null) {
         | 
| 325 328 | 
             
                return false;
         | 
| @@ -330,7 +333,7 @@ export var view = function view(obj) { | |
| 330 333 | 
             
                return true;
         | 
| 331 334 | 
             
              }
         | 
| 332 335 | 
             
              return keys.some(function (key) {
         | 
| 333 | 
            -
                return  | 
| 336 | 
            +
                return _hasRowKey(obj[key]);
         | 
| 334 337 | 
             
              });
         | 
| 335 338 | 
             
            };
         | 
| 336 339 | 
             
            /**
         | 
| @@ -366,7 +369,7 @@ export var deleteForPath = function deleteForPath(values, namePath) { | |
| 366 369 | 
             
             * @param value 选中值
         | 
| 367 370 | 
             
             * @returns {}
         | 
| 368 371 | 
             
             */
         | 
| 369 | 
            -
             | 
| 372 | 
            +
            var _findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
         | 
| 370 373 | 
             
              if (isObject(value)) {
         | 
| 371 374 | 
             
                return value;
         | 
| 372 375 | 
             
              }
         | 
| @@ -376,7 +379,7 @@ export var findOptionByValue = function findOptionByValue(treeData, value, field | |
| 376 379 | 
             
                  return omit(node, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
         | 
| 377 380 | 
             
                }
         | 
| 378 381 | 
             
                if (node.children) {
         | 
| 379 | 
            -
                  var foundNode =  | 
| 382 | 
            +
                  var foundNode = _findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
         | 
| 380 383 | 
             
                  if (foundNode) {
         | 
| 381 384 | 
             
                    return omit(foundNode, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
         | 
| 382 385 | 
             
                  }
         | 
| @@ -386,6 +389,7 @@ export var findOptionByValue = function findOptionByValue(treeData, value, field | |
| 386 389 | 
             
            /**
         | 
| 387 390 | 
             
             * 对比依赖列表中的 值是否变更
         | 
| 388 391 | 
             
             */
         | 
| 392 | 
            +
            export { _findOptionByValue as findOptionByValue };
         | 
| 389 393 | 
             
            export var equalDependencies = function equalDependencies(dependencies, prevValues, currentValues) {
         | 
| 390 394 | 
             
              if (dependencies === null || dependencies === void 0 ? void 0 : dependencies.length) {
         | 
| 391 395 | 
             
                return dependencies.some(function (namePath) {
         | 
| @@ -1,8 +1,7 @@ | |
| 1 1 | 
             
            import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
         | 
| 2 | 
            -
            import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
         | 
| 3 | 
            -
            var _excluded = ["value"];
         | 
| 4 2 | 
             
            import { set } from 'lodash';
         | 
| 5 3 | 
             
            import { diffField } from '../utils';
         | 
| 4 | 
            +
            import { isEmpty } from '../../utils';
         | 
| 6 5 | 
             
            export var transformValue = function transformValue(names, form, fieldName, _normalize, _getValueProps) {
         | 
| 7 6 | 
             
              return {
         | 
| 8 7 | 
             
                normalize: function normalize(value) {
         | 
| @@ -22,23 +21,30 @@ export var transformValue = function transformValue(names, form, fieldName, _nor | |
| 22 21 | 
             
                  return _value;
         | 
| 23 22 | 
             
                },
         | 
| 24 23 | 
             
                getValueProps: function getValueProps(value) {
         | 
| 24 | 
            +
                  var _curValue;
         | 
| 25 25 | 
             
                  var _value = [];
         | 
| 26 26 | 
             
                  names.forEach(function (name, index) {
         | 
| 27 27 | 
             
                    var value = form.getFieldValue(name);
         | 
| 28 28 | 
             
                    _value[index] = value;
         | 
| 29 29 | 
             
                  });
         | 
| 30 30 | 
             
                  // 支持外部传入转换函数
         | 
| 31 | 
            -
                  var  | 
| 32 | 
            -
             | 
| 33 | 
            -
             | 
| 34 | 
            -
             | 
| 35 | 
            -
             | 
| 31 | 
            +
                  var res = (_getValueProps === null || _getValueProps === void 0 ? void 0 : _getValueProps(_value)) || {
         | 
| 32 | 
            +
                    value: _value
         | 
| 33 | 
            +
                  };
         | 
| 34 | 
            +
                  // 如果数组中值都为空, 则值置为空
         | 
| 35 | 
            +
                  var curValue = res === null || res === void 0 ? void 0 : res.value;
         | 
| 36 36 | 
             
                  // @ts-ignore
         | 
| 37 | 
            -
                   | 
| 37 | 
            +
                  if ((_curValue = curValue) === null || _curValue === void 0 ? void 0 : _curValue.every(function (item) {
         | 
| 38 | 
            +
                    return isEmpty(item);
         | 
| 39 | 
            +
                  })) {
         | 
| 40 | 
            +
                    curValue = undefined;
         | 
| 41 | 
            +
                  }
         | 
| 42 | 
            +
                  // @ts-ignore
         | 
| 43 | 
            +
                  set(form.getFieldsValue(true), fieldName, curValue);
         | 
| 38 44 | 
             
                  // 如果表单里的值和组合得到的值不全等  更新表单里的值、
         | 
| 39 | 
            -
                  return _objectSpread({
         | 
| 40 | 
            -
                    value:  | 
| 41 | 
            -
                  } | 
| 45 | 
            +
                  return _objectSpread(_objectSpread({}, res), {}, {
         | 
| 46 | 
            +
                    value: curValue
         | 
| 47 | 
            +
                  });
         | 
| 42 48 | 
             
                },
         | 
| 43 49 | 
             
                shouldUpdate: function shouldUpdate(prevValues, curValues) {
         | 
| 44 50 | 
             
                  return diffField(prevValues, curValues, names);
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
         | 
| 2 2 | 
             
            import { themeMap, themeFillMap } from '../config';
         | 
| 3 | 
            -
             | 
| 3 | 
            +
            var _recurseGetNodes = function recurseGetNodes(type, node, queue) {
         | 
| 4 4 | 
             
              switch (type) {
         | 
| 5 5 | 
             
                // 渐变
         | 
| 6 6 | 
             
                case 'gradation':
         | 
| @@ -19,10 +19,11 @@ export var recurseGetNodes = function recurseGetNodes(type, node, queue) { | |
| 19 19 | 
             
              }
         | 
| 20 20 | 
             
              if (node.childNodes) {
         | 
| 21 21 | 
             
                for (var i = 0; i < node.childNodes.length; i++) {
         | 
| 22 | 
            -
                   | 
| 22 | 
            +
                  _recurseGetNodes(type, node.childNodes[i], queue);
         | 
| 23 23 | 
             
                }
         | 
| 24 24 | 
             
              }
         | 
| 25 25 | 
             
            };
         | 
| 26 | 
            +
            export { _recurseGetNodes as recurseGetNodes };
         | 
| 26 27 | 
             
            export var onBeforeInjection = function onBeforeInjection(_ref) {
         | 
| 27 28 | 
             
              var svg = _ref.svg,
         | 
| 28 29 | 
             
                actionMap = _ref.actionMap,
         | 
| @@ -49,7 +50,7 @@ export var onBeforeInjection = function onBeforeInjection(_ref) { | |
| 49 50 | 
             
                // 目前只支持处理渐变及fill填充
         | 
| 50 51 | 
             
                var types = Reflect.ownKeys(nodeMap !== null && nodeMap !== void 0 ? nodeMap : {});
         | 
| 51 52 | 
             
                types.forEach(function (typeKey) {
         | 
| 52 | 
            -
                   | 
| 53 | 
            +
                  _recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
         | 
| 53 54 | 
             
                });
         | 
| 54 55 | 
             
                if ((gradList === null || gradList === void 0 ? void 0 : gradList.length) > 0) {
         | 
| 55 56 | 
             
                  nodeMap.gradation.forEach(function (item, index) {
         | 
| @@ -50,7 +50,7 @@ var OpenMenu = function OpenMenu(props) { | |
| 50 50 | 
             
                if (!Array.isArray(result) || !result.length) {
         | 
| 51 51 | 
             
                  return [];
         | 
| 52 52 | 
             
                }
         | 
| 53 | 
            -
                var  | 
| 53 | 
            +
                var _menuDeep = function menuDeep(data) {
         | 
| 54 54 | 
             
                  data.forEach(function (item) {
         | 
| 55 55 | 
             
                    var _item$keyIdPath, _item$keyIdPath2, _item$children;
         | 
| 56 56 | 
             
                    // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
         | 
| @@ -91,7 +91,7 @@ var OpenMenu = function OpenMenu(props) { | |
| 91 91 | 
             
                      if ((_item === null || _item === void 0 ? void 0 : _item.hideInMenu) || ['TAB', 'QUERY', 'BUTTON'].includes(_item === null || _item === void 0 ? void 0 : _item.type)) {
         | 
| 92 92 | 
             
                        delete item.children;
         | 
| 93 93 | 
             
                      } else {
         | 
| 94 | 
            -
                         | 
| 94 | 
            +
                        _menuDeep(item.children);
         | 
| 95 95 | 
             
                      }
         | 
| 96 96 | 
             
                    } else {
         | 
| 97 97 | 
             
                      delete item.children;
         | 
| @@ -99,7 +99,7 @@ var OpenMenu = function OpenMenu(props) { | |
| 99 99 | 
             
                  });
         | 
| 100 100 | 
             
                  return data;
         | 
| 101 101 | 
             
                };
         | 
| 102 | 
            -
                 | 
| 102 | 
            +
                _menuDeep(result);
         | 
| 103 103 | 
             
                return result;
         | 
| 104 104 | 
             
              }, [dataSource]);
         | 
| 105 105 | 
             
              useDeepCompareEffect(function () {
         | 
| @@ -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/es/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;
         |