@zat-design/sisyphus-react 3.6.4-beta.2 → 3.6.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ProEditTable/utils/tools.d.ts +1 -1
- package/es/ProEditTable/utils/tools.js +5 -4
- package/es/ProForm/components/base/InputNumber/index.js +1 -1
- package/lib/ProEditTable/utils/tools.d.ts +1 -1
- package/lib/ProEditTable/utils/tools.js +5 -4
- package/lib/ProForm/components/base/InputNumber/index.js +1 -1
- package/package.json +1 -1
| @@ -25,7 +25,7 @@ export declare const onDelete: ({ name, form, virtualKey, selectedRowKeys }: { | |
| 25 25 | 
             
             * @param params 当前列的参数
         | 
| 26 26 | 
             
             * @param rowDisabled 行禁用参数
         | 
| 27 27 | 
             
             */
         | 
| 28 | 
            -
            export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled }: any) => any;
         | 
| 28 | 
            +
            export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled, }: any) => any;
         | 
| 29 29 | 
             
            /** 表格自动滚动到报错位置
         | 
| 30 30 | 
             
             */
         | 
| 31 31 | 
             
            export declare const handleScrollToError: () => void;
         | 
| @@ -86,6 +86,7 @@ export var onDelete = function onDelete(_ref) { | |
| 86 86 | 
             
             * @param rowDisabled 行禁用参数
         | 
| 87 87 | 
             
             */
         | 
| 88 88 | 
             
            export var getDisabled = function getDisabled(_ref2) {
         | 
| 89 | 
            +
              var _ref3, _column$disabled;
         | 
| 89 90 | 
             
              var globalControl = _ref2.globalControl,
         | 
| 90 91 | 
             
                formDisabled = _ref2.formDisabled,
         | 
| 91 92 | 
             
                column = _ref2.column,
         | 
| @@ -147,7 +148,7 @@ export var getDisabled = function getDisabled(_ref2) { | |
| 147 148 | 
             
              if (isFunction(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled)) {
         | 
| 148 149 | 
             
                return convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled.apply(columnFieldProps, _toConsumableArray(params)));
         | 
| 149 150 | 
             
              }
         | 
| 150 | 
            -
              return convertToBoolean(column === null || column === void 0 ? void 0 : column.disabled)  | 
| 151 | 
            +
              return convertToBoolean((_ref3 = (_column$disabled = column === null || column === void 0 ? void 0 : column.disabled) !== null && _column$disabled !== void 0 ? _column$disabled : columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled) !== null && _ref3 !== void 0 ? _ref3 : tabledDisabled);
         | 
| 151 152 | 
             
            };
         | 
| 152 153 | 
             
            /** 表格自动滚动到报错位置
         | 
| 153 154 | 
             
             */
         | 
| @@ -164,9 +165,9 @@ export var handleScrollToError = function handleScrollToError() { | |
| 164 165 | 
             
                    while (previousSibling) {
         | 
| 165 166 | 
             
                      if (previousSibling.nodeType === 1) {
         | 
| 166 167 | 
             
                        var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
         | 
| 167 | 
            -
                        var  | 
| 168 | 
            -
                           | 
| 169 | 
            -
                          width =  | 
| 168 | 
            +
                        var _ref4 = previousSibling.getBoundingClientRect() || {},
         | 
| 169 | 
            +
                          _ref4$width = _ref4.width,
         | 
| 170 | 
            +
                          width = _ref4$width === void 0 ? 0 : _ref4$width;
         | 
| 170 171 | 
             
                        childOffsetLeft += width;
         | 
| 171 172 | 
             
                        if ((_previousSibling = previousSibling) === null || _previousSibling === void 0 ? void 0 : (_previousSibling$clas = _previousSibling.classList) === null || _previousSibling$clas === void 0 ? void 0 : (_previousSibling$clas2 = (_previousSibling$clas3 = _previousSibling$clas).contains) === null || _previousSibling$clas2 === void 0 ? void 0 : _previousSibling$clas2.call(_previousSibling$clas3, 'ant-table-cell-fix-left')) {
         | 
| 172 173 | 
             
                          childFixedLeft += width;
         | 
| @@ -76,7 +76,7 @@ var InputNumber = function InputNumber(props) { | |
| 76 76 | 
             
              var _parser = function parser(value, precision) {
         | 
| 77 77 | 
             
                var num = Number(value.replace(/[\s,]+/g, ''));
         | 
| 78 78 | 
             
                if (value === '') return value;
         | 
| 79 | 
            -
                return Number.isNaN(num) || !precision ? value : num.toFixed(precision);
         | 
| 79 | 
            +
                return Number.isNaN(num) || !precision && precision !== 0 ? value : num.toFixed(precision);
         | 
| 80 80 | 
             
              };
         | 
| 81 81 | 
             
              if (valueType) {
         | 
| 82 82 | 
             
                switch (valueType) {
         | 
| @@ -25,7 +25,7 @@ export declare const onDelete: ({ name, form, virtualKey, selectedRowKeys }: { | |
| 25 25 | 
             
             * @param params 当前列的参数
         | 
| 26 26 | 
             
             * @param rowDisabled 行禁用参数
         | 
| 27 27 | 
             
             */
         | 
| 28 | 
            -
            export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled }: any) => any;
         | 
| 28 | 
            +
            export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled, }: any) => any;
         | 
| 29 29 | 
             
            /** 表格自动滚动到报错位置
         | 
| 30 30 | 
             
             */
         | 
| 31 31 | 
             
            export declare const handleScrollToError: () => void;
         | 
| @@ -93,6 +93,7 @@ var onDelete = exports.onDelete = function onDelete(_ref) { | |
| 93 93 | 
             
             * @param rowDisabled 行禁用参数
         | 
| 94 94 | 
             
             */
         | 
| 95 95 | 
             
            var getDisabled = exports.getDisabled = function getDisabled(_ref2) {
         | 
| 96 | 
            +
              var _ref3, _column$disabled;
         | 
| 96 97 | 
             
              var globalControl = _ref2.globalControl,
         | 
| 97 98 | 
             
                formDisabled = _ref2.formDisabled,
         | 
| 98 99 | 
             
                column = _ref2.column,
         | 
| @@ -154,7 +155,7 @@ var getDisabled = exports.getDisabled = function getDisabled(_ref2) { | |
| 154 155 | 
             
              if ((0, _lodash.isFunction)(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled)) {
         | 
| 155 156 | 
             
                return convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled.apply(columnFieldProps, (0, _toConsumableArray2.default)(params)));
         | 
| 156 157 | 
             
              }
         | 
| 157 | 
            -
              return convertToBoolean(column === null || column === void 0 ? void 0 : column.disabled)  | 
| 158 | 
            +
              return convertToBoolean((_ref3 = (_column$disabled = column === null || column === void 0 ? void 0 : column.disabled) !== null && _column$disabled !== void 0 ? _column$disabled : columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled) !== null && _ref3 !== void 0 ? _ref3 : tabledDisabled);
         | 
| 158 159 | 
             
            };
         | 
| 159 160 | 
             
            /** 表格自动滚动到报错位置
         | 
| 160 161 | 
             
             */
         | 
| @@ -171,9 +172,9 @@ var handleScrollToError = exports.handleScrollToError = function handleScrollToE | |
| 171 172 | 
             
                    while (previousSibling) {
         | 
| 172 173 | 
             
                      if (previousSibling.nodeType === 1) {
         | 
| 173 174 | 
             
                        var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
         | 
| 174 | 
            -
                        var  | 
| 175 | 
            -
                           | 
| 176 | 
            -
                          width =  | 
| 175 | 
            +
                        var _ref4 = previousSibling.getBoundingClientRect() || {},
         | 
| 176 | 
            +
                          _ref4$width = _ref4.width,
         | 
| 177 | 
            +
                          width = _ref4$width === void 0 ? 0 : _ref4$width;
         | 
| 177 178 | 
             
                        childOffsetLeft += width;
         | 
| 178 179 | 
             
                        if ((_previousSibling = previousSibling) === null || _previousSibling === void 0 ? void 0 : (_previousSibling$clas = _previousSibling.classList) === null || _previousSibling$clas === void 0 ? void 0 : (_previousSibling$clas2 = (_previousSibling$clas3 = _previousSibling$clas).contains) === null || _previousSibling$clas2 === void 0 ? void 0 : _previousSibling$clas2.call(_previousSibling$clas3, 'ant-table-cell-fix-left')) {
         | 
| 179 180 | 
             
                          childFixedLeft += width;
         | 
| @@ -80,7 +80,7 @@ var InputNumber = function InputNumber(props) { | |
| 80 80 | 
             
              var _parser = function parser(value, precision) {
         | 
| 81 81 | 
             
                var num = Number(value.replace(/[\s,]+/g, ''));
         | 
| 82 82 | 
             
                if (value === '') return value;
         | 
| 83 | 
            -
                return Number.isNaN(num) || !precision ? value : num.toFixed(precision);
         | 
| 83 | 
            +
                return Number.isNaN(num) || !precision && precision !== 0 ? value : num.toFixed(precision);
         | 
| 84 84 | 
             
              };
         | 
| 85 85 | 
             
              if (valueType) {
         | 
| 86 86 | 
             
                switch (valueType) {
         |