@lemon-fe/components 1.1.0-alpha.2 → 1.1.0-alpha.5

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.
@@ -34,6 +34,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
34
34
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
35
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
36
36
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
37
+ import { Spin, Pagination } from 'antd';
37
38
  import React, { Component, createRef } from 'react';
38
39
  import { ComponentConfigureContext } from "../component-configure";
39
40
  import DateEditor from "./cell-editors/date";
@@ -63,7 +64,6 @@ import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-mod
63
64
  import { ModuleRegistry, GridApi, ColumnApi } from '@ag-grid-community/core';
64
65
  import { InfiniteRowModelModule } from '@ag-grid-community/infinite-row-model';
65
66
  import { AgGridReact } from '@ag-grid-community/react';
66
- import { Spin, Pagination } from 'antd';
67
67
  import Scheme from 'async-validator';
68
68
  import BigNumber from 'bignumber.js';
69
69
  import classNames from 'classnames';
@@ -1068,7 +1068,7 @@ var DataGrid = /*#__PURE__*/function (_Component) {
1068
1068
  return null;
1069
1069
  };
1070
1070
  fieldCol.valueFormatter = function (params) {
1071
- if (Number.isNaN(params.value) || !Number.isFinite(params.value) || BigNumber.isBigNumber(params.value) && (params.value.isNaN() || !params.value.isFinite())) {
1071
+ if (Number.isNaN(params.value) || typeof params.value === 'number' && !Number.isFinite(params.value) || BigNumber.isBigNumber(params.value) && (params.value.isNaN() || !params.value.isFinite())) {
1072
1072
  return '-';
1073
1073
  }
1074
1074
  return params.value;
@@ -268,6 +268,10 @@ a[title='站长统计'] {
268
268
  /** empty */
269
269
  .@{ant-prefix}-empty {
270
270
  color: #00000040;
271
+
272
+ svg {
273
+ max-width: 100%;
274
+ }
271
275
  }
272
276
 
273
277
  /** tabs **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.1.0-alpha.2",
3
+ "version": "1.1.0-alpha.5",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -21,18 +21,15 @@
21
21
  "@ag-grid-community/infinite-row-model": "29.2.0",
22
22
  "@ag-grid-community/react": "29.2.0",
23
23
  "@ag-grid-community/styles": "29.2.0",
24
- "@ant-design/icons": "^4.7.0",
25
24
  "@dnd-kit/core": "^6.0.8",
26
- "@lemon-fe/hooks": "^1.1.0-alpha.2",
27
- "@lemon-fe/utils": "^1.1.0-alpha.2",
25
+ "@lemon-fe/hooks": "^1.1.0-alpha.5",
26
+ "@lemon-fe/utils": "^1.1.0-alpha.5",
28
27
  "async-validator": "^4.2.5",
29
28
  "bignumber.js": ">=9.0.0",
30
29
  "classnames": "^2.2.6",
31
30
  "color-string": "^1.9.1",
32
31
  "expr-eval": "^2.0.2",
33
- "lodash": "^4.17.0",
34
32
  "memoize-one": "^6.0.0",
35
- "moment": "^2.29.4",
36
33
  "rc-resize-observer": "^1.0.0",
37
34
  "react-color": "^2.19.3",
38
35
  "react-gcolor-picker": "^1.2.4",
@@ -55,12 +52,15 @@
55
52
  "@types/shallowequal": "^1.1.1"
56
53
  },
57
54
  "peerDependencies": {
58
- "antd": ">=4.23",
55
+ "@ant-design/icons": ">=4.7.0",
56
+ "antd": ">=4.24",
57
+ "lodash": "^4.17.0",
58
+ "moment": "^2.29.4",
59
59
  "react": ">=16.8",
60
60
  "react-dom": ">=16.8"
61
61
  },
62
62
  "publishConfig": {
63
63
  "registry": "https://registry.npmjs.org"
64
64
  },
65
- "gitHead": "fd079519ce22090dfd952b1b50537de56702fb79"
65
+ "gitHead": "c3c1df5959c399e01220a00e8b277636b98233c6"
66
66
  }
Binary file
Binary file