@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
| @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { | |
| 7 7 | 
             
            exports.recurseGetNodes = exports.onBeforeInjection = void 0;
         | 
| 8 8 | 
             
            var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
         | 
| 9 9 | 
             
            var _config = require("../config");
         | 
| 10 | 
            -
            var  | 
| 10 | 
            +
            var _recurseGetNodes = exports.recurseGetNodes = function recurseGetNodes(type, node, queue) {
         | 
| 11 11 | 
             
              switch (type) {
         | 
| 12 12 | 
             
                // 渐变
         | 
| 13 13 | 
             
                case 'gradation':
         | 
| @@ -26,7 +26,7 @@ var recurseGetNodes = exports.recurseGetNodes = function recurseGetNodes(type, n | |
| 26 26 | 
             
              }
         | 
| 27 27 | 
             
              if (node.childNodes) {
         | 
| 28 28 | 
             
                for (var i = 0; i < node.childNodes.length; i++) {
         | 
| 29 | 
            -
                   | 
| 29 | 
            +
                  _recurseGetNodes(type, node.childNodes[i], queue);
         | 
| 30 30 | 
             
                }
         | 
| 31 31 | 
             
              }
         | 
| 32 32 | 
             
            };
         | 
| @@ -56,7 +56,7 @@ var onBeforeInjection = exports.onBeforeInjection = function onBeforeInjection(_ | |
| 56 56 | 
             
                // 目前只支持处理渐变及fill填充
         | 
| 57 57 | 
             
                var types = Reflect.ownKeys(nodeMap !== null && nodeMap !== void 0 ? nodeMap : {});
         | 
| 58 58 | 
             
                types.forEach(function (typeKey) {
         | 
| 59 | 
            -
                   | 
| 59 | 
            +
                  _recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
         | 
| 60 60 | 
             
                });
         | 
| 61 61 | 
             
                if ((gradList === null || gradList === void 0 ? void 0 : gradList.length) > 0) {
         | 
| 62 62 | 
             
                  nodeMap.gradation.forEach(function (item, index) {
         | 
| @@ -56,7 +56,7 @@ var OpenMenu = function OpenMenu(props) { | |
| 56 56 | 
             
                if (!Array.isArray(result) || !result.length) {
         | 
| 57 57 | 
             
                  return [];
         | 
| 58 58 | 
             
                }
         | 
| 59 | 
            -
                var  | 
| 59 | 
            +
                var _menuDeep = function menuDeep(data) {
         | 
| 60 60 | 
             
                  data.forEach(function (item) {
         | 
| 61 61 | 
             
                    var _item$keyIdPath, _item$keyIdPath2, _item$children;
         | 
| 62 62 | 
             
                    // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
         | 
| @@ -97,7 +97,7 @@ var OpenMenu = function OpenMenu(props) { | |
| 97 97 | 
             
                      if ((_item === null || _item === void 0 ? void 0 : _item.hideInMenu) || ['TAB', 'QUERY', 'BUTTON'].includes(_item === null || _item === void 0 ? void 0 : _item.type)) {
         | 
| 98 98 | 
             
                        delete item.children;
         | 
| 99 99 | 
             
                      } else {
         | 
| 100 | 
            -
                         | 
| 100 | 
            +
                        _menuDeep(item.children);
         | 
| 101 101 | 
             
                      }
         | 
| 102 102 | 
             
                    } else {
         | 
| 103 103 | 
             
                      delete item.children;
         | 
| @@ -105,7 +105,7 @@ var OpenMenu = function OpenMenu(props) { | |
| 105 105 | 
             
                  });
         | 
| 106 106 | 
             
                  return data;
         | 
| 107 107 | 
             
                };
         | 
| 108 | 
            -
                 | 
| 108 | 
            +
                _menuDeep(result);
         | 
| 109 109 | 
             
                return result;
         | 
| 110 110 | 
             
              }, [dataSource]);
         | 
| 111 111 | 
             
              (0, _ahooks.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/lib/ProLayout/index.d.ts
    CHANGED
    
    | @@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{ | |
| 5 5 | 
             
                onSelected: (params: any) => void;
         | 
| 6 6 | 
             
            }>;
         | 
| 7 7 | 
             
            declare const ProLayout: {
         | 
| 8 | 
            -
                (props: ProLayoutProps): JSX.Element;
         | 
| 8 | 
            +
                (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
         | 
| 9 9 | 
             
                defaultProps: {
         | 
| 10 10 | 
             
                    menus: any[];
         | 
| 11 11 | 
             
                    iconfontUrl: string;
         | 
| @@ -17,8 +17,8 @@ declare const ProLayout: { | |
| 17 17 | 
             
                    headerHeight: number;
         | 
| 18 18 | 
             
                    contentStyle: {};
         | 
| 19 19 | 
             
                };
         | 
| 20 | 
            -
                ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
         | 
| 21 | 
            -
                ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
         | 
| 22 | 
            -
                ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
         | 
| 20 | 
            +
                ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 21 | 
            +
                ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 22 | 
            +
                ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 23 23 | 
             
            };
         | 
| 24 24 | 
             
            export default ProLayout;
         | 
| @@ -25,7 +25,7 @@ var getIdsByPathName = exports.getIdsByPathName = function getIdsByPathName(menu | |
| 25 25 | 
             
                _pathName = activeMenu;
         | 
| 26 26 | 
             
              }
         | 
| 27 27 | 
             
              var result;
         | 
| 28 | 
            -
              var  | 
| 28 | 
            +
              var _menuDeep = function menuDeep(menuDeepItem) {
         | 
| 29 29 | 
             
                for (var i = 0; i <= menuDeepItem.length - 1; i++) {
         | 
| 30 30 | 
             
                  var item = menuDeepItem[i];
         | 
| 31 31 | 
             
                  // 只包含一级菜单时,解决URL:/endorsement/demo/123无法选中问题
         | 
| @@ -34,7 +34,7 @@ var getIdsByPathName = exports.getIdsByPathName = function getIdsByPathName(menu | |
| 34 34 | 
             
                    break;
         | 
| 35 35 | 
             
                  }
         | 
| 36 36 | 
             
                  if (Array.isArray(item.children) && item.children.length) {
         | 
| 37 | 
            -
                     | 
| 37 | 
            +
                    _menuDeep(item.children);
         | 
| 38 38 | 
             
                  } else if (((item === null || item === void 0 ? void 0 : item.url) && _pathName.includes(item.url.split('?')[0]) || (item === null || item === void 0 ? void 0 : item.redirectUrl) && _pathName.includes(item.redirectUrl.split('?')[0])) && !result) {
         | 
| 39 39 | 
             
                    // 当循环到最后一层时判断URL是否包含最后一层的URL,解决URL在URL中不存在的场景
         | 
| 40 40 | 
             
                    result = item.keyIdPath;
         | 
| @@ -42,7 +42,7 @@ var getIdsByPathName = exports.getIdsByPathName = function getIdsByPathName(menu | |
| 42 42 | 
             
                  }
         | 
| 43 43 | 
             
                }
         | 
| 44 44 | 
             
              };
         | 
| 45 | 
            -
               | 
| 45 | 
            +
              _menuDeep(menus);
         | 
| 46 46 | 
             
              return result || [];
         | 
| 47 47 | 
             
            };
         | 
| 48 48 | 
             
            /**
         | 
| @@ -52,7 +52,7 @@ var getIdsByPathName = exports.getIdsByPathName = function getIdsByPathName(menu | |
| 52 52 | 
             
             */
         | 
| 53 53 | 
             
            var transformMenu = exports.transformMenu = function transformMenu(menuData, pathPrefix) {
         | 
| 54 54 | 
             
              var data = (0, _toConsumableArray2.default)(menuData);
         | 
| 55 | 
            -
              var  | 
| 55 | 
            +
              var _menuDeep2 = function menuDeep(menuDeepItem) {
         | 
| 56 56 | 
             
                if (!Array.isArray(menuDeepItem) || !menuDeepItem.length) {
         | 
| 57 57 | 
             
                  return [];
         | 
| 58 58 | 
             
                }
         | 
| @@ -85,11 +85,11 @@ var transformMenu = exports.transformMenu = function transformMenu(menuData, pat | |
| 85 85 | 
             
                      childrenItem.keyUrlPath = (0, _toConsumableArray2.default)(item.keyUrlPath);
         | 
| 86 86 | 
             
                      childrenItem.keyIdPath = (0, _toConsumableArray2.default)(item.keyIdPath);
         | 
| 87 87 | 
             
                    });
         | 
| 88 | 
            -
                     | 
| 88 | 
            +
                    _menuDeep2(item.children);
         | 
| 89 89 | 
             
                  }
         | 
| 90 90 | 
             
                });
         | 
| 91 91 | 
             
              };
         | 
| 92 | 
            -
               | 
| 92 | 
            +
              _menuDeep2(data);
         | 
| 93 93 | 
             
              return data;
         | 
| 94 94 | 
             
            };
         | 
| 95 95 | 
             
            /**
         | 
| @@ -144,7 +144,7 @@ var getPathNameKey = exports.getPathNameKey = function getPathNameKey(_ref) { | |
| 144 144 | 
             
              var menus = _ref.menus,
         | 
| 145 145 | 
             
                pathName = _ref.pathName;
         | 
| 146 146 | 
             
              var result;
         | 
| 147 | 
            -
              var  | 
| 147 | 
            +
              var _menuDeep3 = function menuDeep(menuDeepItem) {
         | 
| 148 148 | 
             
                if (!Array.isArray(menuDeepItem) || !menuDeepItem.length) {
         | 
| 149 149 | 
             
                  return [];
         | 
| 150 150 | 
             
                }
         | 
| @@ -158,7 +158,7 @@ var getPathNameKey = exports.getPathNameKey = function getPathNameKey(_ref) { | |
| 158 158 | 
             
                    break;
         | 
| 159 159 | 
             
                  }
         | 
| 160 160 | 
             
                  if (Array.isArray(item.children) && item.children.length) {
         | 
| 161 | 
            -
                     | 
| 161 | 
            +
                    _menuDeep3(item.children);
         | 
| 162 162 | 
             
                  } else if (((item === null || item === void 0 ? void 0 : item.url) && pathName.includes(item.url.split('?')[0]) || (item === null || item === void 0 ? void 0 : item.redirectUrl) && pathName.includes(item.redirectUrl.split('?')[0])) && !result) {
         | 
| 163 163 | 
             
                    // URL未匹配时,循环到最后一层时判断URL是否包含最后一层的URL,解决URL在URL中不存在的场景
         | 
| 164 164 | 
             
                    result = item.keyIdPath;
         | 
| @@ -166,6 +166,6 @@ var getPathNameKey = exports.getPathNameKey = function getPathNameKey(_ref) { | |
| 166 166 | 
             
                  }
         | 
| 167 167 | 
             
                }
         | 
| 168 168 | 
             
              };
         | 
| 169 | 
            -
               | 
| 169 | 
            +
              _menuDeep3(menus);
         | 
| 170 170 | 
             
              return result;
         | 
| 171 171 | 
             
            };
         | 
    
        package/lib/ProSelect/index.d.ts
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import { PropSelectProps, ProSelectAction } from './propsType';
         | 
| 3 3 | 
             
            import './index.less';
         | 
| 4 | 
            -
            export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
         | 
| 4 | 
            +
            export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
         | 
| 6 6 | 
             
            export default _default;
         | 
    
        package/lib/ProSelect/index.js
    CHANGED
    
    | @@ -341,7 +341,7 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) { | |
| 341 341 | 
             
                          title: OptionRender(item),
         | 
| 342 342 | 
             
                          children: OptionRender(item)
         | 
| 343 343 | 
             
                        }) : (0, _jsxRuntime.jsx)("span", {
         | 
| 344 | 
            -
                          title: "".concat(item[code], "-").concat(item[label]),
         | 
| 344 | 
            +
                          title: selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label],
         | 
| 345 345 | 
             
                          children: selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label]
         | 
| 346 346 | 
             
                        })
         | 
| 347 347 | 
             
                      }, item[code])
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            export declare const MenuItem: (props: any) => JSX.Element;
         | 
| 1 | 
            +
            export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default MenuItem;
         | 
| @@ -1,3 +1,3 @@ | |
| 1 1 | 
             
            import { ProStepItem } from '../../propsType';
         | 
| 2 | 
            -
            declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
         | 
| 2 | 
            +
            declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
         | 
| 3 3 | 
             
            export default _default;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { ProStepPropsType } from '../../propsType';
         | 
| 2 2 | 
             
            export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
         | 
| 3 3 | 
             
                errorCollection: object;
         | 
| 4 | 
            -
            }) => JSX.Element;
         | 
| 4 | 
            +
            }) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            export default Step;
         | 
    
        package/lib/ProStep/index.d.ts
    CHANGED
    
    | @@ -4,9 +4,9 @@ import './style/index.less'; | |
| 4 4 | 
             
            export declare const ProStepContext: import("react").Context<any>;
         | 
| 5 5 | 
             
            export declare const useStep: () => any;
         | 
| 6 6 | 
             
            declare const ProStep: {
         | 
| 7 | 
            -
                ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
         | 
| 7 | 
            +
                ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
         | 
| 8 8 | 
             
                useStep: () => any;
         | 
| 9 | 
            -
                Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
         | 
| 9 | 
            +
                Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
         | 
| 10 10 | 
             
                Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
         | 
| 11 11 | 
             
            };
         | 
| 12 12 | 
             
            export default ProStep;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const ResizableLine: () => JSX.Element;
         | 
| 1 | 
            +
            declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default ResizableLine;
         | 
    
        package/lib/ProTable/index.d.ts
    CHANGED
    
    | @@ -5,7 +5,7 @@ export declare const defaultPage: { | |
| 5 5 | 
             
                pageNum: number;
         | 
| 6 6 | 
             
                pageSize: number;
         | 
| 7 7 | 
             
            };
         | 
| 8 | 
            -
            declare function ProTable(props: ProTableProps): JSX.Element;
         | 
| 8 | 
            +
            declare function ProTable(props: ProTableProps): import("react/jsx-runtime").JSX.Element;
         | 
| 9 9 | 
             
            declare namespace ProTable {
         | 
| 10 10 | 
             
                var defaultProps: {
         | 
| 11 11 | 
             
                    quickConfig: boolean;
         | 
| @@ -72,11 +72,12 @@ export interface PaginationProps { | |
| 72 72 | 
             
                pageNum: number;
         | 
| 73 73 | 
             
                pageSize: number;
         | 
| 74 74 | 
             
            }
         | 
| 75 | 
            +
            type RowSelectionTypeWithPick = Pick<TableProps<any>, 'rowSelection'>['rowSelection'];
         | 
| 75 76 | 
             
            export interface RequestOptions<T, R> {
         | 
| 76 77 | 
             
                form?: FormInstance;
         | 
| 77 78 | 
             
                isResetQuery?: boolean;
         | 
| 78 79 | 
             
                rowKey?: string | GetRowKey<R>;
         | 
| 79 | 
            -
                rowSelection?: boolean;
         | 
| 80 | 
            +
                rowSelection?: boolean | RowSelectionTypeWithPick;
         | 
| 80 81 | 
             
                rowSelectType?: RowSelectionType;
         | 
| 81 82 | 
             
                rowSelections?: boolean;
         | 
| 82 83 | 
             
                extraParams?: Partial<T>;
         | 
| @@ -11,7 +11,7 @@ declare function useAntdTable<I, R extends Record<string, any>, S extends Servic | |
| 11 11 | 
             
                    selectedRowKeys: Key[];
         | 
| 12 12 | 
             
                    onChange(rowKeys: Key[], rows: any[]): void;
         | 
| 13 13 | 
             
                    onSelectAll: (selected: boolean) => void;
         | 
| 14 | 
            -
                    getCheckboxProps: () => {
         | 
| 14 | 
            +
                    getCheckboxProps: (record?: any) => {
         | 
| 15 15 | 
             
                        className: string;
         | 
| 16 16 | 
             
                    };
         | 
| 17 17 | 
             
                    selections: boolean | ({
         | 
| @@ -57,7 +57,7 @@ declare function useAntdTable<I, R extends Record<string, any>, S extends Servic | |
| 57 57 | 
             
                        selectedRowKeys: Key[];
         | 
| 58 58 | 
             
                        onChange(rowKeys: Key[], rows: any[]): void;
         | 
| 59 59 | 
             
                        onSelectAll: (selected: boolean) => void;
         | 
| 60 | 
            -
                        getCheckboxProps: () => {
         | 
| 60 | 
            +
                        getCheckboxProps: (record?: any) => {
         | 
| 61 61 | 
             
                            className: string;
         | 
| 62 62 | 
             
                        };
         | 
| 63 63 | 
             
                        selections: boolean | ({
         | 
| @@ -320,7 +320,7 @@ function useAntdTable(service, options, useRequestOptions) { | |
| 320 320 | 
             
                  }));
         | 
| 321 321 | 
             
                }
         | 
| 322 322 | 
             
              }, [extraParams]);
         | 
| 323 | 
            -
              var  | 
| 323 | 
            +
              var _rowSelection = {
         | 
| 324 324 | 
             
                fixed: true,
         | 
| 325 325 | 
             
                type: rowSelectType,
         | 
| 326 326 | 
             
                columnWidth: rowSelections ? 64 : undefined,
         | 
| @@ -362,7 +362,7 @@ function useAntdTable(service, options, useRequestOptions) { | |
| 362 362 | 
             
                    });
         | 
| 363 363 | 
             
                  }
         | 
| 364 364 | 
             
                },
         | 
| 365 | 
            -
                getCheckboxProps: function getCheckboxProps() {
         | 
| 365 | 
            +
                getCheckboxProps: function getCheckboxProps(record) {
         | 
| 366 366 | 
             
                  return {
         | 
| 367 367 | 
             
                    className: allSelected && rowSelections ? 'checkbox-disabled' : ''
         | 
| 368 368 | 
             
                  };
         | 
| @@ -431,6 +431,20 @@ function useAntdTable(service, options, useRequestOptions) { | |
| 431 431 | 
             
                  }()
         | 
| 432 432 | 
             
                }] : false
         | 
| 433 433 | 
             
              };
         | 
| 434 | 
            +
              var rowSelection = (0, _lodash.isObject)(returnRowSelection) ? (0, _lodash.merge)(_rowSelection, returnRowSelection) : _rowSelection;
         | 
| 435 | 
            +
              if ((0, _lodash.isObject)(returnRowSelection) && !(0, _lodash.isEqual)(rowSelection, _rowSelection)) {
         | 
| 436 | 
            +
                // getCheckboxProps需要特殊兼容原有的逻辑,特殊处理
         | 
| 437 | 
            +
                var isHasGetCheckboxProps = Reflect.ownKeys(returnRowSelection).includes('getCheckboxProps');
         | 
| 438 | 
            +
                if (isHasGetCheckboxProps) {
         | 
| 439 | 
            +
                  (0, _lodash.set)(rowSelection, 'getCheckboxProps', function (record) {
         | 
| 440 | 
            +
                    var _rowSelection$getChec;
         | 
| 441 | 
            +
                    var passReturnObjects = (_rowSelection$getChec = rowSelection.getCheckboxProps(record)) !== null && _rowSelection$getChec !== void 0 ? _rowSelection$getChec : {};
         | 
| 442 | 
            +
                    return (0, _objectSpread2.default)({
         | 
| 443 | 
            +
                      className: allSelected && rowSelections ? 'checkbox-disabled' : ''
         | 
| 444 | 
            +
                    }, passReturnObjects);
         | 
| 445 | 
            +
                  });
         | 
| 446 | 
            +
                }
         | 
| 447 | 
            +
              }
         | 
| 434 448 | 
             
              var selectedTip = allSelected || selectedRowKeys.length ? (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTable5 = _locale.default.ProTable) === null || _locale$ProTable5 === void 0 ? void 0 : _locale$ProTable5.selectAll, {
         | 
| 435 449 | 
             
                selectedNum: allSelected ? total : selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length
         | 
| 436 450 | 
             
              }) : null;
         | 
    
        package/lib/ProTable/utils.js
    CHANGED
    
    | @@ -389,15 +389,15 @@ var getParentElement = exports.getParentElement = function getParentElement(elem | |
| 389 389 | 
             
              if (!element || !name) {
         | 
| 390 390 | 
             
                return result;
         | 
| 391 391 | 
             
              }
         | 
| 392 | 
            -
              var  | 
| 392 | 
            +
              var _searchDom = function searchDom(element, name) {
         | 
| 393 393 | 
             
                var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'className';
         | 
| 394 394 | 
             
                if (element.parentElement[type] === name) {
         | 
| 395 395 | 
             
                  result = element.parentElement;
         | 
| 396 396 | 
             
                  return false;
         | 
| 397 397 | 
             
                }
         | 
| 398 | 
            -
                 | 
| 398 | 
            +
                _searchDom(element.parentElement, name, type = 'className');
         | 
| 399 399 | 
             
              };
         | 
| 400 | 
            -
               | 
| 400 | 
            +
              _searchDom(element, name, type = 'className');
         | 
| 401 401 | 
             
              return result;
         | 
| 402 402 | 
             
            };
         | 
| 403 403 | 
             
            /**
         | 
| @@ -1,3 +1,3 @@ | |
| 1 1 | 
             
            import type { DevToolsPropsType } from '../../propsType';
         | 
| 2 | 
            -
            declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
         | 
| 2 | 
            +
            declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
         | 
| 3 3 | 
             
            export default PrdTools;
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import type { ProThemeToolsProps } from './propsType';
         | 
| 2 2 | 
             
            declare const ProThemeTools: {
         | 
| 3 | 
            -
                ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): JSX.Element;
         | 
| 3 | 
            +
                ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
                defaultProps: {
         | 
| 5 5 | 
             
                    size: number;
         | 
| 6 6 | 
             
                    mode: string;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            import { ProTooltipPropsType } from './propsType';
         | 
| 2 2 | 
             
            import './style/index.less';
         | 
| 3 | 
            -
            declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
         | 
| 3 | 
            +
            declare const ProTooltip: (props: ProTooltipPropsType) => import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
            export default ProTooltip;
         | 
| @@ -12,6 +12,6 @@ interface ListProps { | |
| 12 12 | 
             
                handleFilterClose?: (code: string) => void;
         | 
| 13 13 | 
             
                optionRender?: (item: any, searchStr?: string) => string | ReactNode;
         | 
| 14 14 | 
             
            }
         | 
| 15 | 
            -
            declare function List(props: ListProps): JSX.Element;
         | 
| 15 | 
            +
            declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
         | 
| 16 16 | 
             
            declare const _default: import("react").MemoExoticComponent<typeof List>;
         | 
| 17 17 | 
             
            export default _default;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import { PropTreeSelectProps } from './propsType';
         | 
| 3 | 
            -
            export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
         | 
| 3 | 
            +
            export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
            declare const _default: React.ForwardRefExoticComponent<PropTreeSelectProps & React.RefAttributes<unknown>>;
         | 
| 5 5 | 
             
            export default _default;
         | 
| @@ -102,14 +102,14 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 102 102 | 
             
                }
         | 
| 103 103 | 
             
                var count = 0;
         | 
| 104 104 | 
             
                var result = [];
         | 
| 105 | 
            -
                var  | 
| 105 | 
            +
                var _loopCount = function loopCount(data) {
         | 
| 106 106 | 
             
                  data.map(function (item) {
         | 
| 107 107 | 
             
                    count += 1;
         | 
| 108 108 | 
             
                    var children = item.children,
         | 
| 109 109 | 
             
                      other = (0, _objectWithoutProperties2.default)(item, _excluded2);
         | 
| 110 110 | 
             
                    result.push((0, _objectSpread2.default)({}, other));
         | 
| 111 111 | 
             
                    if (item.children) {
         | 
| 112 | 
            -
                       | 
| 112 | 
            +
                      _loopCount(item.children);
         | 
| 113 113 | 
             
                    }
         | 
| 114 114 | 
             
                    return item;
         | 
| 115 115 | 
             
                  });
         | 
| @@ -117,7 +117,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 117 117 | 
             
                if ((dictsEnum === null || dictsEnum === void 0 ? void 0 : dictsEnum.length) > 10) {
         | 
| 118 118 | 
             
                  return dictsEnum;
         | 
| 119 119 | 
             
                }
         | 
| 120 | 
            -
                 | 
| 120 | 
            +
                _loopCount(dictsEnum);
         | 
| 121 121 | 
             
                if (count <= 10) {
         | 
| 122 122 | 
             
                  return result;
         | 
| 123 123 | 
             
                }
         | 
| @@ -131,17 +131,17 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 131 131 | 
             
               */
         | 
| 132 132 | 
             
              var transferDataSource = function transferDataSource(dataArr, showCodeAndName) {
         | 
| 133 133 | 
             
                var copyData = (0, _lodash.cloneDeep)(dataArr);
         | 
| 134 | 
            -
                var  | 
| 134 | 
            +
                var _loop = function loop(arr) {
         | 
| 135 135 | 
             
                  arr.map(function (item) {
         | 
| 136 136 | 
             
                    item[label] = "".concat(item[code], "-").concat(item[label]);
         | 
| 137 137 | 
             
                    if (item.children) {
         | 
| 138 | 
            -
                       | 
| 138 | 
            +
                      _loop(item.children);
         | 
| 139 139 | 
             
                    }
         | 
| 140 140 | 
             
                    return item;
         | 
| 141 141 | 
             
                  });
         | 
| 142 142 | 
             
                };
         | 
| 143 143 | 
             
                if (showCodeAndName) {
         | 
| 144 | 
            -
                   | 
| 144 | 
            +
                  _loop(copyData);
         | 
| 145 145 | 
             
                }
         | 
| 146 146 | 
             
                return copyData;
         | 
| 147 147 | 
             
              };
         | 
| @@ -235,19 +235,19 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 235 235 | 
             
                  return viewEmpty;
         | 
| 236 236 | 
             
                }
         | 
| 237 237 | 
             
                var labelResult = [];
         | 
| 238 | 
            -
                var  | 
| 238 | 
            +
                var _queryLabel = function queryLabel(dicts) {
         | 
| 239 239 | 
             
                  return dicts.map(function (item) {
         | 
| 240 240 | 
             
                    if (value.includes(item[code])) {
         | 
| 241 241 | 
             
                      var labelText = item[label];
         | 
| 242 242 | 
             
                      labelResult.push(labelText);
         | 
| 243 243 | 
             
                    }
         | 
| 244 244 | 
             
                    if (item.children) {
         | 
| 245 | 
            -
                       | 
| 245 | 
            +
                      _queryLabel(item.children);
         | 
| 246 246 | 
             
                    }
         | 
| 247 247 | 
             
                    return item;
         | 
| 248 248 | 
             
                  });
         | 
| 249 249 | 
             
                };
         | 
| 250 | 
            -
                 | 
| 250 | 
            +
                _queryLabel(origDataSource);
         | 
| 251 251 | 
             
                return labelResult === null || labelResult === void 0 ? void 0 : labelResult.join(',');
         | 
| 252 252 | 
             
              };
         | 
| 253 253 | 
             
              // 纯展示处理
         | 
| @@ -285,7 +285,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 285 285 | 
             
               * @param node 每个节点数据对象
         | 
| 286 286 | 
             
               * @returns 整个react节点树
         | 
| 287 287 | 
             
               */
         | 
| 288 | 
            -
              var  | 
| 288 | 
            +
              var _renderTreeNode = function renderTreeNode(node, grade) {
         | 
| 289 289 | 
             
                var children = node.children,
         | 
| 290 290 | 
             
                  icon = node.icon;
         | 
| 291 291 | 
             
                var labelText = node[label];
         | 
| @@ -332,7 +332,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 332 332 | 
             
                  checkable: node.checkable,
         | 
| 333 333 | 
             
                  className: "node-val-".concat(value),
         | 
| 334 334 | 
             
                  children: children.map(function (child) {
         | 
| 335 | 
            -
                    return  | 
| 335 | 
            +
                    return _renderTreeNode(child, sonGrade);
         | 
| 336 336 | 
             
                  })
         | 
| 337 337 | 
             
                }, key);
         | 
| 338 338 | 
             
              };
         | 
| @@ -343,7 +343,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 343 343 | 
             
               * @returns 处理后得树
         | 
| 344 344 | 
             
               */
         | 
| 345 345 | 
             
              function filterTree(sourceList, keyWord) {
         | 
| 346 | 
            -
                var  | 
| 346 | 
            +
                var _filterData = function filterData(data) {
         | 
| 347 347 | 
             
                  var currentAllNodeChild = []; // 记录当前节点得所有子节点
         | 
| 348 348 | 
             
                  // 遍历数组
         | 
| 349 349 | 
             
                  for (var i = 0; i < data.length; i++) {
         | 
| @@ -351,7 +351,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 351 351 | 
             
                    // 一直递归到最后一层子节点
         | 
| 352 352 | 
             
                    var currentNodeChild = []; // 记录当前节点下得子节点匹配到的节点个数
         | 
| 353 353 | 
             
                    if (item.children && item.children.length > 0) {
         | 
| 354 | 
            -
                      currentNodeChild =  | 
| 354 | 
            +
                      currentNodeChild = _filterData(item.children);
         | 
| 355 355 | 
             
                    }
         | 
| 356 356 | 
             
                    // 迭代完子节点向上回溯,如果有匹配到得子节点,那么加入当前节点得孩子对象上,否则加入得是空数组
         | 
| 357 357 | 
             
                    item.children = currentNodeChild;
         | 
| @@ -365,7 +365,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 365 365 | 
             
                  }
         | 
| 366 366 | 
             
                  return currentAllNodeChild;
         | 
| 367 367 | 
             
                };
         | 
| 368 | 
            -
                sourceList =  | 
| 368 | 
            +
                sourceList = _filterData(sourceList);
         | 
| 369 369 | 
             
                return sourceList;
         | 
| 370 370 | 
             
              }
         | 
| 371 371 | 
             
              var searchTreeEvent = function searchTreeEvent(searchVal) {
         | 
| @@ -382,7 +382,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 382 382 | 
             
              };
         | 
| 383 383 | 
             
              function findTreeNode(treeList, nodeValue) {
         | 
| 384 384 | 
             
                var result = {};
         | 
| 385 | 
            -
                var  | 
| 385 | 
            +
                var _filterData2 = function filterData(data) {
         | 
| 386 386 | 
             
                  for (var i = 0; i < data.length; i++) {
         | 
| 387 387 | 
             
                    var item = data[i];
         | 
| 388 388 | 
             
                    if (item[code] === nodeValue || Array.isArray(nodeValue) && nodeValue.includes(item[code])) {
         | 
| @@ -394,11 +394,11 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 394 394 | 
             
                    }
         | 
| 395 395 | 
             
                    // 一直递归到最后一层子节点
         | 
| 396 396 | 
             
                    if (item.children && item.children.length > 0) {
         | 
| 397 | 
            -
                       | 
| 397 | 
            +
                      _filterData2(item.children);
         | 
| 398 398 | 
             
                    }
         | 
| 399 399 | 
             
                  }
         | 
| 400 400 | 
             
                };
         | 
| 401 | 
            -
                 | 
| 401 | 
            +
                _filterData2(treeList);
         | 
| 402 402 | 
             
                return result;
         | 
| 403 403 | 
             
              }
         | 
| 404 404 | 
             
              function getLabelByValue(treeList, nodeValue) {
         | 
| @@ -535,7 +535,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) { | |
| 535 535 | 
             
                  }
         | 
| 536 536 | 
             
                }, treeProps), {}, {
         | 
| 537 537 | 
             
                  children: selectList.map(function (node) {
         | 
| 538 | 
            -
                    return  | 
| 538 | 
            +
                    return _renderTreeNode(node, 1);
         | 
| 539 539 | 
             
                  })
         | 
| 540 540 | 
             
                }))
         | 
