@bit-sun/business-component 1.1.0 → 1.1.1

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
@@ -77,14 +77,14 @@ function _inherits(subClass, superClass) {
77
77
  throw new TypeError("Super expression must either be null or a function");
78
78
  }
79
79
 
80
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
81
+ constructor: {
82
+ value: subClass,
83
+ writable: true,
84
+ configurable: true
85
+ }
86
+ });
80
87
  Object.defineProperty(subClass, "prototype", {
81
- value: Object.create(superClass && superClass.prototype, {
82
- constructor: {
83
- value: subClass,
84
- writable: true,
85
- configurable: true
86
- }
87
- }),
88
88
  writable: false
89
89
  });
90
90
  if (superClass) _setPrototypeOf(subClass, superClass);
@@ -1691,6 +1691,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1691
1691
  if (typeof cell.v === 'string') {
1692
1692
  cell.m = cell.v = cell.m.trim();
1693
1693
  }
1694
+
1695
+ if (typeof cell.v === 'number') {
1696
+ cell.v = cell.v.toString();
1697
+ cell.m = cell.v;
1698
+ }
1694
1699
  } // console.log(postion);
1695
1700
 
1696
1701
  },
@@ -1721,6 +1726,13 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1721
1726
  defaultRowHeight: 20,
1722
1727
  defaultColWidth: 120,
1723
1728
  config: {},
1729
+ // celldata:
1730
+ // data && data.length !== 0 ? data : _.flattenDeep(Array.from({ length: 100 }).map((a, b) => Array.from({ length: 100 }).map((c, d) => ({
1731
+ // "r": b,
1732
+ // "c": d,
1733
+ // "v": { "ct": { "fa": "@", "t": "s" }, }
1734
+ // }))))
1735
+ // ,
1724
1736
  celldata: data && data.length !== 0 ? data : _.flattenDeep(Array.from({
1725
1737
  length: 100
1726
1738
  }).map(function (a, b) {
package/dist/index.js CHANGED
@@ -88,14 +88,14 @@ function _inherits(subClass, superClass) {
88
88
  throw new TypeError("Super expression must either be null or a function");
89
89
  }
90
90
 
91
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
92
+ constructor: {
93
+ value: subClass,
94
+ writable: true,
95
+ configurable: true
96
+ }
97
+ });
91
98
  Object.defineProperty(subClass, "prototype", {
92
- value: Object.create(superClass && superClass.prototype, {
93
- constructor: {
94
- value: subClass,
95
- writable: true,
96
- configurable: true
97
- }
98
- }),
99
99
  writable: false
100
100
  });
101
101
  if (superClass) _setPrototypeOf(subClass, superClass);
@@ -1702,6 +1702,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1702
1702
  if (typeof cell.v === 'string') {
1703
1703
  cell.m = cell.v = cell.m.trim();
1704
1704
  }
1705
+
1706
+ if (typeof cell.v === 'number') {
1707
+ cell.v = cell.v.toString();
1708
+ cell.m = cell.v;
1709
+ }
1705
1710
  } // console.log(postion);
1706
1711
 
1707
1712
  },
@@ -1732,6 +1737,13 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1732
1737
  defaultRowHeight: 20,
1733
1738
  defaultColWidth: 120,
1734
1739
  config: {},
1740
+ // celldata:
1741
+ // data && data.length !== 0 ? data : _.flattenDeep(Array.from({ length: 100 }).map((a, b) => Array.from({ length: 100 }).map((c, d) => ({
1742
+ // "r": b,
1743
+ // "c": d,
1744
+ // "v": { "ct": { "fa": "@", "t": "s" }, }
1745
+ // }))))
1746
+ // ,
1735
1747
  celldata: data && data.length !== 0 ? data : ___default['default'].flattenDeep(Array.from({
1736
1748
  length: 100
1737
1749
  }).map(function (a, b) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -177,6 +177,10 @@ class DataValidation extends React.Component {
177
177
  if (typeof cell.v === 'string') {
178
178
  cell.m = cell.v = cell.m.trim();
179
179
  }
180
+ if (typeof cell.v === 'number') {
181
+ cell.v = cell.v.toString()
182
+ cell.m = cell.v
183
+ }
180
184
  }
181
185
  // console.log(postion);
182
186
  },
@@ -210,6 +214,13 @@ class DataValidation extends React.Component {
210
214
  defaultRowHeight: 20, //自定义行高
211
215
  defaultColWidth: 120, //自定义列宽
212
216
  config: {},
217
+ // celldata:
218
+ // data && data.length !== 0 ? data : _.flattenDeep(Array.from({ length: 100 }).map((a, b) => Array.from({ length: 100 }).map((c, d) => ({
219
+ // "r": b,
220
+ // "c": d,
221
+ // "v": { "ct": { "fa": "@", "t": "s" }, }
222
+ // }))))
223
+ // ,
213
224
  celldata:
214
225
  data && data.length !== 0 ? data : _.flattenDeep(Array.from({ length: 100 }).map((a, b) => Array.from({ length: 100 }).map((c, d) => ({
215
226
  "r": b,