@bit-sun/business-component 1.1.12 → 1.1.13

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.esm.js CHANGED
@@ -1728,13 +1728,18 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1728
1728
  if (cell) {
1729
1729
  cell.fs = 10;
1730
1730
 
1731
- if (typeof cell.v === 'number') {
1732
- cell.v = cell.m;
1733
- }
1734
-
1735
1731
  if (typeof cell.v === 'string') {
1736
1732
  cell.m = cell.v = cell.m.trim();
1737
1733
  }
1734
+
1735
+ if (cell && cell.m && cell.m.indexOf('E+') !== -1) {
1736
+ cell.v = cell.v.toString();
1737
+ cell.m = cell.v;
1738
+ }
1739
+
1740
+ if (typeof cell.v === 'number') {
1741
+ cell.v = cell.m;
1742
+ }
1738
1743
  } // console.log(postion);
1739
1744
 
1740
1745
  },
package/dist/index.js CHANGED
@@ -1739,13 +1739,18 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1739
1739
  if (cell) {
1740
1740
  cell.fs = 10;
1741
1741
 
1742
- if (typeof cell.v === 'number') {
1743
- cell.v = cell.m;
1744
- }
1745
-
1746
1742
  if (typeof cell.v === 'string') {
1747
1743
  cell.m = cell.v = cell.m.trim();
1748
1744
  }
1745
+
1746
+ if (cell && cell.m && cell.m.indexOf('E+') !== -1) {
1747
+ cell.v = cell.v.toString();
1748
+ cell.m = cell.v;
1749
+ }
1750
+
1751
+ if (typeof cell.v === 'number') {
1752
+ cell.v = cell.m;
1753
+ }
1749
1754
  } // console.log(postion);
1750
1755
 
1751
1756
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -173,12 +173,18 @@ class DataValidation extends React.Component {
173
173
  cellRenderBefore: function (cell, postion, sheetFile, ctx) {
174
174
  if (cell) {
175
175
  cell.fs = 10;
176
- if (typeof cell.v === 'number') {
177
- cell.v = cell.m
178
- }
176
+
177
+
179
178
  if (typeof cell.v === 'string') {
180
179
  cell.m = cell.v = cell.m.trim();
181
180
  }
181
+ if (cell && cell.m && cell.m.indexOf('E+') !== -1) {
182
+ cell.v = cell.v.toString()
183
+ cell.m = cell.v
184
+ }
185
+ if (typeof cell.v === 'number') {
186
+ cell.v = cell.m
187
+ }
182
188
  }
183
189
  // console.log(postion);
184
190
  },