kts-component-invoice-operate 3.2.234 → 3.2.235

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
@@ -19256,13 +19256,14 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
19256
19256
  label: "中华人民共和国台湾居民居住证",
19257
19257
  value: "238"
19258
19258
  }];
19259
- var getLable = React.useCallback(function (value) {
19259
+
19260
+ function getLable(value) {
19260
19261
  var _option$find;
19261
19262
 
19262
19263
  return ((_option$find = option.find(function (e) {
19263
19264
  return e.value === value;
19264
19265
  })) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
19265
- }, []);
19266
+ }
19266
19267
 
19267
19268
  if (props.readOnly) {
19268
19269
  return /*#__PURE__*/React.createElement("span", {
@@ -20036,13 +20037,14 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
20036
20037
  value: "A00",
20037
20038
  label: "科索沃"
20038
20039
  }];
20039
- var getLable = React.useCallback(function (value) {
20040
+
20041
+ function getLable(value) {
20040
20042
  var _option$find2;
20041
20043
 
20042
20044
  return ((_option$find2 = option.find(function (e) {
20043
20045
  return e.value === value;
20044
20046
  })) === null || _option$find2 === void 0 ? void 0 : _option$find2.label) || '';
20045
- }, []);
20047
+ }
20046
20048
 
20047
20049
  if (props.readOnly) {
20048
20050
  return /*#__PURE__*/React.createElement("span", {
package/dist/index.js CHANGED
@@ -19266,13 +19266,14 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
19266
19266
  label: "中华人民共和国台湾居民居住证",
19267
19267
  value: "238"
19268
19268
  }];
19269
- var getLable = React__default['default'].useCallback(function (value) {
19269
+
19270
+ function getLable(value) {
19270
19271
  var _option$find;
19271
19272
 
19272
19273
  return ((_option$find = option.find(function (e) {
19273
19274
  return e.value === value;
19274
19275
  })) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
19275
- }, []);
19276
+ }
19276
19277
 
19277
19278
  if (props.readOnly) {
19278
19279
  return /*#__PURE__*/React__default['default'].createElement("span", {
@@ -20046,13 +20047,14 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
20046
20047
  value: "A00",
20047
20048
  label: "科索沃"
20048
20049
  }];
20049
- var getLable = React__default['default'].useCallback(function (value) {
20050
+
20051
+ function getLable(value) {
20050
20052
  var _option$find2;
20051
20053
 
20052
20054
  return ((_option$find2 = option.find(function (e) {
20053
20055
  return e.value === value;
20054
20056
  })) === null || _option$find2 === void 0 ? void 0 : _option$find2.label) || '';
20055
- }, []);
20057
+ }
20056
20058
 
20057
20059
  if (props.readOnly) {
20058
20060
  return /*#__PURE__*/React__default['default'].createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.234",
3
+ "version": "3.2.235",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -589,11 +589,11 @@ class CardSelect extends React.Component<any> {
589
589
  { label: "中华人民共和国台湾居民居住证", value: "238" },
590
590
 
591
591
  ];
592
- const getLable = React.useCallback((value?: string) => {
592
+ function getLable (value?: string) {
593
593
 
594
594
  return option.find(e => e.value === value)?.label || '';
595
595
 
596
- }, [])
596
+ }
597
597
  if (props.readOnly) {
598
598
  return <span className='digtal-stakeholder-form-text'>{getLable(props.value)}</span>
599
599
  } else {
@@ -855,11 +855,11 @@ class NationalSelect extends React.Component<any> {
855
855
  { value: "A00", label: "科索沃" }
856
856
  ];
857
857
 
858
- const getLable = React.useCallback((value?: string) => {
858
+ function getLable (value?: string) {
859
859
 
860
860
  return option.find(e => e.value === value)?.label || '';
861
861
 
862
- }, [])
862
+ }
863
863
  if (props.readOnly) {
864
864
  return <span className='digtal-stakeholder-form-text'>{getLable(props.value)}</span>
865
865
  } else {