| 541 541 | 
             
              });
         | 
| @@ -4,6 +4,6 @@ declare function SearchTitle(props: { | |
| 4 4 | 
             
                label?: string;
         | 
| 5 5 | 
             
                showEllipse?: boolean;
         | 
| 6 6 | 
             
                ellipseWidth?: string;
         | 
| 7 | 
            -
            }): JSX.Element;
         | 
| 7 | 
            +
            }): import("react/jsx-runtime").JSX.Element;
         | 
| 8 8 | 
             
            declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
         | 
| 9 9 | 
             
            export default _default;
         | 
| @@ -23,5 +23,5 @@ interface ListProps extends ProTreeProps { | |
| 23 23 | 
             
                handleFilterClose?: (code: string, node?: any) => void;
         | 
| 24 24 | 
             
                [key: string]: any;
         | 
| 25 25 | 
             
            }
         | 
| 26 | 
            -
            declare function List(props: ListProps): JSX.Element;
         | 
| 26 | 
            +
            declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
         | 
| 27 27 | 
             
            export default List;
         | 
| @@ -303,7 +303,7 @@ function List(props) { | |
| 303 303 | 
             
                }, onlyKey);
         | 
| 304 304 | 
             
              };
         | 
| 305 305 | 
             
              function fn() {
         | 
| 306 | 
            -
                var  | 
| 306 | 
            +
                var _loop = function loop(data, index) {
         | 
| 307 307 | 
             
                  index++;
         | 
| 308 308 | 
             
                  var treeRow = data.map(function (item) {
         | 
| 309 309 | 
             
                    var nodeClass = 'pro-tree-tree-node ';
         | 
| @@ -325,7 +325,7 @@ function List(props) { | |
| 325 325 | 
             
                      return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
         | 
| 326 326 | 
             
                        title: nodeTitle,
         | 
| 327 327 | 
             
                        key: (item === null || item === void 0 ? void 0 : item.key) || item[fieldNameValue],
         | 
| 328 | 
            -
                        children:  | 
| 328 | 
            +
                        children: _loop(item[fieldNames.children], index)
         | 
| 329 329 | 
             
                      });
         | 
| 330 330 | 
             
                    }
         | 
| 331 331 | 
             
                    return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
         | 
| @@ -342,7 +342,7 @@ function List(props) { | |
| 342 342 | 
             
                if (searchStr) {
         | 
| 343 343 | 
             
                  newTreeData = (0, _utils.filterCheckedNodes)(originalTreeData, [], searchStr, fieldNames);
         | 
| 344 344 | 
             
                }
         | 
| 345 | 
            -
                return  | 
| 345 | 
            +
                return _loop(newTreeData, -1);
         | 
| 346 346 | 
             
              }
         | 
| 347 347 | 
             
              var _treeData = fn();
         | 
| 348 348 | 
             
              var onExpand = function onExpand(newExpandedKeys, nextPara) {
         | 
    
        package/lib/ProTree/index.d.ts
    CHANGED