@bit-sun/business-component 2.2.28 → 2.2.29
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/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/index.esm.js +104 -76
- package/dist/index.js +111 -83
- package/dist/utils/TableUtils.d.ts +2 -2
- package/package.json +77 -77
- package/src/components/Business/BsLayouts/index.tsx +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './home.less';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const GlobalHeaderRight: React.FC<GlobalHeaderRightProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const AllFunc: React.FC<GlobalHeaderRightProps>;
|
|
@@ -2,14 +2,14 @@ import type { MenuDataItem, BasicLayoutProps as ProLayoutProps, Settings } from
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const RouterContext: React.Context<{}>;
|
|
5
|
-
export
|
|
5
|
+
export type BasicLayoutProps = {
|
|
6
6
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
7
7
|
route: ProLayoutProps['route'] & {
|
|
8
8
|
authority: string[];
|
|
9
9
|
};
|
|
10
10
|
settings: Settings;
|
|
11
11
|
} & ProLayoutProps;
|
|
12
|
-
export
|
|
12
|
+
export type BasicLayoutContext = {
|
|
13
13
|
[K in 'location']: BasicLayoutProps[K];
|
|
14
14
|
} & {
|
|
15
15
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
@@ -46,13 +46,13 @@ export declare const handleTextLineFeed: (text: string | undefined, width?: numb
|
|
|
46
46
|
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
47
|
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
48
48
|
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
-
|
|
49
|
+
type tableColumnsImageType = {
|
|
50
50
|
width?: number | string;
|
|
51
51
|
height?: number | string;
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
};
|
|
54
54
|
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
55
|
-
|
|
55
|
+
type UserColumnsType = {
|
|
56
56
|
name: string;
|
|
57
57
|
department?: string;
|
|
58
58
|
position?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Resizable } from 'react-resizable';
|
|
|
10
10
|
import { SortableHandle, SortableElement, SortableContainer } from 'react-sortable-hoc';
|
|
11
11
|
import { arrayMoveImmutable } from 'array-move';
|
|
12
12
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
13
|
-
import isEqual from 'lodash/isEqual';
|
|
13
|
+
import isEqual$1 from 'lodash/isEqual';
|
|
14
14
|
import { Table as Table$1, request as request$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
15
15
|
import ProLayout from '@ant-design/pro-layout';
|
|
16
16
|
import cloneDeep from 'lodash/cloneDeep';
|
|
@@ -135,6 +135,33 @@ axios.interceptors.request.use(function (config) {
|
|
|
135
135
|
return config;
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
+
function _iterableToArrayLimit(arr, i) {
|
|
139
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
140
|
+
if (null != _i) {
|
|
141
|
+
var _s,
|
|
142
|
+
_e,
|
|
143
|
+
_x,
|
|
144
|
+
_r,
|
|
145
|
+
_arr = [],
|
|
146
|
+
_n = !0,
|
|
147
|
+
_d = !1;
|
|
148
|
+
try {
|
|
149
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
150
|
+
if (Object(_i) !== _i) return;
|
|
151
|
+
_n = !1;
|
|
152
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
153
|
+
} catch (err) {
|
|
154
|
+
_d = !0, _e = err;
|
|
155
|
+
} finally {
|
|
156
|
+
try {
|
|
157
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
158
|
+
} finally {
|
|
159
|
+
if (_d) throw _e;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return _arr;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
138
165
|
function ownKeys(object, enumerableOnly) {
|
|
139
166
|
var keys = Object.keys(object);
|
|
140
167
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -291,14 +318,9 @@ function _regeneratorRuntime() {
|
|
|
291
318
|
};
|
|
292
319
|
}
|
|
293
320
|
function maybeInvokeDelegate(delegate, context) {
|
|
294
|
-
var
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
298
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
299
|
-
}
|
|
300
|
-
return ContinueSentinel;
|
|
301
|
-
}
|
|
321
|
+
var methodName = context.method,
|
|
322
|
+
method = delegate.iterator[methodName];
|
|
323
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
302
324
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
303
325
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
304
326
|
var info = record.arg;
|
|
@@ -512,7 +534,7 @@ function _defineProperties(target, props) {
|
|
|
512
534
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
513
535
|
descriptor.configurable = true;
|
|
514
536
|
if ("value" in descriptor) descriptor.writable = true;
|
|
515
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
537
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
516
538
|
}
|
|
517
539
|
}
|
|
518
540
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -524,6 +546,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
524
546
|
return Constructor;
|
|
525
547
|
}
|
|
526
548
|
function _defineProperty(obj, key, value) {
|
|
549
|
+
key = _toPropertyKey(key);
|
|
527
550
|
if (key in obj) {
|
|
528
551
|
Object.defineProperty(obj, key, {
|
|
529
552
|
value: value,
|
|
@@ -652,30 +675,6 @@ function _arrayWithHoles(arr) {
|
|
|
652
675
|
function _iterableToArray(iter) {
|
|
653
676
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
654
677
|
}
|
|
655
|
-
function _iterableToArrayLimit(arr, i) {
|
|
656
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
657
|
-
if (_i == null) return;
|
|
658
|
-
var _arr = [];
|
|
659
|
-
var _n = true;
|
|
660
|
-
var _d = false;
|
|
661
|
-
var _s, _e;
|
|
662
|
-
try {
|
|
663
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
664
|
-
_arr.push(_s.value);
|
|
665
|
-
if (i && _arr.length === i) break;
|
|
666
|
-
}
|
|
667
|
-
} catch (err) {
|
|
668
|
-
_d = true;
|
|
669
|
-
_e = err;
|
|
670
|
-
} finally {
|
|
671
|
-
try {
|
|
672
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
673
|
-
} finally {
|
|
674
|
-
if (_d) throw _e;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
return _arr;
|
|
678
|
-
}
|
|
679
678
|
function _unsupportedIterableToArray(o, minLen) {
|
|
680
679
|
if (!o) return;
|
|
681
680
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -695,6 +694,20 @@ function _nonIterableSpread() {
|
|
|
695
694
|
function _nonIterableRest() {
|
|
696
695
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
697
696
|
}
|
|
697
|
+
function _toPrimitive(input, hint) {
|
|
698
|
+
if (typeof input !== "object" || input === null) return input;
|
|
699
|
+
var prim = input[Symbol.toPrimitive];
|
|
700
|
+
if (prim !== undefined) {
|
|
701
|
+
var res = prim.call(input, hint || "default");
|
|
702
|
+
if (typeof res !== "object") return res;
|
|
703
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
704
|
+
}
|
|
705
|
+
return (hint === "string" ? String : Number)(input);
|
|
706
|
+
}
|
|
707
|
+
function _toPropertyKey(arg) {
|
|
708
|
+
var key = _toPrimitive(arg, "string");
|
|
709
|
+
return typeof key === "symbol" ? key : String(key);
|
|
710
|
+
}
|
|
698
711
|
|
|
699
712
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
700
713
|
var errorMessage = _objectSpread2({
|
|
@@ -3660,41 +3673,52 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3660
3673
|
callback(showColumns);
|
|
3661
3674
|
};
|
|
3662
3675
|
|
|
3663
|
-
var
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
function
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
}
|
|
3671
|
-
|
|
3672
|
-
var lastThis;
|
|
3673
|
-
var lastArgs = [];
|
|
3674
|
-
var lastResult;
|
|
3675
|
-
var calledOnce = false;
|
|
3676
|
-
|
|
3677
|
-
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3678
|
-
return isEqual(newArg, lastArgs[index], index);
|
|
3679
|
-
};
|
|
3680
|
-
|
|
3681
|
-
var result = function result() {
|
|
3682
|
-
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3683
|
-
newArgs[_key] = arguments[_key];
|
|
3676
|
+
var safeIsNaN = Number.isNaN ||
|
|
3677
|
+
function ponyfill(value) {
|
|
3678
|
+
return typeof value === 'number' && value !== value;
|
|
3679
|
+
};
|
|
3680
|
+
function isEqual(first, second) {
|
|
3681
|
+
if (first === second) {
|
|
3682
|
+
return true;
|
|
3684
3683
|
}
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
return lastResult;
|
|
3684
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
3685
|
+
return true;
|
|
3688
3686
|
}
|
|
3687
|
+
return false;
|
|
3688
|
+
}
|
|
3689
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
3690
|
+
if (newInputs.length !== lastInputs.length) {
|
|
3691
|
+
return false;
|
|
3692
|
+
}
|
|
3693
|
+
for (var i = 0; i < newInputs.length; i++) {
|
|
3694
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
3695
|
+
return false;
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
return true;
|
|
3699
|
+
}
|
|
3689
3700
|
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
lastThis
|
|
3693
|
-
lastArgs =
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3701
|
+
function memoizeOne(resultFn, isEqual) {
|
|
3702
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
3703
|
+
var lastThis;
|
|
3704
|
+
var lastArgs = [];
|
|
3705
|
+
var lastResult;
|
|
3706
|
+
var calledOnce = false;
|
|
3707
|
+
function memoized() {
|
|
3708
|
+
var newArgs = [];
|
|
3709
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3710
|
+
newArgs[_i] = arguments[_i];
|
|
3711
|
+
}
|
|
3712
|
+
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
3713
|
+
return lastResult;
|
|
3714
|
+
}
|
|
3715
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3716
|
+
calledOnce = true;
|
|
3717
|
+
lastThis = this;
|
|
3718
|
+
lastArgs = newArgs;
|
|
3719
|
+
return lastResult;
|
|
3720
|
+
}
|
|
3721
|
+
return memoized;
|
|
3698
3722
|
}
|
|
3699
3723
|
|
|
3700
3724
|
//! moment.js
|
|
@@ -9654,7 +9678,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9654
9678
|
return item;
|
|
9655
9679
|
});
|
|
9656
9680
|
};
|
|
9657
|
-
var memoizeOneFormatter =
|
|
9681
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
|
|
9658
9682
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9659
9683
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9660
9684
|
history.goBack();
|
|
@@ -15165,7 +15189,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15165
15189
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15166
15190
|
* @LastEditors: rodchen
|
|
15167
15191
|
*/
|
|
15168
|
-
var index
|
|
15192
|
+
var index = (function (storageKeyString) {
|
|
15169
15193
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15170
15194
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15171
15195
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15508,7 +15532,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15508
15532
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15509
15533
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15510
15534
|
};
|
|
15511
|
-
var index$
|
|
15535
|
+
var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15512
15536
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15513
15537
|
return false;
|
|
15514
15538
|
}
|
|
@@ -15521,7 +15545,7 @@ var index$2 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
15521
15545
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15522
15546
|
styleInject(css_248z$8);
|
|
15523
15547
|
|
|
15524
|
-
var index$
|
|
15548
|
+
var index$2 = (function (props) {
|
|
15525
15549
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15526
15550
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15527
15551
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -16945,7 +16969,7 @@ var iconMap = {
|
|
|
16945
16969
|
src: moreIcon
|
|
16946
16970
|
})
|
|
16947
16971
|
};
|
|
16948
|
-
var index$
|
|
16972
|
+
var index$3 = (function (props) {
|
|
16949
16973
|
var _useLocation = useLocation(),
|
|
16950
16974
|
pathname = _useLocation.pathname;
|
|
16951
16975
|
var _useState = useState(pathname + 'id'),
|
|
@@ -17162,7 +17186,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17162
17186
|
styleInject(css_248z$d);
|
|
17163
17187
|
|
|
17164
17188
|
var _excluded$c = ["children"];
|
|
17165
|
-
var index$
|
|
17189
|
+
var index$4 = (function (props) {
|
|
17166
17190
|
var _useLocation = useLocation(),
|
|
17167
17191
|
pathname = _useLocation.pathname;
|
|
17168
17192
|
var _useState = useState(pathname + 'id'),
|
|
@@ -21579,7 +21603,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21579
21603
|
// }
|
|
21580
21604
|
// });
|
|
21581
21605
|
(_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 ? void 0 : _window$$wujie.bus.$on("main-route-change", function (appname, info) {
|
|
21582
|
-
localStorage.
|
|
21606
|
+
if (localStorage.getItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK)) {
|
|
21607
|
+
localStorage.removeItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK);
|
|
21608
|
+
} else {
|
|
21609
|
+
localStorage.setItem('isTabChange', true);
|
|
21610
|
+
}
|
|
21583
21611
|
if (appname === itemPath) {
|
|
21584
21612
|
istParent = 1;
|
|
21585
21613
|
if (info.type === 'main') {
|
|
@@ -22174,7 +22202,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22174
22202
|
}]);
|
|
22175
22203
|
return WrapperComponent;
|
|
22176
22204
|
}(React.Component);
|
|
22177
|
-
var index$
|
|
22205
|
+
var index$5 = (function (props) {
|
|
22178
22206
|
var _useModel = useModel('@@initialState'),
|
|
22179
22207
|
_useModel$initialStat = _useModel.initialState,
|
|
22180
22208
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22317,7 +22345,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22317
22345
|
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
22318
22346
|
styleInject(css_248z$n);
|
|
22319
22347
|
|
|
22320
|
-
var index$
|
|
22348
|
+
var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22321
22349
|
var _useState = useState(false),
|
|
22322
22350
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22323
22351
|
show = _useState2[0],
|
|
@@ -31010,4 +31038,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
31010
31038
|
}, "setting"));
|
|
31011
31039
|
});
|
|
31012
31040
|
|
|
31013
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$
|
|
31041
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var reactResizable = require('react-resizable');
|
|
|
14
14
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
15
15
|
var arrayMove = require('array-move');
|
|
16
16
|
var umi = require('umi');
|
|
17
|
-
var isEqual = require('lodash/isEqual');
|
|
17
|
+
var isEqual$1 = require('lodash/isEqual');
|
|
18
18
|
var bssula = require('bssula');
|
|
19
19
|
var ProLayout = require('@ant-design/pro-layout');
|
|
20
20
|
var cloneDeep = require('lodash/cloneDeep');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
34
34
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
35
35
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
|
|
37
37
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
38
38
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
|
39
39
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
@@ -153,6 +153,33 @@ axios__default['default'].interceptors.request.use(function (config) {
|
|
|
153
153
|
return config;
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
+
function _iterableToArrayLimit(arr, i) {
|
|
157
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
158
|
+
if (null != _i) {
|
|
159
|
+
var _s,
|
|
160
|
+
_e,
|
|
161
|
+
_x,
|
|
162
|
+
_r,
|
|
163
|
+
_arr = [],
|
|
164
|
+
_n = !0,
|
|
165
|
+
_d = !1;
|
|
166
|
+
try {
|
|
167
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
168
|
+
if (Object(_i) !== _i) return;
|
|
169
|
+
_n = !1;
|
|
170
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
171
|
+
} catch (err) {
|
|
172
|
+
_d = !0, _e = err;
|
|
173
|
+
} finally {
|
|
174
|
+
try {
|
|
175
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
176
|
+
} finally {
|
|
177
|
+
if (_d) throw _e;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return _arr;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
156
183
|
function ownKeys(object, enumerableOnly) {
|
|
157
184
|
var keys = Object.keys(object);
|
|
158
185
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -309,14 +336,9 @@ function _regeneratorRuntime() {
|
|
|
309
336
|
};
|
|
310
337
|
}
|
|
311
338
|
function maybeInvokeDelegate(delegate, context) {
|
|
312
|
-
var
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
316
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
317
|
-
}
|
|
318
|
-
return ContinueSentinel;
|
|
319
|
-
}
|
|
339
|
+
var methodName = context.method,
|
|
340
|
+
method = delegate.iterator[methodName];
|
|
341
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
320
342
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
321
343
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
322
344
|
var info = record.arg;
|
|
@@ -530,7 +552,7 @@ function _defineProperties(target, props) {
|
|
|
530
552
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
531
553
|
descriptor.configurable = true;
|
|
532
554
|
if ("value" in descriptor) descriptor.writable = true;
|
|
533
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
555
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
534
556
|
}
|
|
535
557
|
}
|
|
536
558
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -542,6 +564,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
542
564
|
return Constructor;
|
|
543
565
|
}
|
|
544
566
|
function _defineProperty(obj, key, value) {
|
|
567
|
+
key = _toPropertyKey(key);
|
|
545
568
|
if (key in obj) {
|
|
546
569
|
Object.defineProperty(obj, key, {
|
|
547
570
|
value: value,
|
|
@@ -670,30 +693,6 @@ function _arrayWithHoles(arr) {
|
|
|
670
693
|
function _iterableToArray(iter) {
|
|
671
694
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
672
695
|
}
|
|
673
|
-
function _iterableToArrayLimit(arr, i) {
|
|
674
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
675
|
-
if (_i == null) return;
|
|
676
|
-
var _arr = [];
|
|
677
|
-
var _n = true;
|
|
678
|
-
var _d = false;
|
|
679
|
-
var _s, _e;
|
|
680
|
-
try {
|
|
681
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
682
|
-
_arr.push(_s.value);
|
|
683
|
-
if (i && _arr.length === i) break;
|
|
684
|
-
}
|
|
685
|
-
} catch (err) {
|
|
686
|
-
_d = true;
|
|
687
|
-
_e = err;
|
|
688
|
-
} finally {
|
|
689
|
-
try {
|
|
690
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
691
|
-
} finally {
|
|
692
|
-
if (_d) throw _e;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
return _arr;
|
|
696
|
-
}
|
|
697
696
|
function _unsupportedIterableToArray(o, minLen) {
|
|
698
697
|
if (!o) return;
|
|
699
698
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -713,6 +712,20 @@ function _nonIterableSpread() {
|
|
|
713
712
|
function _nonIterableRest() {
|
|
714
713
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
715
714
|
}
|
|
715
|
+
function _toPrimitive(input, hint) {
|
|
716
|
+
if (typeof input !== "object" || input === null) return input;
|
|
717
|
+
var prim = input[Symbol.toPrimitive];
|
|
718
|
+
if (prim !== undefined) {
|
|
719
|
+
var res = prim.call(input, hint || "default");
|
|
720
|
+
if (typeof res !== "object") return res;
|
|
721
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
722
|
+
}
|
|
723
|
+
return (hint === "string" ? String : Number)(input);
|
|
724
|
+
}
|
|
725
|
+
function _toPropertyKey(arg) {
|
|
726
|
+
var key = _toPrimitive(arg, "string");
|
|
727
|
+
return typeof key === "symbol" ? key : String(key);
|
|
728
|
+
}
|
|
716
729
|
|
|
717
730
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
718
731
|
var errorMessage = _objectSpread2({
|
|
@@ -3678,41 +3691,52 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3678
3691
|
callback(showColumns);
|
|
3679
3692
|
};
|
|
3680
3693
|
|
|
3681
|
-
var
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
function
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
}
|
|
3689
|
-
|
|
3690
|
-
var lastThis;
|
|
3691
|
-
var lastArgs = [];
|
|
3692
|
-
var lastResult;
|
|
3693
|
-
var calledOnce = false;
|
|
3694
|
-
|
|
3695
|
-
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3696
|
-
return isEqual(newArg, lastArgs[index], index);
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
var result = function result() {
|
|
3700
|
-
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3701
|
-
newArgs[_key] = arguments[_key];
|
|
3694
|
+
var safeIsNaN = Number.isNaN ||
|
|
3695
|
+
function ponyfill(value) {
|
|
3696
|
+
return typeof value === 'number' && value !== value;
|
|
3697
|
+
};
|
|
3698
|
+
function isEqual(first, second) {
|
|
3699
|
+
if (first === second) {
|
|
3700
|
+
return true;
|
|
3702
3701
|
}
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
return lastResult;
|
|
3702
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
3703
|
+
return true;
|
|
3706
3704
|
}
|
|
3705
|
+
return false;
|
|
3706
|
+
}
|
|
3707
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
3708
|
+
if (newInputs.length !== lastInputs.length) {
|
|
3709
|
+
return false;
|
|
3710
|
+
}
|
|
3711
|
+
for (var i = 0; i < newInputs.length; i++) {
|
|
3712
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
3713
|
+
return false;
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
return true;
|
|
3717
|
+
}
|
|
3707
3718
|
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
lastThis
|
|
3711
|
-
lastArgs =
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3719
|
+
function memoizeOne(resultFn, isEqual) {
|
|
3720
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
3721
|
+
var lastThis;
|
|
3722
|
+
var lastArgs = [];
|
|
3723
|
+
var lastResult;
|
|
3724
|
+
var calledOnce = false;
|
|
3725
|
+
function memoized() {
|
|
3726
|
+
var newArgs = [];
|
|
3727
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3728
|
+
newArgs[_i] = arguments[_i];
|
|
3729
|
+
}
|
|
3730
|
+
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
3731
|
+
return lastResult;
|
|
3732
|
+
}
|
|
3733
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3734
|
+
calledOnce = true;
|
|
3735
|
+
lastThis = this;
|
|
3736
|
+
lastArgs = newArgs;
|
|
3737
|
+
return lastResult;
|
|
3738
|
+
}
|
|
3739
|
+
return memoized;
|
|
3716
3740
|
}
|
|
3717
3741
|
|
|
3718
3742
|
//! moment.js
|
|
@@ -9672,7 +9696,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9672
9696
|
return item;
|
|
9673
9697
|
});
|
|
9674
9698
|
};
|
|
9675
|
-
var memoizeOneFormatter =
|
|
9699
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
|
|
9676
9700
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9677
9701
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9678
9702
|
umi.history.goBack();
|
|
@@ -15183,7 +15207,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15183
15207
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15184
15208
|
* @LastEditors: rodchen
|
|
15185
15209
|
*/
|
|
15186
|
-
var index
|
|
15210
|
+
var index = (function (storageKeyString) {
|
|
15187
15211
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15188
15212
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15189
15213
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15526,7 +15550,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15526
15550
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15527
15551
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15528
15552
|
};
|
|
15529
|
-
var index$
|
|
15553
|
+
var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15530
15554
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15531
15555
|
return false;
|
|
15532
15556
|
}
|
|
@@ -15539,7 +15563,7 @@ var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
|
|
|
15539
15563
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15540
15564
|
styleInject(css_248z$8);
|
|
15541
15565
|
|
|
15542
|
-
var index$
|
|
15566
|
+
var index$2 = (function (props) {
|
|
15543
15567
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15544
15568
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15545
15569
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -16963,7 +16987,7 @@ var iconMap = {
|
|
|
16963
16987
|
src: moreIcon
|
|
16964
16988
|
})
|
|
16965
16989
|
};
|
|
16966
|
-
var index$
|
|
16990
|
+
var index$3 = (function (props) {
|
|
16967
16991
|
var _useLocation = umi.useLocation(),
|
|
16968
16992
|
pathname = _useLocation.pathname;
|
|
16969
16993
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -17180,7 +17204,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17180
17204
|
styleInject(css_248z$d);
|
|
17181
17205
|
|
|
17182
17206
|
var _excluded$c = ["children"];
|
|
17183
|
-
var index$
|
|
17207
|
+
var index$4 = (function (props) {
|
|
17184
17208
|
var _useLocation = umi.useLocation(),
|
|
17185
17209
|
pathname = _useLocation.pathname;
|
|
17186
17210
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -21597,7 +21621,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21597
21621
|
// }
|
|
21598
21622
|
// });
|
|
21599
21623
|
(_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 ? void 0 : _window$$wujie.bus.$on("main-route-change", function (appname, info) {
|
|
21600
|
-
localStorage.
|
|
21624
|
+
if (localStorage.getItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK)) {
|
|
21625
|
+
localStorage.removeItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK);
|
|
21626
|
+
} else {
|
|
21627
|
+
localStorage.setItem('isTabChange', true);
|
|
21628
|
+
}
|
|
21601
21629
|
if (appname === itemPath) {
|
|
21602
21630
|
istParent = 1;
|
|
21603
21631
|
if (info.type === 'main') {
|
|
@@ -22192,7 +22220,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22192
22220
|
}]);
|
|
22193
22221
|
return WrapperComponent;
|
|
22194
22222
|
}(React__default['default'].Component);
|
|
22195
|
-
var index$
|
|
22223
|
+
var index$5 = (function (props) {
|
|
22196
22224
|
var _useModel = umi.useModel('@@initialState'),
|
|
22197
22225
|
_useModel$initialStat = _useModel.initialState,
|
|
22198
22226
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22335,7 +22363,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22335
22363
|
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
22336
22364
|
styleInject(css_248z$n);
|
|
22337
22365
|
|
|
22338
|
-
var index$
|
|
22366
|
+
var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22339
22367
|
var _useState = React.useState(false),
|
|
22340
22368
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22341
22369
|
show = _useState2[0],
|
|
@@ -31033,24 +31061,24 @@ exports.AddSkcSelect = AddSkcSelect;
|
|
|
31033
31061
|
exports.AddSkuSelect = AddSkuSelect;
|
|
31034
31062
|
exports.AddSpuSelect = AddSpuSelect;
|
|
31035
31063
|
exports.BillEntry = BillEntry;
|
|
31036
|
-
exports.BsLayout = index$
|
|
31064
|
+
exports.BsLayout = index$5;
|
|
31037
31065
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
31038
31066
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
31039
|
-
exports.BusinessTreeSearchSelect = index$
|
|
31040
|
-
exports.CheckOneUser = index
|
|
31067
|
+
exports.BusinessTreeSearchSelect = index$1;
|
|
31068
|
+
exports.CheckOneUser = index;
|
|
31041
31069
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
31042
31070
|
exports.CommodityEntry = CommodityEntry;
|
|
31043
31071
|
exports.DataImport = DataImport;
|
|
31044
31072
|
exports.DataValidation = DataValidation;
|
|
31045
|
-
exports.DetailPageWrapper = index$
|
|
31073
|
+
exports.DetailPageWrapper = index$3;
|
|
31046
31074
|
exports.ExportIcon = ExportIcon;
|
|
31047
31075
|
exports.GuideWrapper = GuideWrapper;
|
|
31048
|
-
exports.HomePageWrapper = index$
|
|
31076
|
+
exports.HomePageWrapper = index$4;
|
|
31049
31077
|
exports.JsonQueryTable = JsonQueryTable;
|
|
31050
|
-
exports.MoreTreeTable = index$
|
|
31078
|
+
exports.MoreTreeTable = index$6;
|
|
31051
31079
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
31052
31080
|
exports.SearchSelect = SearchSelect;
|
|
31053
|
-
exports.StateFlow = index$
|
|
31081
|
+
exports.StateFlow = index$2;
|
|
31054
31082
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
31055
31083
|
exports.TableColumnSetting = TableColumnSetting;
|
|
31056
31084
|
exports.TreeSearchSelect = TreeSearchSelect;
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bit-sun/business-component",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"start": "dumi dev",
|
|
6
|
-
"docs:build": "dumi build",
|
|
7
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
-
"build": "father-build",
|
|
9
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
-
"release": "npm run build && npm publish",
|
|
11
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
12
|
-
"test": "umi-test",
|
|
13
|
-
"test:coverage": "umi-test --coverage"
|
|
14
|
-
},
|
|
15
|
-
"main": "dist/index.js",
|
|
16
|
-
"module": "dist/index.esm.js",
|
|
17
|
-
"typings": "dist/index.d.ts",
|
|
18
|
-
"gitHooks": {
|
|
19
|
-
"pre-commit": "lint-staged"
|
|
20
|
-
},
|
|
21
|
-
"lint-staged": {
|
|
22
|
-
"*.{js,jsx,less,md,json}": [
|
|
23
|
-
"prettier --write"
|
|
24
|
-
],
|
|
25
|
-
"*.ts?(x)": [
|
|
26
|
-
"prettier --parser=typescript --write"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"antd": "^4.17.2",
|
|
31
|
-
"bssula": "^2.0.0",
|
|
32
|
-
"umi-plugin-bssula": "1.0.13",
|
|
33
|
-
"umi": "^3.5.20",
|
|
34
|
-
"@ant-design/pro-layout": "^6.5.0",
|
|
35
|
-
"react-dnd": "^16.0.1",
|
|
36
|
-
"react-dnd-html5-backend": "^16.0.1"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@ant-design/icons": "^4.7.0",
|
|
40
|
-
"@monaco-editor/react": "^3.3.0",
|
|
41
|
-
"serialize-javascript": "^6.0.0",
|
|
42
|
-
"@types/react-resizable": "^1.7.4",
|
|
43
|
-
"@umijs/plugin-antd": "latest",
|
|
44
|
-
"ahooks": "^3.1.2",
|
|
45
|
-
"array-move": "^4.0.0",
|
|
46
|
-
"axios": "^0.24.0",
|
|
47
|
-
"classnames": "^2.3.1",
|
|
48
|
-
"lodash": "^4.17.21",
|
|
49
|
-
"querystring": "^0.2.1",
|
|
50
|
-
"react": "^16.12.0",
|
|
51
|
-
"react-beautiful-dnd": "10.0.0",
|
|
52
|
-
"react-resizable": "^3.0.4",
|
|
53
|
-
"react-sortable-hoc": "^2.0.0",
|
|
54
|
-
"warning": "^4.0.3",
|
|
55
|
-
"ast-types": "^0.13.3"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@ant-design/pro-layout": "^7.1.3",
|
|
59
|
-
"@types/lodash": "^4.14.185",
|
|
60
|
-
"@umijs/test": "^3.0.5",
|
|
61
|
-
"acorn": "^7.2.0",
|
|
62
|
-
"acorn-walk": "^7.1.1",
|
|
63
|
-
"antd": "^4.17.2",
|
|
64
|
-
"bssula": "^2.1.29",
|
|
65
|
-
"dumi": "^1.0.14",
|
|
66
|
-
"father-build": "^1.17.2",
|
|
67
|
-
"gh-pages": "^3.0.0",
|
|
68
|
-
"lint-staged": "^10.0.7",
|
|
69
|
-
"prettier": "^2.2.1",
|
|
70
|
-
"react-dnd": "^16.0.1",
|
|
71
|
-
"react-dnd-html5-backend": "^16.0.1",
|
|
72
|
-
"rollup-plugin-commonjs": "^10.1.0"
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bit-sun/business-component",
|
|
3
|
+
"version": "2.2.29",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"start": "dumi dev",
|
|
6
|
+
"docs:build": "dumi build",
|
|
7
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
+
"build": "father-build",
|
|
9
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
+
"release": "npm run build && npm publish",
|
|
11
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
12
|
+
"test": "umi-test",
|
|
13
|
+
"test:coverage": "umi-test --coverage"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "dist/index.esm.js",
|
|
17
|
+
"typings": "dist/index.d.ts",
|
|
18
|
+
"gitHooks": {
|
|
19
|
+
"pre-commit": "lint-staged"
|
|
20
|
+
},
|
|
21
|
+
"lint-staged": {
|
|
22
|
+
"*.{js,jsx,less,md,json}": [
|
|
23
|
+
"prettier --write"
|
|
24
|
+
],
|
|
25
|
+
"*.ts?(x)": [
|
|
26
|
+
"prettier --parser=typescript --write"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"antd": "^4.17.2",
|
|
31
|
+
"bssula": "^2.0.0",
|
|
32
|
+
"umi-plugin-bssula": "1.0.13",
|
|
33
|
+
"umi": "^3.5.20",
|
|
34
|
+
"@ant-design/pro-layout": "^6.5.0",
|
|
35
|
+
"react-dnd": "^16.0.1",
|
|
36
|
+
"react-dnd-html5-backend": "^16.0.1"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@ant-design/icons": "^4.7.0",
|
|
40
|
+
"@monaco-editor/react": "^3.3.0",
|
|
41
|
+
"serialize-javascript": "^6.0.0",
|
|
42
|
+
"@types/react-resizable": "^1.7.4",
|
|
43
|
+
"@umijs/plugin-antd": "latest",
|
|
44
|
+
"ahooks": "^3.1.2",
|
|
45
|
+
"array-move": "^4.0.0",
|
|
46
|
+
"axios": "^0.24.0",
|
|
47
|
+
"classnames": "^2.3.1",
|
|
48
|
+
"lodash": "^4.17.21",
|
|
49
|
+
"querystring": "^0.2.1",
|
|
50
|
+
"react": "^16.12.0",
|
|
51
|
+
"react-beautiful-dnd": "10.0.0",
|
|
52
|
+
"react-resizable": "^3.0.4",
|
|
53
|
+
"react-sortable-hoc": "^2.0.0",
|
|
54
|
+
"warning": "^4.0.3",
|
|
55
|
+
"ast-types": "^0.13.3"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@ant-design/pro-layout": "^7.1.3",
|
|
59
|
+
"@types/lodash": "^4.14.185",
|
|
60
|
+
"@umijs/test": "^3.0.5",
|
|
61
|
+
"acorn": "^7.2.0",
|
|
62
|
+
"acorn-walk": "^7.1.1",
|
|
63
|
+
"antd": "^4.17.2",
|
|
64
|
+
"bssula": "^2.1.29",
|
|
65
|
+
"dumi": "^1.0.14",
|
|
66
|
+
"father-build": "^1.17.2",
|
|
67
|
+
"gh-pages": "^3.0.0",
|
|
68
|
+
"lint-staged": "^10.0.7",
|
|
69
|
+
"prettier": "^2.2.1",
|
|
70
|
+
"react-dnd": "^16.0.1",
|
|
71
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
72
|
+
"rollup-plugin-commonjs": "^10.1.0"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -360,7 +360,11 @@ class BasicLayout extends React.PureComponent {
|
|
|
360
360
|
// });
|
|
361
361
|
|
|
362
362
|
window.$wujie?.bus.$on("main-route-change", function (appname, info) {
|
|
363
|
-
localStorage.
|
|
363
|
+
if (localStorage.getItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK)) {
|
|
364
|
+
localStorage.removeItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK);
|
|
365
|
+
} else {
|
|
366
|
+
localStorage.setItem('isTabChange', true);
|
|
367
|
+
}
|
|
364
368
|
if (appname === itemPath) {
|
|
365
369
|
istParent = 1;
|
|
366
370
|
if (info.type === 'main') {
|