@zat-design/sisyphus-react 3.6.6-beta.3 → 3.6.6-beta.6
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/RenderField/index.js +1 -1
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderToolbar/index.js +8 -6
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/index.js +1 -1
- package/es/ProEditTable/propsType.d.ts +5 -0
- 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/base/InputNumber/index.js +8 -2
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.js +9 -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/utils/index.js +14 -10
- 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/ProSelect/index.js +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/ProTable/propsType.d.ts +2 -1
- package/es/ProTable/useAntdTable.d.ts +2 -2
- package/es/ProTable/useAntdTable.js +17 -3
- package/es/ProTable/utils.js +3 -3
- 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/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/RenderField/index.js +1 -1
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderToolbar/index.js +7 -5
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
- package/lib/ProEditTable/index.js +1 -1
- package/lib/ProEditTable/propsType.d.ts +5 -0
- 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/base/InputNumber/index.js +8 -2
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +9 -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/utils/index.js +10 -10
- 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/ProSelect/index.js +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/ProTable/propsType.d.ts +2 -1
- package/lib/ProTable/useAntdTable.d.ts +2 -2
- package/lib/ProTable/useAntdTable.js +16 -2
- package/lib/ProTable/utils.js +3 -3
- 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/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 +3 -2
| @@ -59,7 +59,7 @@ function List(props, ref) { | |
| 59 59 | 
             
              }, [searchStr]);
         | 
| 60 60 | 
             
              var _treeData = useMemo(function () {
         | 
| 61 61 | 
             
                function fn() {
         | 
| 62 | 
            -
                  var  | 
| 62 | 
            +
                  var _loop = function loop(data, index) {
         | 
| 63 63 | 
             
                    index++;
         | 
| 64 64 | 
             
                    return data.map(function (item) {
         | 
| 65 65 | 
             
                      var title = showCodeName ? "".concat(item[fieldNameValue], "-").concat(item[fieldNameLabel]) : item[fieldNameLabel];
         | 
| @@ -84,7 +84,7 @@ function List(props, ref) { | |
| 84 84 | 
             
                            })]
         | 
| 85 85 | 
             
                          }),
         | 
| 86 86 | 
             
                          key: item[fieldNameValue],
         | 
| 87 | 
            -
                          children:  | 
| 87 | 
            +
                          children: _loop(item[fieldNames.children], index)
         | 
| 88 88 | 
             
                        });
         | 
| 89 89 | 
             
                      }
         | 
| 90 90 | 
             
                      return _objectSpread(_objectSpread({}, item), {}, {
         | 
| @@ -117,12 +117,12 @@ function List(props, ref) { | |
| 117 117 | 
             
                  if (searchStr) {
         | 
| 118 118 | 
             
                    newTreeData = filterCheckedNodes(originalTreeData, [], searchStr, fieldNames);
         | 
| 119 119 | 
             
                  }
         | 
| 120 | 
            -
                  return  | 
| 120 | 
            +
                  return _loop(newTreeData, -1);
         | 
| 121 121 | 
             
                }
         | 
| 122 122 | 
             
                return fn();
         | 
| 123 123 | 
             
              }, [searchStr, expandedKeys, showCodeName]);
         | 
| 124 124 | 
             
              var treeViewData = useMemo(function () {
         | 
| 125 | 
            -
                var  | 
| 125 | 
            +
                var _loop2 = function loop(data, index) {
         | 
| 126 126 | 
             
                  index++;
         | 
| 127 127 | 
             
                  return data.map(function (item) {
         | 
| 128 128 | 
             
                    var title = showCodeName ? "".concat(item[fieldNameValue], "-").concat(item[fieldNameLabel]) : item[fieldNameLabel];
         | 
| @@ -151,7 +151,7 @@ function List(props, ref) { | |
| 151 151 | 
             
                          })]
         | 
| 152 152 | 
             
                        }),
         | 
| 153 153 | 
             
                        key: item[fieldNameValue],
         | 
| 154 | 
            -
                        children:  | 
| 154 | 
            +
                        children: _loop2(item[fieldNames.children], index)
         | 
| 155 155 | 
             
                      });
         | 
| 156 156 | 
             
                    }
         | 
| 157 157 | 
             
                    return _objectSpread(_objectSpread({}, item), {}, {
         | 
| @@ -170,7 +170,7 @@ function List(props, ref) { | |
| 170 170 | 
             
                    });
         | 
| 171 171 | 
             
                  });
         | 
