@kmkf-fe-packages/basic-components 1.6.0-beta.10 → 1.6.0-beta.11

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
@@ -9979,18 +9979,20 @@ var Payment = function Payment(props) {
9979
9979
  _onBlur = props.onBlur,
9980
9980
  _props$replaceValueCh = props.replaceValueCh,
9981
9981
  replaceValueCh = _props$replaceValueCh === void 0 ? {} : _props$replaceValueCh;
9982
- useEffect(function () {
9983
- var platformList = ['TAOBAO', 'FXG'];
9984
- var showBuyerId = (shopList || []).some(function (item) {
9985
- return item.shopId == shopId && platformList.includes(item.shopSourceStr);
9986
- });
9987
- //如果不是淘宝店铺 旺旺id为空
9988
- if (!showBuyerId) {
9989
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
9990
- enterprisePaymentBuyerOpenUid: ''
9991
- }));
9992
- }
9993
- }, [shopId, shopList]);
9982
+ // useEffect(() => {
9983
+ // const platformList = ['TAOBAO', 'FXG'];
9984
+ // const showBuyerId = (shopList || []).some(
9985
+ // (item) =>
9986
+ // item.shopId == shopId && platformList.includes(item.shopSourceStr),
9987
+ // );
9988
+ // //如果不是淘宝店铺 旺旺id为空
9989
+ // if (!showBuyerId) {
9990
+ // onChange?.({
9991
+ // ...value,
9992
+ // enterprisePaymentBuyerOpenUid: '',
9993
+ // });
9994
+ // }
9995
+ // }, [shopId, shopList]);
9994
9996
  var changeValue = function changeValue(e, type) {
9995
9997
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value));
9996
9998
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
package/dist/index.js CHANGED
@@ -9991,18 +9991,20 @@ var Payment = function Payment(props) {
9991
9991
  _onBlur = props.onBlur,
9992
9992
  _props$replaceValueCh = props.replaceValueCh,
9993
9993
  replaceValueCh = _props$replaceValueCh === void 0 ? {} : _props$replaceValueCh;
9994
- React.useEffect(function () {
9995
- var platformList = ['TAOBAO', 'FXG'];
9996
- var showBuyerId = (shopList || []).some(function (item) {
9997
- return item.shopId == shopId && platformList.includes(item.shopSourceStr);
9998
- });
9999
- //如果不是淘宝店铺 旺旺id为空
10000
- if (!showBuyerId) {
10001
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10002
- enterprisePaymentBuyerOpenUid: ''
10003
- }));
10004
- }
10005
- }, [shopId, shopList]);
9994
+ // useEffect(() => {
9995
+ // const platformList = ['TAOBAO', 'FXG'];
9996
+ // const showBuyerId = (shopList || []).some(
9997
+ // (item) =>
9998
+ // item.shopId == shopId && platformList.includes(item.shopSourceStr),
9999
+ // );
10000
+ // //如果不是淘宝店铺 旺旺id为空
10001
+ // if (!showBuyerId) {
10002
+ // onChange?.({
10003
+ // ...value,
10004
+ // enterprisePaymentBuyerOpenUid: '',
10005
+ // });
10006
+ // }
10007
+ // }, [shopId, shopList]);
10006
10008
  var changeValue = function changeValue(e, type) {
10007
10009
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value));
10008
10010
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.6.0-beta.10",
3
+ "version": "1.6.0-beta.11",
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": "1.6.0-beta.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "1.6.0-beta.11",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.8",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "8e7ca05adb195c274949ffd71871603dbf51d45d"
68
+ "gitHead": "9c091ef006f04fcff953be476a3ce811841cb45f"
69
69
  }