@kmkf-fe-packages/basic-components 2.0.79-beta.53 → 2.0.79-beta.56
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 +19 -1
- package/dist/index.js +19 -1
- package/dist/src/apaas/SubForm/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -8065,7 +8065,8 @@ var SubForm = function SubForm(props) {
|
|
|
8065
8065
|
correlationList = _props$subConfig.correlationList,
|
|
8066
8066
|
tableHeader = props.tableHeader,
|
|
8067
8067
|
disabled = props.disabled,
|
|
8068
|
-
platform = props.platform
|
|
8068
|
+
platform = props.platform,
|
|
8069
|
+
maxCount = props.maxCount;
|
|
8069
8070
|
var ref = useRef(null);
|
|
8070
8071
|
var isRequest = useRef(false);
|
|
8071
8072
|
var _useState = useState(false),
|
|
@@ -8355,6 +8356,10 @@ var SubForm = function SubForm(props) {
|
|
|
8355
8356
|
}
|
|
8356
8357
|
});
|
|
8357
8358
|
}
|
|
8359
|
+
if (maxCount && (value === null || value === void 0 ? void 0 : value.length) >= maxCount) {
|
|
8360
|
+
message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
|
|
8361
|
+
return;
|
|
8362
|
+
}
|
|
8358
8363
|
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8359
8364
|
uuid: uuid()
|
|
8360
8365
|
})]));
|
|
@@ -13538,6 +13543,19 @@ var searchFormData = [{
|
|
|
13538
13543
|
}, {
|
|
13539
13544
|
label: '款式编码',
|
|
13540
13545
|
name: 'styleCode'
|
|
13546
|
+
}, {
|
|
13547
|
+
label: '商品类型',
|
|
13548
|
+
name: 'skuType',
|
|
13549
|
+
type: 'select',
|
|
13550
|
+
formItemProps: {
|
|
13551
|
+
options: [{
|
|
13552
|
+
label: '普通商品',
|
|
13553
|
+
value: 'normal'
|
|
13554
|
+
}, {
|
|
13555
|
+
label: '组合装商品',
|
|
13556
|
+
value: 'combine'
|
|
13557
|
+
}]
|
|
13558
|
+
}
|
|
13541
13559
|
}];
|
|
13542
13560
|
var GoodList$1 = function GoodList(props, ref) {
|
|
13543
13561
|
var _useState = useState([]),
|
package/dist/index.js
CHANGED
|
@@ -8078,7 +8078,8 @@ var SubForm = function SubForm(props) {
|
|
|
8078
8078
|
correlationList = _props$subConfig.correlationList,
|
|
8079
8079
|
tableHeader = props.tableHeader,
|
|
8080
8080
|
disabled = props.disabled,
|
|
8081
|
-
platform = props.platform
|
|
8081
|
+
platform = props.platform,
|
|
8082
|
+
maxCount = props.maxCount;
|
|
8082
8083
|
var ref = React.useRef(null);
|
|
8083
8084
|
var isRequest = React.useRef(false);
|
|
8084
8085
|
var _useState = React.useState(false),
|
|
@@ -8368,6 +8369,10 @@ var SubForm = function SubForm(props) {
|
|
|
8368
8369
|
}
|
|
8369
8370
|
});
|
|
8370
8371
|
}
|
|
8372
|
+
if (maxCount && (value === null || value === void 0 ? void 0 : value.length) >= maxCount) {
|
|
8373
|
+
antd.message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
|
|
8374
|
+
return;
|
|
8375
|
+
}
|
|
8371
8376
|
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8372
8377
|
uuid: kmkfUtils.uuid()
|
|
8373
8378
|
})]));
|
|
@@ -13551,6 +13556,19 @@ var searchFormData = [{
|
|
|
13551
13556
|
}, {
|
|
13552
13557
|
label: '款式编码',
|
|
13553
13558
|
name: 'styleCode'
|
|
13559
|
+
}, {
|
|
13560
|
+
label: '商品类型',
|
|
13561
|
+
name: 'skuType',
|
|
13562
|
+
type: 'select',
|
|
13563
|
+
formItemProps: {
|
|
13564
|
+
options: [{
|
|
13565
|
+
label: '普通商品',
|
|
13566
|
+
value: 'normal'
|
|
13567
|
+
}, {
|
|
13568
|
+
label: '组合装商品',
|
|
13569
|
+
value: 'combine'
|
|
13570
|
+
}]
|
|
13571
|
+
}
|
|
13554
13572
|
}];
|
|
13555
13573
|
var GoodList$1 = function GoodList(props, ref) {
|
|
13556
13574
|
var _useState = React.useState([]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.79-beta.
|
|
3
|
+
"version": "2.0.79-beta.56",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "5bf6e18472e0a418d03dc009e4d06901d79b3bb4"
|
|
70
70
|
}
|