kts-component-invoice-operate 3.2.161 → 3.2.162

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
@@ -23282,8 +23282,8 @@ function InvoiceTypeModal(props) {
23282
23282
  });
23283
23283
  setValues(form.getFieldsValue());
23284
23284
  }, [props.onChange, form]);
23285
- var onInvoiceTypeChange = React.useCallback(function (e) {
23286
- props.onInvoiceTypeChange && props.onInvoiceTypeChange(e.target.value);
23285
+ var onInvoiceTypeChange = React.useCallback(function (value) {
23286
+ props.onInvoiceTypeChange && props.onInvoiceTypeChange(value);
23287
23287
  form.setFieldsValue({
23288
23288
  business: null
23289
23289
  });
package/dist/index.js CHANGED
@@ -23292,8 +23292,8 @@ function InvoiceTypeModal(props) {
23292
23292
  });
23293
23293
  setValues(form.getFieldsValue());
23294
23294
  }, [props.onChange, form]);
23295
- var onInvoiceTypeChange = React__default['default'].useCallback(function (e) {
23296
- props.onInvoiceTypeChange && props.onInvoiceTypeChange(e.target.value);
23295
+ var onInvoiceTypeChange = React__default['default'].useCallback(function (value) {
23296
+ props.onInvoiceTypeChange && props.onInvoiceTypeChange(value);
23297
23297
  form.setFieldsValue({
23298
23298
  business: null
23299
23299
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.161",
3
+ "version": "3.2.162",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -76,8 +76,8 @@ export default function InvoiceTypeModal(props: IInvoiceTypeModalProps) {
76
76
  form.setFieldsValue({ invoiceType: null, business: null });
77
77
  setValues(form.getFieldsValue());
78
78
  }, [props.onChange, form])
79
- const onInvoiceTypeChange = React.useCallback(e => {
80
- props.onInvoiceTypeChange && props.onInvoiceTypeChange(e.target.value);
79
+ const onInvoiceTypeChange = React.useCallback(value => {
80
+ props.onInvoiceTypeChange && props.onInvoiceTypeChange(value);
81
81
  form.setFieldsValue({ business: null });
82
82
  setValues(form.getFieldsValue());
83
83
  }, [props.onInvoiceTypeChange, form])