kts-component-invoice-operate 3.2.49 → 3.2.50

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
@@ -10072,7 +10072,8 @@ function ItemCodeInput(props) {
10072
10072
  className: 'kts-invoice-operate-goods-list-itemCode-input'
10073
10073
  }, /*#__PURE__*/React.createElement(AutoComplete$1, {
10074
10074
  onSearch: onSearch,
10075
- value: props.value,
10075
+ defaultValue: props.value,
10076
+ value: editGood === null || editGood === void 0 ? void 0 : editGood.itemCode,
10076
10077
  options: options.map(function (e) {
10077
10078
  return {
10078
10079
  value: e.itemCode
@@ -10084,6 +10085,7 @@ function ItemCodeInput(props) {
10084
10085
  height: '100%',
10085
10086
  border: 'none'
10086
10087
  },
10088
+ value: props.value,
10087
10089
  onChange: onChange
10088
10090
  })));
10089
10091
  }
package/dist/index.js CHANGED
@@ -10082,7 +10082,8 @@ function ItemCodeInput(props) {
10082
10082
  className: 'kts-invoice-operate-goods-list-itemCode-input'
10083
10083
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoComplete, {
10084
10084
  onSearch: onSearch,
10085
- value: props.value,
10085
+ defaultValue: props.value,
10086
+ value: editGood === null || editGood === void 0 ? void 0 : editGood.itemCode,
10086
10087
  options: options.map(function (e) {
10087
10088
  return {
10088
10089
  value: e.itemCode
@@ -10094,6 +10095,7 @@ function ItemCodeInput(props) {
10094
10095
  height: '100%',
10095
10096
  border: 'none'
10096
10097
  },
10098
+ value: props.value,
10097
10099
  onChange: onChange
10098
10100
  })));
10099
10101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.49",
3
+ "version": "3.2.50",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -50,8 +50,8 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
50
50
 
51
51
  return (
52
52
  <div className='kts-invoice-operate-goods-list-itemCode-input'>
53
- <AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemCode }))} onChange={onChangeAutoComplete} >
54
- <Input style={{ height: '100%', border: 'none' }} onChange={onChange} />
53
+ <AutoComplete onSearch={onSearch} defaultValue={props.value} value={editGood?.itemCode} options={options.map(e => ({ value: e.itemCode }))} onChange={onChangeAutoComplete} >
54
+ <Input style={{ height: '100%', border: 'none' }} value={props.value} onChange={onChange} />
55
55
  </AutoComplete>
56
56
  </div>
57
57
  )