@kmkf-fe-packages/basic-components 1.0.6-rc.14 → 1.0.6-rc.18
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 +6 -6
- package/dist/index.js +6 -6
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -10443,7 +10443,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10443
10443
|
var wdtSendOptions = WdtSendData.getInstance().wdtSendData || [];
|
|
10444
10444
|
useEffect(function () {
|
|
10445
10445
|
//没有值塞个默认值
|
|
10446
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
10446
|
+
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
10447
10447
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10448
10448
|
}
|
|
10449
10449
|
}, [value, type]);
|
|
@@ -10506,7 +10506,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10506
10506
|
return setChangeIndex(index);
|
|
10507
10507
|
}
|
|
10508
10508
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
10509
|
-
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10509
|
+
}))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10510
10510
|
disabled: disabled,
|
|
10511
10511
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
10512
10512
|
onChange: function onChange(val) {
|
|
@@ -14327,7 +14327,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14327
14327
|
changeIndex = _useState2[0],
|
|
14328
14328
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14329
14329
|
useEffect(function () {
|
|
14330
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
14330
|
+
if (!(value === null || value === void 0 ? void 0 : value.length) && type === 1) {
|
|
14331
14331
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
|
|
14332
14332
|
}
|
|
14333
14333
|
}, [value, type]);
|
|
@@ -14366,7 +14366,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14366
14366
|
return setChangeIndex(index);
|
|
14367
14367
|
}
|
|
14368
14368
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14369
|
-
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14369
|
+
}))) : null, value.length || type !== 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14370
14370
|
disabled: disabled,
|
|
14371
14371
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
14372
14372
|
onChange: function onChange(e) {
|
|
@@ -14454,7 +14454,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14454
14454
|
return setChangeIndex(index);
|
|
14455
14455
|
}
|
|
14456
14456
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14457
|
-
}))) : null,
|
|
14457
|
+
}))) : null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
14458
14458
|
showSearch: true,
|
|
14459
14459
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
14460
14460
|
filterOption: function filterOption(input, option) {
|
|
@@ -14470,7 +14470,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14470
14470
|
}
|
|
14471
14471
|
}))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React.createElement("div", {
|
|
14472
14472
|
className: "c-red"
|
|
14473
|
-
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null)
|
|
14473
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
14474
14474
|
};
|
|
14475
14475
|
|
|
14476
14476
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
package/dist/index.js
CHANGED
|
@@ -10455,7 +10455,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10455
10455
|
var wdtSendOptions = kmkfUtils.WdtSendData.getInstance().wdtSendData || [];
|
|
10456
10456
|
React.useEffect(function () {
|
|
10457
10457
|
//没有值塞个默认值
|
|
10458
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
10458
|
+
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
10459
10459
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10460
10460
|
}
|
|
10461
10461
|
}, [value, type]);
|
|
@@ -10518,7 +10518,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10518
10518
|
return setChangeIndex(index);
|
|
10519
10519
|
}
|
|
10520
10520
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
10521
|
-
}))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10521
|
+
}))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10522
10522
|
disabled: disabled,
|
|
10523
10523
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
10524
10524
|
onChange: function onChange(val) {
|
|
@@ -14339,7 +14339,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14339
14339
|
changeIndex = _useState2[0],
|
|
14340
14340
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14341
14341
|
React.useEffect(function () {
|
|
14342
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
14342
|
+
if (!(value === null || value === void 0 ? void 0 : value.length) && type === 1) {
|
|
14343
14343
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
|
|
14344
14344
|
}
|
|
14345
14345
|
}, [value, type]);
|
|
@@ -14378,7 +14378,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14378
14378
|
return setChangeIndex(index);
|
|
14379
14379
|
}
|
|
14380
14380
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14381
|
-
}))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14381
|
+
}))) : null, value.length || type !== 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14382
14382
|
disabled: disabled,
|
|
14383
14383
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
14384
14384
|
onChange: function onChange(e) {
|
|
@@ -14466,7 +14466,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14466
14466
|
return setChangeIndex(index);
|
|
14467
14467
|
}
|
|
14468
14468
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14469
|
-
}))) : null,
|
|
14469
|
+
}))) : null, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
14470
14470
|
showSearch: true,
|
|
14471
14471
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
14472
14472
|
filterOption: function filterOption(input, option) {
|
|
@@ -14482,7 +14482,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14482
14482
|
}
|
|
14483
14483
|
}))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14484
14484
|
className: "c-red"
|
|
14485
|
-
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null)
|
|
14485
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
14486
14486
|
};
|
|
14487
14487
|
|
|
14488
14488
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.0.6-rc.
|
|
3
|
+
"version": "1.0.6-rc.18",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "5c88c7ae0d9ad59798c6199a49656cf869cbbb62"
|
|
69
69
|
}
|