@kmkf-fe-packages/basic-components 0.11.0-alpha.8 → 0.11.1-alpha.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
@@ -9791,9 +9791,11 @@ var jstGoods = function jstGoods(props) {
9791
9791
  _useState2 = _slicedToArray(_useState, 2),
9792
9792
  changeIndex = _useState2[0],
9793
9793
  setChangeIndex = _useState2[1]; //选中的包裹
9794
- useEffect(function () {
9795
- setChangeIndex(0);
9796
- }, [value]);
9794
+ // useEffect(() => {
9795
+ // if (value.length <= 1) {
9796
+ // setChangeIndex(0);
9797
+ // }
9798
+ // }, [value]);
9797
9799
  var content = function content(item, index) {
9798
9800
  return /*#__PURE__*/React.createElement("div", {
9799
9801
  style: {
@@ -9853,7 +9855,8 @@ var jstGoods = function jstGoods(props) {
9853
9855
  return option.label.includes(input);
9854
9856
  },
9855
9857
  style: {
9856
- minWidth: '100px'
9858
+ minWidth: '100px',
9859
+ maxWidth: '180px'
9857
9860
  }
9858
9861
  }) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
9859
9862
  disabled: disabled,
@@ -11324,7 +11327,7 @@ var WlnGoods = function WlnGoods(props) {
11324
11327
  onChange = props.onChange;
11325
11328
  var changeHandle = function changeHandle(list) {
11326
11329
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
11327
- bsGoods: list
11330
+ wlnGoods: list
11328
11331
  }));
11329
11332
  };
11330
11333
  return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
@@ -11851,9 +11854,11 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11851
11854
  _useState2 = _slicedToArray(_useState, 2),
11852
11855
  changeIndex = _useState2[0],
11853
11856
  setChangeIndex = _useState2[1]; //选中的包裹
11854
- useEffect(function () {
11855
- setChangeIndex(0);
11856
- }, [value]);
11857
+ // useEffect(() => {
11858
+ // if (value.length <= 1) {
11859
+ // setChangeIndex(0);
11860
+ // }
11861
+ // }, [value]);
11857
11862
  var content = function content(item, index) {
11858
11863
  return /*#__PURE__*/React.createElement("div", {
11859
11864
  style: {
@@ -11867,6 +11872,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11867
11872
  changeOrderInfo[type] = val;
11868
11873
  var newList = _toConsumableArray(value);
11869
11874
  newList[changeIndex] = changeOrderInfo;
11875
+ console.log(newList, val, type);
11870
11876
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
11871
11877
  };
11872
11878
  //判断是否是单个且没有商品数据
@@ -11934,9 +11940,11 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11934
11940
  _useState2 = _slicedToArray(_useState, 2),
11935
11941
  changeIndex = _useState2[0],
11936
11942
  setChangeIndex = _useState2[1]; //选中的包裹
11937
- useEffect(function () {
11938
- setChangeIndex(0);
11939
- }, [value]);
11943
+ // useEffect(() => {
11944
+ // if (value.length <= 1) {
11945
+ // setChangeIndex(0);
11946
+ // }
11947
+ // }, [value]);
11940
11948
  var content = function content(item, index) {
11941
11949
  return /*#__PURE__*/React.createElement("div", {
11942
11950
  style: {
package/dist/index.js CHANGED
@@ -9802,9 +9802,11 @@ var jstGoods = function jstGoods(props) {
9802
9802
  _useState2 = _slicedToArray(_useState, 2),
9803
9803
  changeIndex = _useState2[0],
9804
9804
  setChangeIndex = _useState2[1]; //选中的包裹
9805
- React.useEffect(function () {
9806
- setChangeIndex(0);
9807
- }, [value]);
9805
+ // useEffect(() => {
9806
+ // if (value.length <= 1) {
9807
+ // setChangeIndex(0);
9808
+ // }
9809
+ // }, [value]);
9808
9810
  var content = function content(item, index) {
9809
9811
  return /*#__PURE__*/React__default['default'].createElement("div", {
9810
9812
  style: {
@@ -9864,7 +9866,8 @@ var jstGoods = function jstGoods(props) {
9864
9866
  return option.label.includes(input);
9865
9867
  },
9866
9868
  style: {
9867
- minWidth: '100px'
9869
+ minWidth: '100px',
9870
+ maxWidth: '180px'
9868
9871
  }
9869
9872
  }) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9870
9873
  disabled: disabled,
@@ -11335,7 +11338,7 @@ var WlnGoods = function WlnGoods(props) {
11335
11338
  onChange = props.onChange;
11336
11339
  var changeHandle = function changeHandle(list) {
11337
11340
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
11338
- bsGoods: list
11341
+ wlnGoods: list
11339
11342
  }));
11340
11343
  };
11341
11344
  return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
@@ -11862,9 +11865,11 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11862
11865
  _useState2 = _slicedToArray(_useState, 2),
11863
11866
  changeIndex = _useState2[0],
11864
11867
  setChangeIndex = _useState2[1]; //选中的包裹
11865
- React.useEffect(function () {
11866
- setChangeIndex(0);
11867
- }, [value]);
11868
+ // useEffect(() => {
11869
+ // if (value.length <= 1) {
11870
+ // setChangeIndex(0);
11871
+ // }
11872
+ // }, [value]);
11868
11873
  var content = function content(item, index) {
11869
11874
  return /*#__PURE__*/React__default['default'].createElement("div", {
11870
11875
  style: {
@@ -11878,6 +11883,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11878
11883
  changeOrderInfo[type] = val;
11879
11884
  var newList = _toConsumableArray(value);
11880
11885
  newList[changeIndex] = changeOrderInfo;
11886
+ console.log(newList, val, type);
11881
11887
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
11882
11888
  };
11883
11889
  //判断是否是单个且没有商品数据
@@ -11945,9 +11951,11 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11945
11951
  _useState2 = _slicedToArray(_useState, 2),
11946
11952
  changeIndex = _useState2[0],
11947
11953
  setChangeIndex = _useState2[1]; //选中的包裹
11948
- React.useEffect(function () {
11949
- setChangeIndex(0);
11950
- }, [value]);
11954
+ // useEffect(() => {
11955
+ // if (value.length <= 1) {
11956
+ // setChangeIndex(0);
11957
+ // }
11958
+ // }, [value]);
11951
11959
  var content = function content(item, index) {
11952
11960
  return /*#__PURE__*/React__default['default'].createElement("div", {
11953
11961
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.11.0-alpha.8",
3
+ "version": "0.11.1-alpha.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.11.0-alpha.8",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.11.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": "5157803be30a86d0fe89ab8da2fe2ccb6bda63df"
64
+ "gitHead": "0b168857cccb749e9403088abd90cd6bf5f57757"
65
65
  }