@bit-sun/business-component 1.0.14 → 1.0.15

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
@@ -1716,7 +1716,24 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1716
1716
  defaultRowHeight: 20,
1717
1717
  defaultColWidth: 120,
1718
1718
  config: {},
1719
- celldata: data,
1719
+ celldata: data && data.length !== 0 ? data : _.flattenDeep(Array.from({
1720
+ length: 100
1721
+ }).map(function (a, b) {
1722
+ return Array.from({
1723
+ length: 100
1724
+ }).map(function (c, d) {
1725
+ return {
1726
+ "r": b,
1727
+ "c": d,
1728
+ "v": {
1729
+ "ct": {
1730
+ "fa": "@",
1731
+ "t": "s"
1732
+ }
1733
+ }
1734
+ };
1735
+ });
1736
+ })),
1720
1737
  scrollLeft: 0,
1721
1738
  // "scrollTop": 315, //上下滚动条位置
1722
1739
  luckysheet_select_save: [],
package/dist/index.js CHANGED
@@ -1726,7 +1726,24 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1726
1726
  defaultRowHeight: 20,
1727
1727
  defaultColWidth: 120,
1728
1728
  config: {},
1729
- celldata: data,
1729
+ celldata: data && data.length !== 0 ? data : _.flattenDeep(Array.from({
1730
+ length: 100
1731
+ }).map(function (a, b) {
1732
+ return Array.from({
1733
+ length: 100
1734
+ }).map(function (c, d) {
1735
+ return {
1736
+ "r": b,
1737
+ "c": d,
1738
+ "v": {
1739
+ "ct": {
1740
+ "fa": "@",
1741
+ "t": "s"
1742
+ }
1743
+ }
1744
+ };
1745
+ });
1746
+ })),
1730
1747
  scrollLeft: 0,
1731
1748
  // "scrollTop": 315, //上下滚动条位置
1732
1749
  luckysheet_select_save: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -31,6 +31,7 @@
31
31
  "antd": "4.17.2",
32
32
  "axios": "^0.24.0",
33
33
  "classnames": "^2.3.1",
34
+ "loadsh": "^0.0.4",
34
35
  "react": "^16.12.0",
35
36
  "react-beautiful-dnd": "10.0.0"
36
37
  },
@@ -209,7 +209,13 @@ class DataValidation extends React.Component {
209
209
  defaultRowHeight: 20, //自定义行高
210
210
  defaultColWidth: 120, //自定义列宽
211
211
  config: {},
212
- celldata: data,
212
+ celldata:
213
+ data && data.length !== 0 ? data : _.flattenDeep(Array.from({ length: 100 }).map((a, b) => Array.from({ length: 100 }).map((c, d) => ({
214
+ "r": b,
215
+ "c": d,
216
+ "v": { "ct": { "fa": "@", "t": "s" }, }
217
+ }))))
218
+ ,
213
219
  scrollLeft: 0, //左右滚动条位置
214
220
  // "scrollTop": 315, //上下滚动条位置
215
221
  luckysheet_select_save: [], //选中的区域