@kmkf-fe-packages/basic-components 1.22.1-beta.74 → 1.22.1-beta.76

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
@@ -11018,7 +11018,8 @@ var jstGoods = function jstGoods(props) {
11018
11018
  _props$showField = props.showField,
11019
11019
  showField = _props$showField === void 0 ? '' : _props$showField,
11020
11020
  _props$platformType = props.platformType,
11021
- platformType = _props$platformType === void 0 ? 'default' : _props$platformType;
11021
+ platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
11022
+ onlyShowFieldSelect = props.onlyShowFieldSelect;
11022
11023
  var _useState = useState(0),
11023
11024
  _useState2 = _slicedToArray(_useState, 2),
11024
11025
  changeIndex = _useState2[0],
@@ -11057,10 +11058,12 @@ var jstGoods = function jstGoods(props) {
11057
11058
  }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, t.title), /*#__PURE__*/React.createElement("div", null, "\u7F16\u7801\uFF1A", t.skuId))));
11058
11059
  }));
11059
11060
  };
11060
- var handleSelected = function handleSelected(val, type, option) {
11061
+ var handleSelected = function handleSelected(val, type, option, onlyShowFieldSelect) {
11061
11062
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
11062
11063
  changeOrderInfo[type] = val;
11063
- changeOrderInfo['sendId'] = option.value;
11064
+ if (!onlyShowFieldSelect) {
11065
+ changeOrderInfo['sendId'] = option.value;
11066
+ }
11064
11067
  if (isSelectName && type === 'sendName') {
11065
11068
  changeOrderInfo['sendSnapshotName'] = option.label;
11066
11069
  }
@@ -11164,7 +11167,7 @@ var jstGoods = function jstGoods(props) {
11164
11167
  filterOption: filterOption,
11165
11168
  value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
11166
11169
  onChange: function onChange(value, option) {
11167
- return handleSelected(value, 'sendName', option);
11170
+ return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
11168
11171
  }
11169
11172
  }) : /*#__PURE__*/React.createElement(Input, {
11170
11173
  disabled: disabled,
package/dist/index.js CHANGED
@@ -11030,7 +11030,8 @@ var jstGoods = function jstGoods(props) {
11030
11030
  _props$showField = props.showField,
11031
11031
  showField = _props$showField === void 0 ? '' : _props$showField,
11032
11032
  _props$platformType = props.platformType,
11033
- platformType = _props$platformType === void 0 ? 'default' : _props$platformType;
11033
+ platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
11034
+ onlyShowFieldSelect = props.onlyShowFieldSelect;
11034
11035
  var _useState = React.useState(0),
11035
11036
  _useState2 = _slicedToArray(_useState, 2),
11036
11037
  changeIndex = _useState2[0],
@@ -11069,10 +11070,12 @@ var jstGoods = function jstGoods(props) {
11069
11070
  }), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", null, t.title), /*#__PURE__*/React__default['default'].createElement("div", null, "\u7F16\u7801\uFF1A", t.skuId))));
11070
11071
  }));
11071
11072
  };
11072
- var handleSelected = function handleSelected(val, type, option) {
11073
+ var handleSelected = function handleSelected(val, type, option, onlyShowFieldSelect) {
11073
11074
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
11074
11075
  changeOrderInfo[type] = val;
11075
- changeOrderInfo['sendId'] = option.value;
11076
+ if (!onlyShowFieldSelect) {
11077
+ changeOrderInfo['sendId'] = option.value;
11078
+ }
11076
11079
  if (isSelectName && type === 'sendName') {
11077
11080
  changeOrderInfo['sendSnapshotName'] = option.label;
11078
11081
  }
@@ -11176,7 +11179,7 @@ var jstGoods = function jstGoods(props) {
11176
11179
  filterOption: filterOption,
11177
11180
  value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
11178
11181
  onChange: function onChange(value, option) {
11179
- return handleSelected(value, 'sendName', option);
11182
+ return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
11180
11183
  }
11181
11184
  }) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11182
11185
  disabled: disabled,
@@ -7,6 +7,7 @@ interface JstGoodsProps {
7
7
  onChange: (val: any[]) => void;
8
8
  showField: string;
9
9
  platformType?: string;
10
+ onlyShowFieldSelect: boolean;
10
11
  }
11
12
  declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
12
13
  export default jstGoods;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.22.1-beta.74",
3
+ "version": "1.22.1-beta.76",
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": "880cd0a9604d7a03edd9674c47d14a8ddf9546af"
68
+ "gitHead": "9e215e7ac80ed96ce62aa73337e97abf7241341e"
69
69
  }