antd-management-fast-framework 1.12.45 → 1.12.48

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.
@@ -181,7 +181,7 @@ var BaseAddForm = /*#__PURE__*/function (_DataCore) {
181
181
  });
182
182
  }
183
183
 
184
- if (isFunction(afterSubmitCallback)) {
184
+ if ((0, _tools.isFunction)(afterSubmitCallback)) {
185
185
  afterSubmitCallback();
186
186
  }
187
187
  }
@@ -98,7 +98,7 @@ var SinglePage = /*#__PURE__*/function (_Base) {
98
98
  (0, _tools.showRuntimeError)({
99
99
  message: text
100
100
  });
101
- recordObject(_assertThisInitialized(_this));
101
+ (0, _tools.recordObject)(_assertThisInitialized(_this));
102
102
  return d;
103
103
  }
104
104
 
@@ -650,13 +650,13 @@ export function notify({ type, placement: placementValue, message: messageValue,
650
650
  message: any;
651
651
  description: any;
652
652
  }): void;
653
- export function recordLog(record: any, showMode: any, level?: any): void;
653
+ export function recordLog(record: any, showMode: any, level?: string): void;
654
654
  export function recordWarn(record: any): void;
655
655
  export function recordInfo(record: any): void;
656
656
  export function recordDebug(record: any): void;
657
657
  export function recordError(record: any): void;
658
- export function recordText(record: any, level?: any): void;
659
- export function recordObject(record: any, level?: any): void;
658
+ export function recordText(record: any, level?: string): void;
659
+ export function recordObject(record: any, level?: string): void;
660
660
  export function checkFromConfig({ label, name, helper }: {
661
661
  label: any;
662
662
  name: any;
package/es/utils/tools.js CHANGED
@@ -1565,7 +1565,7 @@ function cloneWithoutMethod(value) {
1565
1565
  }
1566
1566
 
1567
1567
  function isFunction(value) {
1568
- return (0, _lodash.isFunction)(value);
1568
+ return (0, _typeCheck.isFunction)(value);
1569
1569
  }
1570
1570
 
1571
1571
  function isArray(value) {
@@ -1939,7 +1939,7 @@ function notify(_ref23) {
1939
1939
  }
1940
1940
 
1941
1941
  function recordLog(record, showMode) {
1942
- var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : logLevel.debug;
1942
+ var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _constants.logLevel.debug;
1943
1943
  (0, _developAssist.recordLog)(record, showMode, level);
1944
1944
  }
1945
1945
 
@@ -1960,12 +1960,12 @@ function recordError(record) {
1960
1960
  }
1961
1961
 
1962
1962
  function recordText(record) {
1963
- var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : logLevel.debug;
1963
+ var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.logLevel.debug;
1964
1964
  (0, _developAssist.recordText)(record, level);
1965
1965
  }
1966
1966
 
1967
1967
  function recordObject(record) {
1968
- var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : logLevel.debug;
1968
+ var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.logLevel.debug;
1969
1969
  (0, _developAssist.recordObject)(record, level);
1970
1970
  }
1971
1971
 
@@ -2,6 +2,7 @@
2
2
  * check value is string
3
3
  */
4
4
  export function isString(value: any): boolean;
5
+ export function isFunction(value: any): boolean;
5
6
  /**
6
7
  * 判断是否是数字字符串
7
8
  *
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.empty = empty;
7
7
  exports.isArray = isArray;
8
+ exports.isFunction = isFunction;
8
9
  exports.isNumber = isNumber;
9
10
  exports.isString = isString;
10
11
 
@@ -16,6 +17,10 @@ var _lodash = require("lodash");
16
17
  function isString(value) {
17
18
  return (0, _lodash.isString)(value);
18
19
  }
20
+
21
+ function isFunction(value) {
22
+ return (0, _lodash.isFunction)(value);
23
+ }
19
24
  /**
20
25
  * 判断是否是数字字符串
21
26
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.12.45",
3
+ "version": "1.12.48",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"
@@ -118,7 +118,7 @@
118
118
  "@types/randomcolor": "^0.5.6",
119
119
  "@types/react-document-title": "^2.0.5",
120
120
  "@types/uuid": "^8.3.4",
121
- "@typescript-eslint/eslint-plugin": "^5.25.0",
121
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
122
122
  "@umijs/fabric": "^2.11.1",
123
123
  "@umijs/test": "^3.5.24",
124
124
  "@umijs/test-utils": "^3.5.24",
@@ -171,7 +171,7 @@
171
171
  "src/framework",
172
172
  "src/utils"
173
173
  ],
174
- "gitHead": "fac85c2e84cf0d38cdf3b0fc83ee150da917e3f9",
174
+ "gitHead": "d5acf8e6d0be5ebae7d42dd003c513e7a48fed3e",
175
175
  "gitHooks": {
176
176
  "pre-commit": "lint-staged"
177
177
  }