@bit-sun/business-component 1.1.11 → 1.1.12

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
@@ -1265,14 +1265,6 @@ function injectCSS(css) {
1265
1265
  return styleNode;
1266
1266
  }
1267
1267
  var containerCache = new Map();
1268
-
1269
- function findExistNode(key) {
1270
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1271
- var container = getContainer(option);
1272
- return Array.from(containerCache.get(container).children).find(function (node) {
1273
- return node.tagName === 'STYLE' && node[MARK_KEY] === key;
1274
- });
1275
- }
1276
1268
  function updateCSS(css, key) {
1277
1269
  var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1278
1270
  var container = getContainer(option); // Get real parent
@@ -1284,7 +1276,9 @@ function updateCSS(css, key) {
1284
1276
  parentNode.removeChild(placeholderStyle);
1285
1277
  }
1286
1278
 
1287
- var existNode = findExistNode(key, option);
1279
+ var existNode = Array.from(containerCache.get(container).children).find(function (node) {
1280
+ return node.tagName === 'STYLE' && node[MARK_KEY] === key;
1281
+ });
1288
1282
 
1289
1283
  if (existNode) {
1290
1284
  var _option$csp3, _option$csp4;
@@ -1734,13 +1728,12 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1734
1728
  if (cell) {
1735
1729
  cell.fs = 10;
1736
1730
 
1737
- if (typeof cell.v === 'string') {
1738
- cell.m = cell.v = cell.m.trim();
1731
+ if (typeof cell.v === 'number') {
1732
+ cell.v = cell.m;
1739
1733
  }
1740
1734
 
1741
- if (typeof cell.v === 'number') {
1742
- cell.v = cell.v.toString();
1743
- cell.m = cell.v;
1735
+ if (typeof cell.v === 'string') {
1736
+ cell.m = cell.v = cell.m.trim();
1744
1737
  }
1745
1738
  } // console.log(postion);
1746
1739
 
@@ -2645,6 +2638,7 @@ var SearchSelect = function SearchSelect(props) {
2645
2638
  if (type === 1) {
2646
2639
  var _ctx$form;
2647
2640
 
2641
+ console.log(sourceName, 'sourceName');
2648
2642
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(sourceName, source);
2649
2643
  setItems(source);
2650
2644
  setItemsTotal(Number(res === null || res === void 0 ? void 0 : res.total));
@@ -3522,6 +3516,7 @@ function commonFun(type, prefixUrl) {
3522
3516
  };
3523
3517
  } // 仓库选择器
3524
3518
 
3519
+ console.log(requestConfig, 'requestConfig');
3525
3520
  return {
3526
3521
  modalTableProps: modalTableProps,
3527
3522
  requestConfig: requestConfig
package/dist/index.js CHANGED
@@ -1276,14 +1276,6 @@ function injectCSS(css) {
1276
1276
  return styleNode;
1277
1277
  }
1278
1278
  var containerCache = new Map();
1279
-
1280
- function findExistNode(key) {
1281
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1282
- var container = getContainer(option);
1283
- return Array.from(containerCache.get(container).children).find(function (node) {
1284
- return node.tagName === 'STYLE' && node[MARK_KEY] === key;
1285
- });
1286
- }
1287
1279
  function updateCSS(css, key) {
1288
1280
  var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1289
1281
  var container = getContainer(option); // Get real parent
@@ -1295,7 +1287,9 @@ function updateCSS(css, key) {
1295
1287
  parentNode.removeChild(placeholderStyle);
1296
1288
  }
1297
1289
 
1298
- var existNode = findExistNode(key, option);
1290
+ var existNode = Array.from(containerCache.get(container).children).find(function (node) {
1291
+ return node.tagName === 'STYLE' && node[MARK_KEY] === key;
1292
+ });
1299
1293
 
1300
1294
  if (existNode) {
1301
1295
  var _option$csp3, _option$csp4;
@@ -1745,13 +1739,12 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1745
1739
  if (cell) {
1746
1740
  cell.fs = 10;
1747
1741
 
1748
- if (typeof cell.v === 'string') {
1749
- cell.m = cell.v = cell.m.trim();
1742
+ if (typeof cell.v === 'number') {
1743
+ cell.v = cell.m;
1750
1744
  }
1751
1745
 
1752
- if (typeof cell.v === 'number') {
1753
- cell.v = cell.v.toString();
1754
- cell.m = cell.v;
1746
+ if (typeof cell.v === 'string') {
1747
+ cell.m = cell.v = cell.m.trim();
1755
1748
  }
1756
1749
  } // console.log(postion);
1757
1750
 
@@ -2656,6 +2649,7 @@ var SearchSelect = function SearchSelect(props) {
2656
2649
  if (type === 1) {
2657
2650
  var _ctx$form;
2658
2651
 
2652
+ console.log(sourceName, 'sourceName');
2659
2653
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(sourceName, source);
2660
2654
  setItems(source);
2661
2655
  setItemsTotal(Number(res === null || res === void 0 ? void 0 : res.total));
@@ -3533,6 +3527,7 @@ function commonFun(type, prefixUrl) {
3533
3527
  };
3534
3528
  } // 仓库选择器
3535
3529
 
3530
+ console.log(requestConfig, 'requestConfig');
3536
3531
  return {
3537
3532
  modalTableProps: modalTableProps,
3538
3533
  requestConfig: requestConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -47,4 +47,4 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  }
50
- }
50
+ }
@@ -173,14 +173,12 @@ class DataValidation extends React.Component {
173
173
  cellRenderBefore: function (cell, postion, sheetFile, ctx) {
174
174
  if (cell) {
175
175
  cell.fs = 10;
176
-
176
+ if (typeof cell.v === 'number') {
177
+ cell.v = cell.m
178
+ }
177
179
  if (typeof cell.v === 'string') {
178
180
  cell.m = cell.v = cell.m.trim();
179
181
  }
180
- if (typeof cell.v === 'number') {
181
- cell.v = cell.v.toString()
182
- cell.m = cell.v
183
- }
184
182
  }
185
183
  // console.log(postion);
186
184
  },