@bit-sun/business-component 2.4.26 → 2.4.27

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
@@ -10252,7 +10252,9 @@ var CommodityEntry = function CommodityEntry(props) {
10252
10252
  _props$isBrandAuth = props.isBrandAuth,
10253
10253
  isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
10254
10254
  _props$isCheckStockNu = props.isCheckStockNum,
10255
- isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu;
10255
+ isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu,
10256
+ _props$otherModalProp = props.otherModalProps,
10257
+ otherModalProps = _props$otherModalProp === void 0 ? {} : _props$otherModalProp;
10256
10258
  var _useState = useState({
10257
10259
  maskClosable: false,
10258
10260
  width: 800,
@@ -10302,7 +10304,7 @@ var CommodityEntry = function CommodityEntry(props) {
10302
10304
  onCancel: handleCancel,
10303
10305
  destroyOnClose: true,
10304
10306
  zIndex: 15
10305
- }), /*#__PURE__*/React.createElement(DataValidation, {
10307
+ }, otherModalProps), /*#__PURE__*/React.createElement(DataValidation, {
10306
10308
  onRef: function onRef(ref) {
10307
10309
  dataValidationRef = ref;
10308
10310
  },
package/dist/index.js CHANGED
@@ -10272,7 +10272,9 @@ var CommodityEntry = function CommodityEntry(props) {
10272
10272
  _props$isBrandAuth = props.isBrandAuth,
10273
10273
  isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
10274
10274
  _props$isCheckStockNu = props.isCheckStockNum,
10275
- isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu;
10275
+ isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu,
10276
+ _props$otherModalProp = props.otherModalProps,
10277
+ otherModalProps = _props$otherModalProp === void 0 ? {} : _props$otherModalProp;
10276
10278
  var _useState = React.useState({
10277
10279
  maskClosable: false,
10278
10280
  width: 800,
@@ -10322,7 +10324,7 @@ var CommodityEntry = function CommodityEntry(props) {
10322
10324
  onCancel: handleCancel,
10323
10325
  destroyOnClose: true,
10324
10326
  zIndex: 15
10325
- }), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
10327
+ }, otherModalProps), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
10326
10328
  onRef: function onRef(ref) {
10327
10329
  dataValidationRef = ref;
10328
10330
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.4.26",
3
+ "version": "2.4.27",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -15,7 +15,8 @@ const CommodityEntry = (props: any) => {
15
15
  columns=["skuCode", "quantity", "price"],
16
16
  validDataUrl="/items/sku/import/check",
17
17
  isBrandAuth = true, // 默认做品牌过滤
18
- isCheckStockNum = true
18
+ isCheckStockNum = true,
19
+ otherModalProps = {},
19
20
  } = props;
20
21
 
21
22
  const [modalProps, setModalProps]: any = useState({
@@ -63,7 +64,7 @@ const CommodityEntry = (props: any) => {
63
64
  <div>
64
65
  <Button onClick={handleShowModal} {...buttonProps}>{buttonName}</Button>
65
66
  {modalProps.visible && (
66
- <Modal {...modalProps} onOk={handleOk} onCancel={handleCancel} destroyOnClose={true} zIndex={15}>
67
+ <Modal {...modalProps} onOk={handleOk} onCancel={handleCancel} destroyOnClose={true} zIndex={15} {...otherModalProps} >
67
68
  <DataValidation
68
69
  onRef={(ref) => { dataValidationRef = ref }}
69
70
  columns={columns}