@kmkf-fe-packages/basic-components 0.17.0-alpha.0 → 0.17.0

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
@@ -7358,7 +7358,7 @@ var Province = function Province(props) {
7358
7358
  _useState2 = _slicedToArray(_useState, 2),
7359
7359
  option = _useState2[0],
7360
7360
  setOptions = _useState2[1];
7361
- var num = 1;
7361
+ var num = 0;
7362
7362
  var isFirst = useRef(false);
7363
7363
  var time = useRef();
7364
7364
  var initPageSource = /*#__PURE__*/function () {
@@ -7369,12 +7369,10 @@ var Province = function Province(props) {
7369
7369
  case 0:
7370
7370
  num++;
7371
7371
  options = type !== 'bs' ? AddressData.getInstance().addressOptions || [] : BsAddressData.getInstance().addressOptions || [];
7372
- if (!(options === null || options === void 0 ? void 0 : options.length) && num < 5) {
7372
+ if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7373
7373
  time.current = setTimeout(function () {
7374
7374
  initPageSource();
7375
7375
  }, 1000);
7376
- } else {
7377
- clearTimeout(time.current);
7378
7376
  }
7379
7377
  setOptions(options);
7380
7378
  case 4:
@@ -7392,6 +7390,9 @@ var Province = function Province(props) {
7392
7390
  initPageSource();
7393
7391
  isFirst.current = true;
7394
7392
  }
7393
+ return function () {
7394
+ clearTimeout(time.current);
7395
+ };
7395
7396
  }, []);
7396
7397
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7397
7398
  options: option,
package/dist/index.js CHANGED
@@ -7369,7 +7369,7 @@ var Province = function Province(props) {
7369
7369
  _useState2 = _slicedToArray(_useState, 2),
7370
7370
  option = _useState2[0],
7371
7371
  setOptions = _useState2[1];
7372
- var num = 1;
7372
+ var num = 0;
7373
7373
  var isFirst = React.useRef(false);
7374
7374
  var time = React.useRef();
7375
7375
  var initPageSource = /*#__PURE__*/function () {
@@ -7380,12 +7380,10 @@ var Province = function Province(props) {
7380
7380
  case 0:
7381
7381
  num++;
7382
7382
  options = type !== 'bs' ? kmkfUtils.AddressData.getInstance().addressOptions || [] : kmkfUtils.BsAddressData.getInstance().addressOptions || [];
7383
- if (!(options === null || options === void 0 ? void 0 : options.length) && num < 5) {
7383
+ if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7384
7384
  time.current = setTimeout(function () {
7385
7385
  initPageSource();
7386
7386
  }, 1000);
7387
- } else {
7388
- clearTimeout(time.current);
7389
7387
  }
7390
7388
  setOptions(options);
7391
7389
  case 4:
@@ -7403,6 +7401,9 @@ var Province = function Province(props) {
7403
7401
  initPageSource();
7404
7402
  isFirst.current = true;
7405
7403
  }
7404
+ return function () {
7405
+ clearTimeout(time.current);
7406
+ };
7406
7407
  }, []);
7407
7408
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7408
7409
  options: option,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.17.0-alpha.0",
3
+ "version": "0.17.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "^0.17.0-alpha.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.17.0",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "a83dbac34b4f78b7725a46396757a0c95bcc6698"
64
+ "gitHead": "f29b1d65ee1ea143e0a7f3edb898f9068ea4f910"
65
65
  }