| 172 172 | 
             
                };
         | 
| 173 | 
            -
                return  | 
| 173 | 
            +
                return _loop2(treeData, -1);
         | 
| 174 174 | 
             
              }, [treeData]);
         | 
| 175 175 | 
             
              var onExpand = function onExpand(newExpandedKeys) {
         | 
| 176 176 | 
             
                setExpandedKeys(newExpandedKeys);
         | 
| @@ -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;
         | 
    
        package/es/ProTreeModal/utils.js
    CHANGED
    
    | @@ -57,7 +57,7 @@ export function getAllKeys(data, fieldNames) { | |
| 57 57 | 
             
             * @param fieldNames
         | 
| 58 58 | 
             
             * @returns
         | 
| 59 59 | 
             
             */
         | 
| 60 | 
            -
             | 
| 60 | 
            +
            var _getParentKey = function getParentKey(key, tree, fieldNames) {
         | 
| 61 61 | 
             
              var parentKey;
         | 
| 62 62 | 
             
              for (var i = 0; i < tree.length; i++) {
         | 
| 63 63 | 
             
                var node = tree[i];
         | 
| @@ -66,16 +66,17 @@ export var getParentKey = function getParentKey(key, tree, fieldNames) { | |
| 66 66 | 
             
                    return item[fieldNames.value] === key;
         | 
| 67 67 | 
             
                  })) {
         | 
| 68 68 | 
             
                    parentKey = node[fieldNames.value];
         | 
| 69 | 
            -
                  } else if ( | 
| 70 | 
            -
                    parentKey =  | 
| 69 | 
            +
                  } else if (_getParentKey(key, node[fieldNames.children], fieldNames)) {
         | 
| 70 | 
            +
                    parentKey = _getParentKey(key, node[fieldNames.children], fieldNames);
         | 
| 71 71 | 
             
                  }
         | 
| 72 72 | 
             
                }
         | 
| 73 73 | 
             
              }
         | 
| 74 74 | 
             
              return parentKey;
         | 
| 75 75 | 
             
            };
         | 
| 76 | 
            +
            export { _getParentKey as getParentKey };
         | 
