@bit-sun/business-component 2.2.34 → 2.2.35

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/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$1 = require('lodash/isEqual');
17
+ var isEqual = 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$1);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
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,33 +153,6 @@ 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
- }
183
156
  function ownKeys(object, enumerableOnly) {
184
157
  var keys = Object.keys(object);
185
158
  if (Object.getOwnPropertySymbols) {
@@ -336,9 +309,14 @@ function _regeneratorRuntime() {
336
309
  };
337
310
  }
338
311
  function maybeInvokeDelegate(delegate, context) {
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;
312
+ var method = delegate.iterator[context.method];
313
+ if (undefined === method) {
314
+ if (context.delegate = null, "throw" === context.method) {
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
+ }
342
320
  var record = tryCatch(method, delegate.iterator, context.arg);
343
321
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
344
322
  var info = record.arg;
@@ -552,7 +530,7 @@ function _defineProperties(target, props) {
552
530
  descriptor.enumerable = descriptor.enumerable || false;
553
531
  descriptor.configurable = true;
554
532
  if ("value" in descriptor) descriptor.writable = true;
555
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
533
+ Object.defineProperty(target, descriptor.key, descriptor);
556
534
  }
557
535
  }
558
536
  function _createClass(Constructor, protoProps, staticProps) {
@@ -564,7 +542,6 @@ function _createClass(Constructor, protoProps, staticProps) {
564
542
  return Constructor;
565
543
  }
566
544
  function _defineProperty(obj, key, value) {
567
- key = _toPropertyKey(key);
568
545
  if (key in obj) {
569
546
  Object.defineProperty(obj, key, {
570
547
  value: value,
@@ -693,6 +670,30 @@ function _arrayWithHoles(arr) {
693
670
  function _iterableToArray(iter) {
694
671
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
695
672
  }
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
+ }
696
697
  function _unsupportedIterableToArray(o, minLen) {
697
698
  if (!o) return;
698
699
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -712,20 +713,6 @@ function _nonIterableSpread() {
712
713
  function _nonIterableRest() {
713
714
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
714
715
  }
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
- }
729
716
 
730
717
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
731
718
  var errorMessage = _objectSpread2({
@@ -3693,52 +3680,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
3693
3680
  callback(showColumns);
3694
3681
  };
3695
3682
 
3696
- var safeIsNaN = Number.isNaN ||
3697
- function ponyfill(value) {
3698
- return typeof value === 'number' && value !== value;
3699
- };
3700
- function isEqual(first, second) {
3701
- if (first === second) {
3702
- return true;
3703
- }
3704
- if (safeIsNaN(first) && safeIsNaN(second)) {
3705
- return true;
3706
- }
3707
- return false;
3708
- }
3709
- function areInputsEqual(newInputs, lastInputs) {
3710
- if (newInputs.length !== lastInputs.length) {
3711
- return false;
3712
- }
3713
- for (var i = 0; i < newInputs.length; i++) {
3714
- if (!isEqual(newInputs[i], lastInputs[i])) {
3715
- return false;
3716
- }
3683
+ var simpleIsEqual = function simpleIsEqual(a, b) {
3684
+ return a === b;
3685
+ };
3686
+
3687
+ function index (resultFn, isEqual) {
3688
+ if (isEqual === void 0) {
3689
+ isEqual = simpleIsEqual;
3690
+ }
3691
+
3692
+ var lastThis;
3693
+ var lastArgs = [];
3694
+ var lastResult;
3695
+ var calledOnce = false;
3696
+
3697
+ var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
3698
+ return isEqual(newArg, lastArgs[index], index);
3699
+ };
3700
+
3701
+ var result = function result() {
3702
+ for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
3703
+ newArgs[_key] = arguments[_key];
3717
3704
  }
3718
- return true;
3719
- }
3720
3705
 
3721
- function memoizeOne(resultFn, isEqual) {
3722
- if (isEqual === void 0) { isEqual = areInputsEqual; }
3723
- var lastThis;
3724
- var lastArgs = [];
3725
- var lastResult;
3726
- var calledOnce = false;
3727
- function memoized() {
3728
- var newArgs = [];
3729
- for (var _i = 0; _i < arguments.length; _i++) {
3730
- newArgs[_i] = arguments[_i];
3731
- }
3732
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
3733
- return lastResult;
3734
- }
3735
- lastResult = resultFn.apply(this, newArgs);
3736
- calledOnce = true;
3737
- lastThis = this;
3738
- lastArgs = newArgs;
3739
- return lastResult;
3706
+ if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
3707
+ return lastResult;
3740
3708
  }
3741
- return memoized;
3709
+
3710
+ lastResult = resultFn.apply(this, newArgs);
3711
+ calledOnce = true;
3712
+ lastThis = this;
3713
+ lastArgs = newArgs;
3714
+ return lastResult;
3715
+ };
3716
+
3717
+ return result;
3742
3718
  }
3743
3719
 
3744
3720
  //! moment.js
@@ -9698,7 +9674,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
9698
9674
  return item;
9699
9675
  });
9700
9676
  };
9701
- var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
9677
+ var memoizeOneFormatter = index(formatter, isEqual__default['default']);
9702
9678
  var go2BackAndClose = function go2BackAndClose() {
9703
9679
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
9704
9680
  umi.history.goBack();
@@ -15241,7 +15217,7 @@ var CommodityEntry = function CommodityEntry(props) {
15241
15217
  * @LastEditTime: 2022-01-14 17:17:26
15242
15218
  * @LastEditors: rodchen
15243
15219
  */
15244
- var index = (function (storageKeyString) {
15220
+ var index$1 = (function (storageKeyString) {
15245
15221
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
15246
15222
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
15247
15223
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -15584,7 +15560,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
15584
15560
  }, [props === null || props === void 0 ? void 0 : props.value]);
15585
15561
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
15586
15562
  };
15587
- var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15563
+ var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15588
15564
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
15589
15565
  return false;
15590
15566
  }
@@ -15597,7 +15573,7 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
15597
15573
  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";
15598
15574
  styleInject(css_248z$8);
15599
15575
 
15600
- var index$2 = (function (props) {
15576
+ var index$3 = (function (props) {
15601
15577
  var _props$formStatusMapp = props.formStatusMapping,
15602
15578
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
15603
15579
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -17021,7 +16997,7 @@ var iconMap = {
17021
16997
  src: moreIcon
17022
16998
  })
17023
16999
  };
17024
- var index$3 = (function (props) {
17000
+ var index$4 = (function (props) {
17025
17001
  var _useLocation = umi.useLocation(),
17026
17002
  pathname = _useLocation.pathname;
17027
17003
  var _useState = React.useState(pathname + 'id'),
@@ -17238,7 +17214,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
17238
17214
  styleInject(css_248z$d);
17239
17215
 
17240
17216
  var _excluded$c = ["children"];
17241
- var index$4 = (function (props) {
17217
+ var index$5 = (function (props) {
17242
17218
  var _useLocation = umi.useLocation(),
17243
17219
  pathname = _useLocation.pathname;
17244
17220
  var _useState = React.useState(pathname + 'id'),
@@ -22254,7 +22230,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
22254
22230
  }]);
22255
22231
  return WrapperComponent;
22256
22232
  }(React__default['default'].Component);
22257
- var index$5 = (function (props) {
22233
+ var index$6 = (function (props) {
22258
22234
  var _useModel = umi.useModel('@@initialState'),
22259
22235
  _useModel$initialStat = _useModel.initialState,
22260
22236
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -22397,7 +22373,7 @@ var headersToRows = function headersToRows(originColumns) {
22397
22373
  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";
22398
22374
  styleInject(css_248z$n);
22399
22375
 
22400
- var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22376
+ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22401
22377
  var _useState = React.useState(false),
22402
22378
  _useState2 = _slicedToArray(_useState, 2),
22403
22379
  show = _useState2[0],
@@ -22642,9 +22618,12 @@ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22642
22618
  }, /*#__PURE__*/React__default['default'].createElement("tbody", null, config.colLastData.map(function (item, index) {
22643
22619
  var fixedTop = item.fixed ? "".concat(index * 40 + config.colHeaderToTop, "px") : 0;
22644
22620
  return /*#__PURE__*/React__default['default'].createElement("tr", null, colTableData.map(function (record, index) {
22621
+ var _record$_rowConfig;
22622
+ var tdHidden = (record === null || record === void 0 ? void 0 : (_record$_rowConfig = record['_rowConfig']) === null || _record$_rowConfig === void 0 ? void 0 : _record$_rowConfig.hidden) ? 'none' : 'table-cell';
22645
22623
  return /*#__PURE__*/React__default['default'].createElement("td", {
22646
22624
  style: {
22647
- background: index % 2 === 1 || item.fixed ? '#f7f8fb' : '#fff',
22625
+ display: tdHidden,
22626
+ background: index % 2 === 1 || item.fixed ? '#FAFAFA' : '#fff',
22648
22627
  minWidth: '100px',
22649
22628
  width: "".concat(itemWidth, "px"),
22650
22629
  height: '40px',
@@ -31097,24 +31076,24 @@ exports.AddSkcSelect = AddSkcSelect;
31097
31076
  exports.AddSkuSelect = AddSkuSelect;
31098
31077
  exports.AddSpuSelect = AddSpuSelect;
31099
31078
  exports.BillEntry = BillEntry;
31100
- exports.BsLayout = index$5;
31079
+ exports.BsLayout = index$6;
31101
31080
  exports.BsSulaQueryTable = BsSulaQueryTable;
31102
31081
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
31103
- exports.BusinessTreeSearchSelect = index$1;
31104
- exports.CheckOneUser = index;
31082
+ exports.BusinessTreeSearchSelect = index$2;
31083
+ exports.CheckOneUser = index$1;
31105
31084
  exports.ColumnSettingTable = ColumnSettingTable;
31106
31085
  exports.CommodityEntry = CommodityEntry;
31107
31086
  exports.DataImport = DataImport;
31108
31087
  exports.DataValidation = DataValidation;
31109
- exports.DetailPageWrapper = index$3;
31088
+ exports.DetailPageWrapper = index$4;
31110
31089
  exports.ExportIcon = ExportIcon;
31111
31090
  exports.GuideWrapper = GuideWrapper;
31112
- exports.HomePageWrapper = index$4;
31091
+ exports.HomePageWrapper = index$5;
31113
31092
  exports.JsonQueryTable = JsonQueryTable;
31114
- exports.MoreTreeTable = index$6;
31093
+ exports.MoreTreeTable = index$7;
31115
31094
  exports.QueryMutipleInput = QueryMutipleInput;
31116
31095
  exports.SearchSelect = SearchSelect;
31117
- exports.StateFlow = index$2;
31096
+ exports.StateFlow = index$3;
31118
31097
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
31119
31098
  exports.TableColumnSetting = TableColumnSetting;
31120
31099
  exports.TreeSearchSelect = TreeSearchSelect;
@@ -1,9 +1,9 @@
1
- type mediaListType = {
1
+ declare type mediaListType = {
2
2
  type: number;
3
3
  url: string;
4
4
  [key: string]: any;
5
5
  };
6
- type recordType = {
6
+ declare type recordType = {
7
7
  mediaList?: mediaListType;
8
8
  [key: string]: any;
9
9
  };
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "@bit-sun/business-component",
3
- "version": "2.2.34",
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.35",
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
+ }