@lemon-fe/components 1.2.12-alpha.1 → 1.2.14

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.
@@ -40,10 +40,18 @@ export default /*#__PURE__*/forwardRef(function NumberEditor(props, ref) {
40
40
  if (elm.current === null) {
41
41
  return;
42
42
  }
43
- elm.current.focus();
43
+ var inputElm = elm.current;
44
+ inputElm.focus();
44
45
  if (shouldSelect) {
45
- elm.current.select();
46
+ inputElm.select();
46
47
  }
48
+ var handleWheel = function handleWheel(e) {
49
+ e.preventDefault();
50
+ };
51
+ inputElm.addEventListener('wheel', handleWheel);
52
+ return function () {
53
+ inputElm.removeEventListener('wheel', handleWheel);
54
+ };
47
55
  }, []);
48
56
  var getFormatedValue = function getFormatedValue() {
49
57
  var val;
@@ -50,7 +50,6 @@ import Search from "./components/search";
50
50
  import Selected from "./components/selected";
51
51
  import GridStoreContext from "./context/grid-store";
52
52
  import { useGridStore } from "./hooks";
53
- import defaultLocale from "./locale/zh_CN";
54
53
  import { ClipboardModule } from "./modules/clipboard/main";
55
54
  import { ColumnsToolPanelModule } from "./modules/column-tool-panel/main";
56
55
  import { MasterDetailModule } from "./modules/master-detail/main";
@@ -126,9 +125,7 @@ function EmptyOverlay(props) {
126
125
  }
127
126
  var defaultProps = {
128
127
  stopEditingWhenCellsLoseFocus: true,
129
- autoLoad: false,
130
- localeText: defaultLocale.localeText,
131
- locale: defaultLocale
128
+ autoLoad: false
132
129
  };
133
130
  var SummaryFlag = Symbol('summary');
134
131
  var IndexColId = '$$index';
@@ -235,7 +232,7 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
235
232
  if (summary[field.id] === undefined) {
236
233
  summary[field.id] = new BigNumber(0);
237
234
  }
238
- summary[field.id] = summary[field.id].plus(result);
235
+ summary[field.id] = summary[field.id].plus(+result);
239
236
  });
240
237
  });
241
238
  return summary;
@@ -1721,10 +1718,10 @@ var DataGrid = /*#__PURE__*/forwardRef(function (originalProps, ref) {
1721
1718
  dataGridLocale = _useLocaleReceiver4[0];
1722
1719
  var props = useComponentDefaultProps('DataGrid', originalProps);
1723
1720
  return /*#__PURE__*/React.createElement(InternalDataGrid, _extends({
1724
- ref: ref
1725
- }, props, {
1726
- locale: dataGridLocale
1727
- }));
1721
+ ref: ref,
1722
+ locale: dataGridLocale,
1723
+ localeText: dataGridLocale.localeText
1724
+ }, props));
1728
1725
  });
1729
1726
  DataGrid.defaultProps = defaultProps;
1730
1727
  DataGrid.SummaryFlag = SummaryFlag;
@@ -448,8 +448,8 @@
448
448
  -webkit-appearance: none;
449
449
  }
450
450
 
451
- & {
452
- -moz-appearance: textfield; /* Firefox */
451
+ &[type='number'] {
452
+ appearance: textfield; /* Firefox */
453
453
  }
454
454
  }
455
455
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.2.12-alpha.1",
3
+ "version": "1.2.14",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "registry": "https://registry.npmjs.org"
69
69
  },
70
- "gitHead": "d78e483deec792ba988460766ad6398dc2ee58a7"
70
+ "gitHead": "3ed306d1094065aa0788bb39e4db7d617eddea5b"
71
71
  }