| 76 77 | 
             
            export function findTreeNodeByKey(treeData, key, fieldNames) {
         | 
| 77 78 | 
             
              var result = [];
         | 
| 78 | 
            -
              var  | 
| 79 | 
            +
              var _traverse = function traverse(node, parents) {
         | 
| 79 80 | 
             
                if (node[fieldNames.value] === key) {
         | 
| 80 81 | 
             
                  result.push.apply(result, [node].concat(_toConsumableArray(parents)));
         | 
| 81 82 | 
             
                  return true;
         | 
| @@ -86,7 +87,7 @@ export function findTreeNodeByKey(treeData, key, fieldNames) { | |
| 86 87 | 
             
                try {
         | 
| 87 88 | 
             
                  for (_iterator.s(); !(_step = _iterator.n()).done;) {
         | 
| 88 89 | 
             
                    var child = _step.value;
         | 
| 89 | 
            -
                    if ( | 
| 90 | 
            +
                    if (_traverse(child, [node].concat(_toConsumableArray(parents)))) {
         | 
| 90 91 | 
             
                      return true;
         | 
| 91 92 | 
             
                    }
         | 
| 92 93 | 
             
                  }
         | 
| @@ -102,7 +103,7 @@ export function findTreeNodeByKey(treeData, key, fieldNames) { | |
| 102 103 | 
             
              try {
         | 
| 103 104 | 
             
                for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
         | 
| 104 105 | 
             
                  var node = _step2.value;
         | 
| 105 | 
            -
                   | 
| 106 | 
            +
                  _traverse(node, []);
         | 
| 106 107 | 
             
                }
         | 
| 107 108 | 
             
              } catch (err) {
         | 
| 108 109 | 
             
                _iterator2.e(err);
         | 
| @@ -121,23 +122,23 @@ export function filterCheckedNodes(data, checkedKeys) { | |
| 121 122 | 
             
              var searchStr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
         | 
| 122 123 | 
             
              var fieldNames = arguments.length > 3 ? arguments[3] : undefined;
         | 
| 123 124 | 
             
              var result = [];
         | 
| 124 | 
            -
              var  | 
| 125 | 
            +
              var _traverse2 = function traverse(node) {
         | 
| 125 126 | 
             
                var _node$fieldNames$chil3;
         | 
| 126 127 | 
             
                var title = node[fieldNames.value] + node[fieldNames.label];
         | 
| 127 128 | 
             
                if (!searchStr) {
         | 
| 128 129 | 
             
                  if (checkedKeys.includes(node[fieldNames.value])) {
         | 
| 129 130 | 
             
                    var _node$fieldNames$chil;
         | 
| 130 | 
            -
                    var _children = (node === null || node === void 0 ? void 0 : (_node$fieldNames$chil = node[fieldNames.children]) === null || _node$fieldNames$chil === void 0 ? void 0 : _node$fieldNames$chil.map( | 
| 131 | 
            +
                    var _children = (node === null || node === void 0 ? void 0 : (_node$fieldNames$chil = node[fieldNames.children]) === null || _node$fieldNames$chil === void 0 ? void 0 : _node$fieldNames$chil.map(_traverse2).filter(Boolean)) || [];
         | 
| 131 132 | 
             
                    return _objectSpread(_objectSpread({}, node), {}, _defineProperty({}, fieldNames.children, _children));
         | 
| 132 133 | 
             
                  }
         | 
| 133 134 | 
             
                } else if (title.indexOf(searchStr) > -1) {
         | 
| 134 135 | 
             
                  var _node$fieldNames$chil2;
         | 
| 135 | 
            -
                  var _children2 = ((_node$fieldNames$chil2 = node[fieldNames.children]) === null || _node$fieldNames$chil2 === void 0 ? void 0 : _node$fieldNames$chil2.map( | 
| 136 | 
            +
                  var _children2 = ((_node$fieldNames$chil2 = node[fieldNames.children]) === null || _node$fieldNames$chil2 === void 0 ? void 0 : _node$fieldNames$chil2.map(_traverse2).filter(Boolean)) || [];
         | 
| 136 137 | 
             
                  return _objectSpread(_objectSpread({}, node), {}, {
         | 
| 137 138 | 
             
                    children: _children2
         | 
| 138 139 | 
             
                  });
         | 
| 139 140 | 
             
                }
         | 
| 140 | 
            -
                var children = (_node$fieldNames$chil3 = node[fieldNames.children]) === null || _node$fieldNames$chil3 === void 0 ? void 0 : _node$fieldNames$chil3.map( | 
| 141 | 
            +
                var children = (_node$fieldNames$chil3 = node[fieldNames.children]) === null || _node$fieldNames$chil3 === void 0 ? void 0 : _node$fieldNames$chil3.map(_traverse2).filter(Boolean);
         | 
| 141 142 | 
             
                if (children && children.length > 0) {
         | 
| 142 143 | 
             
                  return _objectSpread(_objectSpread({}, node), {}, _defineProperty({}, fieldNames.children, children));
         | 
| 143 144 | 
             
                }
         | 
| @@ -149,7 +150,7 @@ export function filterCheckedNodes(data, checkedKeys) { | |
| 149 150 | 
             
              try {
         | 
| 150 151 | 
             
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
         | 
| 151 152 | 
             
                  var node = _step3.value;
         | 
| 152 | 
            -
                  var filtered =  | 
| 153 | 
            +
                  var filtered = _traverse2(node);
         | 
| 153 154 | 
             
                  if (filtered) {
         | 
| 154 155 | 
             
                    result.push(filtered);
         | 
| 155 156 | 
             
                  }
         | 
| @@ -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;
         | 
    
        package/lib/ProAction/index.js
    CHANGED
    
    | @@ -43,7 +43,7 @@ var ProAction = function ProAction(props) { | |
| 43 43 | 
             
              var index = state.index,
         | 
| 44 44 | 
             
                servicesArray = state.servicesArray;
         | 
| 45 45 | 
             
              var length = config.length;
         | 
| 46 | 
            -
              var  | 
| 46 | 
            +
              var _onActionRun = /*#__PURE__*/function () {
         | 
| 47 47 | 
             
                var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(currentIndex, array) {
         | 
| 48 48 | 
             
                  var _actionProps$useReque, _options$onSuccess, _newServicesArray$cur, _newServicesArray$cur2, _newServicesArray$cur3, _actionProps$onAction, _actionProps$continue;
         | 
| 49 49 | 
             
                  var actionProps, newServicesArray, _ref2, service, options, transformResponse, res, data, open, _newServicesArray$cur4, _newServicesArray$cur5, _newServicesArray$cur6, list, errorTitle, isContinue;
         | 
| @@ -140,7 +140,7 @@ var ProAction = function ProAction(props) { | |
| 140 140 | 
             
                        return _context.abrupt("return", false);
         | 
| 141 141 | 
             
                      case 44:
         | 
| 142 142 | 
             
                        if (currentIndex + 1 < length) {
         | 
| 143 | 
            -
                           | 
| 143 | 
            +
                          _onActionRun(currentIndex + 1, newServicesArray);
         | 
| 144 144 | 
             
                        } else {
         | 
| 145 145 | 
             
                          setState({
         | 
| 146 146 | 
             
                            loading: false
         | 
| @@ -158,7 +158,7 @@ var ProAction = function ProAction(props) { | |
| 158 158 | 
             
              }();
         | 
| 159 159 | 
             
              var ChildContent = /*#__PURE__*/_react.default.cloneElement(children, {
         | 
| 160 160 | 
             
                onClick: function onClick() {
         | 
| 161 | 
            -
                   | 
| 161 | 
            +
                  _onActionRun(0, []);
         | 
| 162 162 | 
             
                },
         | 
| 163 163 | 
             
                loading: state.loading
         | 
| 164 164 | 
             
              });
         | 
| @@ -170,7 +170,7 @@ var ProAction = function ProAction(props) { | |
| 170 170 | 
             
              return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
         | 
| 171 171 | 
             
                children: [((_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.mode) === 'confirm' ? (0, _jsxRuntime.jsx)(_antd.Popconfirm, {
         | 
| 172 172 | 
             
                  onConfirm: function onConfirm() {
         | 
| 173 | 
            -
                    return  | 
| 173 | 
            +
                    return _onActionRun(0, []);
         | 
| 174 174 | 
             
                  },
         | 
| 175 175 | 
             
                  title: ((_config$2 = config[0]) === null || _config$2 === void 0 ? void 0 : _config$2.title) || (_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProAction2 = _locale.default.ProAction) === null || _locale$ProAction2 === void 0 ? void 0 : _locale$ProAction2.defaultTitle),
         | 
| 176 176 | 
             
                  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;
         | 
| @@ -594,7 +594,7 @@ var RenderField = function RenderField(_ref) { | |
| 594 594 | 
             
              }) : null;
         | 
| 595 595 | 
             
              return (0, _jsxRuntime.jsx)(_useFieldProps.FieldProvider, {
         | 
| 596 596 | 
             
                value: (_componentProps2 = componentProps) === null || _componentProps2 === void 0 ? void 0 : _componentProps2.otherProps,
         | 
| 597 | 
            -
                children: ! | 
| 597 | 
            +
                children: !originalTitle || ['FormList', 'ProEditTable'].includes(type) ? FormItem : (0, _jsxRuntime.jsx)(_antd.Tooltip, {
         | 
| 598 598 | 
             
                  title: originalTitle,
         | 
| 599 599 | 
             
                  placement: "topLeft",
         | 
| 600 600 | 
             
                  open: changed ? undefined : false,
         | 
| @@ -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;
         | 
| @@ -58,11 +58,15 @@ var RenderToolbar = function RenderToolbar(config) { | |
| 58 58 | 
             
                var addConfig = toolbarProps.find(function (action) {
         | 
| 59 59 | 
             
                  return action.type === 'add';
         | 
| 60 60 | 
             
                });
         | 
| 61 | 
            +
                // 需要持久化显示的ToolBar
         | 
| 62 | 
            +
                var persistenceToolBar = toolbarProps.filter(function (action) {
         | 
| 63 | 
            +
                  return action === null || action === void 0 ? void 0 : action.persistence;
         | 
| 64 | 
            +
                });
         | 
| 61 65 | 
             
                nextToolbarProps = [(0, _objectSpread2.default)((0, _objectSpread2.default)({}, addConfig), {}, {
         | 
| 62 66 | 
             
                  type: 'add',
         | 
| 63 67 | 
             
                  label: (addConfig === null || addConfig === void 0 ? void 0 : addConfig.isSelectModal) ? addConfig.label : emptyBtnText,
         | 
| 64 68 | 
             
                  icon: false
         | 
| 65 | 
            -
                })];
         | 
| 69 | 
            +
                })].concat((0, _toConsumableArray2.default)(persistenceToolBar));
         | 
| 66 70 | 
             
              }
         | 
| 67 71 | 
             
              // 渲染操作按钮前处理下默认数据
         | 
| 68 72 | 
             
              var toolbarBtns = nextToolbarProps.map(function (toolbar) {
         | 
| @@ -134,10 +138,8 @@ var RenderToolbar = function RenderToolbar(config) { | |
| 134 138 | 
             
                  }, "".concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.label).concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.type));
         | 
| 135 139 | 
             
                });
         | 
| 136 140 | 
             
              };
         | 
| 137 | 
            -
              return (0, _jsxRuntime.jsx)( | 
| 138 | 
            -
                children:  | 
| 139 | 
            -
                  children: renderToolbarBtns()
         | 
| 140 | 
            -
                }) : renderToolbarBtns()
         | 
| 141 | 
            +
              return (0, _jsxRuntime.jsx)(_antd.Space, {
         | 
| 142 | 
            +
                children: renderToolbarBtns()
         | 
| 141 143 | 
             
              });
         | 
| 142 144 | 
             
            };
         | 
| 143 145 | 
             
            var _default = exports.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;
         | 
| @@ -247,7 +247,7 @@ var ProEditTable = function ProEditTable(_ref, ref) { | |
| 247 247 | 
             
                    children: disabled || isForbiddenBtn('add') ? _locale.default.ProEditTable.noData : (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
         | 
| 248 248 | 
             
                      children: [_locale.default.ProEditTable.noData, "\uFF0C", (0, _jsxRuntime.jsx)(_components.RenderToolbar, (0, _objectSpread2.default)({}, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), {}, {
         | 
| 249 249 | 
             
                        toolbarProps: toolbarProps === null || toolbarProps === void 0 ? void 0 : (_toolbarProps$filter = toolbarProps.filter) === null || _toolbarProps$filter === void 0 ? void 0 : _toolbarProps$filter.call(toolbarProps, function (item) {
         | 
| 250 | 
            -
                          return item.type === 'add';
         | 
| 250 | 
            +
                          return item.type === 'add' || (item === null || item === void 0 ? void 0 : item.persistence);
         | 
| 251 251 | 
             
                        }),
         | 
| 252 252 | 
             
                        dataSource: []
         | 
| 253 253 | 
             
                      })))]
         | 
| @@ -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[];
         | 
| @@ -12,14 +12,14 @@ var getRandom = exports.getRandom = function getRandom() { | |
| 12 12 | 
             
            };
         | 
| 13 13 | 
             
            // 深层次对比两个对象且取出来差异值
         | 
| 14 14 | 
             
            var difference = exports.difference = function difference(object, base) {
         | 
| 15 | 
            -
              var  | 
| 15 | 
            +
              var _changes = function changes(object, base) {
         | 
| 16 16 | 
             
                return (0, _lodash.transform)(object, function (result, value, key) {
         | 
| 17 17 | 
             
                  if (!(0, _lodash.isEqual)(value, base[key])) {
         | 
| 18 | 
            -
                    result[key] = (0, _lodash.isObject)(value) && (0, _lodash.isObject)(base[key]) ?  | 
| 18 | 
            +
                    result[key] = (0, _lodash.isObject)(value) && (0, _lodash.isObject)(base[key]) ? _changes(value, base[key]) : value;
         | 
| 19 19 | 
             
                  }
         | 
| 20 20 | 
             
                });
         | 
| 21 21 | 
             
              };
         | 
| 22 | 
            -
              return  | 
| 22 | 
            +
              return _changes(object, base);
         | 
| 23 23 | 
             
            };
         | 
| 24 24 | 
             
            // 数组字段循环校验,解决validateFields无法批量校验的问题
         | 
| 25 25 | 
             
            var customValidate = exports.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/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;
         | 
| @@ -244,9 +244,15 @@ var InputNumber = function InputNumber(props) { | |
| 244 244 | 
             
              }
         | 
| 245 245 | 
             
              // 失去焦点时处理数字,
         | 
| 246 246 | 
             
              var handleBlur = function handleBlur(e) {
         | 
| 247 | 
            -
                var _e$target, _props$precision5, _valueProps3, _e$ | 
| 247 | 
            +
                var _e$target, _props$precision5, _valueProps3, _e$target3;
         | 
| 248 248 | 
             
                activateRef.current = false;
         | 
| 249 249 | 
             
                var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
         | 
| 250 | 
            +
                //  为空直接返回
         | 
| 251 | 
            +
                if (value === '') {
         | 
| 252 | 
            +
                  var _e$target2;
         | 
| 253 | 
            +
                  onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
         | 
| 254 | 
            +
                  return false;
         | 
| 255 | 
            +
                }
         | 
| 250 256 | 
             
                if (_max !== undefined && value > _max) {
         | 
| 251 257 | 
             
                  value = _max;
         | 
| 252 258 | 
             
                }
         | 
| @@ -273,7 +279,7 @@ var InputNumber = function InputNumber(props) { | |
| 273 279 | 
             
                    value = limitNumber(value, limit);
         | 
| 274 280 | 
             
                    break;
         | 
| 275 281 | 
             
                }
         | 
| 276 | 
            -
                onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, Number(e === null || e === void 0 ? void 0 : (_e$ | 
| 282 | 
            +
                onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, Number(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value));
         | 
| 277 283 | 
             
              };
         | 
| 278 284 | 
             
              // 获得焦点
         | 
| 279 285 | 
             
              var handleFocus = function handleFocus(e) {
         | 
| @@ -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;
         | 
| @@ -28,9 +28,9 @@ var defaultFieldNames = { | |
| 28 28 | 
             
              value: 'code',
         | 
| 29 29 | 
             
              children: 'children'
         | 
| 30 30 | 
             
            };
         | 
| 31 | 
            -
            var  | 
| 31 | 
            +
            var _filterDataSource = function filterDataSource(dataSource, level, fieldNames) {
         | 
| 32 32 | 
             
              return dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
         | 
| 33 | 
            -
                return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, item), {}, (0, _defineProperty2.default)({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] :  | 
| 33 | 
            +
                return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, item), {}, (0, _defineProperty2.default)({}, (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)));
         | 
| 34 34 | 
             
              });
         | 
| 35 35 | 
             
            };
         | 
| 36 36 | 
             
            var getViewLabel = function getViewLabel(_ref) {
         | 
| @@ -94,7 +94,7 @@ var ProCascader = function ProCascader(props) { | |
| 94 94 | 
             
                enumDataSource = _ref5$ === void 0 ? [] : _ref5$;
         | 
| 95 95 | 
             
              var realDataSource = (0, _react.useMemo)(function () {
         | 
| 96 96 | 
             
                var innerDataSource = dataSource || (addressCode ? enumDataSource : []);
         | 
| 97 | 
            -
                var result = isAddressMode && realLevel === 2 ?  | 
| 97 | 
            +
                var result = isAddressMode && realLevel === 2 ? _filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
         | 
| 98 98 | 
             
                return (0, _index.transformDataName)(result, fieldNames);
         | 
| 99 99 | 
             
              }, [isAddressMode, addressCode, realLevel, dataSource, enumDataSource === null || enumDataSource === void 0 ? void 0 : enumDataSource.length]);
         | 
| 100 100 | 
             
              var _useRequest = (0, _objectSpread3.default)({}, useRequest),
         | 
| @@ -129,7 +129,7 @@ var ProCascader = function ProCascader(props) { | |
| 129 129 | 
             
                          value: fieldNames.value,
         | 
| 130 130 | 
             
                          children: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'
         | 
| 131 131 | 
             
                        });
         | 
| 132 | 
            -
                        serviceData = isAddressMode && realLevel === 2 ?  | 
| 132 | 
            +
                        serviceData = isAddressMode && realLevel === 2 ? _filterDataSource(transFormData, level, fieldNames) : transFormData;
         | 
| 133 133 | 
             
                        setServiceData(serviceData);
         | 
| 134 134 | 
             
                      case 9:
         | 
| 135 135 | 
             
                      case "end":
         | 
| @@ -194,7 +194,7 @@ var ProCascader = function ProCascader(props) { | |
| 194 194 | 
             
              })) === null || _ref7$filter === void 0 ? void 0 : _ref7$filter.join(separator)) || '-' : (defaultLabel === null || defaultLabel === void 0 ? void 0 : (_defaultLabel$filter = defaultLabel.filter(function (item) {
         | 
| 195 195 | 
             
                return !!item;
         | 
| 196 196 | 
             
              })) === null || _defaultLabel$filter === void 0 ? void 0 : _defaultLabel$filter.join(separator)) || '-';
         | 
| 197 | 
            -
              var  | 
| 197 | 
            +
              var _findSelectedOptions = function findSelectedOptions(options, value) {
         | 
| 198 198 | 
             
                var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
         | 
| 199 199 | 
             
                var _value = value !== null && value !== void 0 ? value : [];
         | 
| 200 200 | 
             
                // 基准情况:如果 value 数组为空,且 path 不为空,说明找到了完整的路径
         | 
| @@ -213,7 +213,7 @@ var ProCascader = function ProCascader(props) { | |
| 213 213 | 
             
                if (foundOption) {
         | 
| 214 214 | 
             
                  // 如果找到了匹配的选项,并且还有更多的 value 需要匹配,递归地在子选项中查找
         | 
| 215 215 | 
             
                  if (_value.length > 1 && foundOption.children) {
         | 
| 216 | 
            -
                    return  | 
| 216 | 
            +
                    return _findSelectedOptions(foundOption.children, _value.slice(1), [].concat((0, _toConsumableArray2.default)(path), [foundOption]));
         | 
| 217 217 | 
             
                  }
         | 
| 218 218 | 
             
                  // 如果没有更多的 value 需要匹配,返回当前选项(以及之前的路径)
         | 
| 219 219 | 
             
                  return [].concat((0, _toConsumableArray2.default)(path), [foundOption]);
         | 
| @@ -221,7 +221,9 @@ var ProCascader = function ProCascader(props) { | |
| 221 221 | 
             
                // 如果没有在当前层级的选项中找到匹配的 value,返回 null
         | 
| 222 222 | 
             
                return null;
         | 
| 223 223 | 
             
              };
         | 
| 224 | 
            -
              var _selectedOptions =  | 
| 224 | 
            +
              var _selectedOptions = (0, _react.useMemo)(function () {
         | 
| 225 | 
            +
                return _findSelectedOptions(service ? serviceData : realDataSource, addressValue);
         | 
| 226 | 
            +
              }, [service, serviceData, realDataSource, addressValue]);
         | 
| 225 227 | 
             
              var handleAddressChange = function handleAddressChange(e) {
         | 
| 226 228 | 
             
                var cascaderValue = value === null || value === void 0 ? void 0 : value.slice(0, realLevel);
         | 
| 227 229 | 
             
                if (onChange) {
         | 
| @@ -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;
         | 
| @@ -139,7 +139,7 @@ var splitNameStr = exports.splitNameStr = function splitNameStr(name) { | |
| 139 139 | 
             
              });
         | 
| 140 140 | 
             
            };
         | 
| 141 141 | 
             
            // 过滤掉字段名中包含 '-' 的字段
         | 
| 142 | 
            -
            var  | 
| 142 | 
            +
            var _filterInternalFields = exports.filterInternalFields = function filterInternalFields(values, optimize) {
         | 
| 143 143 | 
             
              if (optimize) {
         | 
| 144 144 | 
             
                return values;
         | 
| 145 145 | 
             
              }
         | 
| @@ -153,20 +153,20 @@ var filterInternalFields = exports.filterInternalFields = function filterInterna | |
| 153 153 | 
             
              }
         | 
| 154 154 | 
             
              if (Array.isArray(nextValues)) {
         | 
| 155 155 | 
             
                return nextValues.map(function (item) {
         | 
| 156 | 
            -
                  return  | 
| 156 | 
            +
                  return _filterInternalFields(item);
         | 
| 157 157 | 
             
                });
         | 
| 158 158 | 
             
              }
         | 
| 159 159 | 
             
              if ((0, _lodash.isObject)(nextValues)) {
         | 
| 160 160 | 
             
                var result = {};
         | 
| 161 161 | 
             
                Object.keys(nextValues).forEach(function (key) {
         | 
| 162 162 | 
             
                  if (key.includes('-')) return;
         | 
| 163 | 
            -
                  result[key] =  | 
| 163 | 
            +
                  result[key] = _filterInternalFields(nextValues[key]);
         | 
| 164 164 | 
             
                });
         | 
| 165 165 | 
             
                return result;
         | 
| 166 166 | 
             
              }
         | 
| 167 167 | 
             
              return nextValues;
         | 
| 168 168 | 
             
            };
         | 
| 169 | 
            -
            var  | 
| 169 | 
            +
            var _getAllNamePath = exports.getAllNamePath = function getAllNamePath(object) {
         | 
| 170 170 | 
             
              var currentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
         | 
| 171 171 | 
             
              var keys = Object.keys(object);
         | 
| 172 172 | 
             
              var resultKeys = [];
         | 
| @@ -180,7 +180,7 @@ var getAllNamePath = exports.getAllNamePath = function getAllNamePath(object) { | |
| 180 180 | 
             
                }
         | 
| 181 181 | 
             
                // 深度获取对象key
         | 
| 182 182 | 
             
                if ((0, _lodash.isObject)(value)) {
         | 
| 183 | 
            -
                  resultKeys.concat( | 
| 183 | 
            +
                  resultKeys.concat(_getAllNamePath(value, [].concat((0, _toConsumableArray2.default)(currentPath), [key])));
         | 
| 184 184 | 
             
                }
         | 
| 185 185 | 
             
                resultKeys.push([].concat((0, _toConsumableArray2.default)(currentPath), [key]));
         | 
| 186 186 | 
             
              });
         | 
| @@ -371,7 +371,7 @@ var customEqualForFun = exports.customEqualForFun = function customEqualForFun(v | |
| 371 371 | 
             
            /**
         | 
| 372 372 | 
             
             * 查询数据中是否包含rowKey
         | 
| 373 373 | 
             
             */
         | 
| 374 | 
            -
            var  | 
| 374 | 
            +
            var _hasRowKey = exports.hasRowKey = function hasRowKey(obj) {
         | 
| 375 375 | 
             
              if ((0, _typeof2.default)(obj) !== 'object' || obj === null) {
         | 
| 376 376 | 
             
                return false;
         | 
| 377 377 | 
             
              }
         | 
| @@ -381,7 +381,7 @@ var hasRowKey = exports.hasRowKey = function hasRowKey(obj) { | |
| 381 381 | 
             
                return true;
         | 
| 382 382 | 
             
              }
         | 
| 383 383 | 
             
              return keys.some(function (key) {
         | 
| 384 | 
            -
                return  | 
| 384 | 
            +
                return _hasRowKey(obj[key]);
         | 
| 385 385 | 
             
              });
         | 
| 386 386 | 
             
            };
         | 
| 387 387 | 
             
            /**
         | 
| @@ -397,7 +397,7 @@ var view = exports.view = function view(obj) { | |
| 397 397 | 
             
                return true;
         | 
| 398 398 | 
             
              }
         | 
| 399 399 | 
             
              return keys.some(function (key) {
         | 
| 400 | 
            -
                return  | 
| 400 | 
            +
                return _hasRowKey(obj[key]);
         | 
| 401 401 | 
             
              });
         | 
| 402 402 | 
             
            };
         | 
| 403 403 | 
             
            /**
         | 
| @@ -433,7 +433,7 @@ var deleteForPath = exports.deleteForPath = function deleteForPath(values, nameP | |
| 433 433 | 
             
             * @param value 选中值
         | 
| 434 434 | 
             
             * @returns {}
         | 
| 435 435 | 
             
             */
         | 
| 436 | 
            -
            var  | 
| 436 | 
            +
            var _findOptionByValue = exports.findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
         | 
| 437 437 | 
             
              if ((0, _lodash.isObject)(value)) {
         | 
| 438 438 | 
             
                return value;
         | 
| 439 439 | 
             
              }
         | 
| @@ -443,7 +443,7 @@ var findOptionByValue = exports.findOptionByValue = function findOptionByValue(t | |
| 443 443 | 
             
                  return (0, _lodash.omit)(node, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
         | 
| 444 444 | 
             
                }
         | 
| 445 445 | 
             
                if (node.children) {
         | 
| 446 | 
            -
                  var foundNode =  | 
| 446 | 
            +
                  var foundNode = _findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
         | 
| 447 447 | 
             
                  if (foundNode) {
         | 
| 448 448 | 
             
                    return (0, _lodash.omit)(foundNode, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
         | 
| 449 449 | 
             
                  }
         |