@kmkf-fe-packages/basic-components 0.8.7-alpha.11 → 0.8.7-alpha.15

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
@@ -9897,14 +9897,21 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9897
9897
  };
9898
9898
  var onFinish = function onFinish(value) {
9899
9899
  var newFilterList = [];
9900
- Object.keys(value).forEach(function (key) {
9901
- if (value[key]) {
9902
- newFilterList = allList.filter(function (item) {
9903
- return item[key].indexOf(value[key]) > -1;
9904
- });
9905
- }
9900
+ var hasValue = Object.values(value).some(function (t) {
9901
+ return !!t;
9906
9902
  });
9907
- initData(newFilterList);
9903
+ if (hasValue) {
9904
+ Object.keys(value).forEach(function (key) {
9905
+ if (value[key]) {
9906
+ newFilterList = allList.filter(function (item) {
9907
+ return item[key].indexOf(value[key]) > -1;
9908
+ });
9909
+ }
9910
+ });
9911
+ initData(newFilterList);
9912
+ } else {
9913
+ initData(allList);
9914
+ }
9908
9915
  };
9909
9916
  var onReset = function onReset() {
9910
9917
  form.resetFields();
package/dist/index.js CHANGED
@@ -9908,14 +9908,21 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9908
9908
  };
9909
9909
  var onFinish = function onFinish(value) {
9910
9910
  var newFilterList = [];
9911
- Object.keys(value).forEach(function (key) {
9912
- if (value[key]) {
9913
- newFilterList = allList.filter(function (item) {
9914
- return item[key].indexOf(value[key]) > -1;
9915
- });
9916
- }
9911
+ var hasValue = Object.values(value).some(function (t) {
9912
+ return !!t;
9917
9913
  });
9918
- initData(newFilterList);
9914
+ if (hasValue) {
9915
+ Object.keys(value).forEach(function (key) {
9916
+ if (value[key]) {
9917
+ newFilterList = allList.filter(function (item) {
9918
+ return item[key].indexOf(value[key]) > -1;
9919
+ });
9920
+ }
9921
+ });
9922
+ initData(newFilterList);
9923
+ } else {
9924
+ initData(allList);
9925
+ }
9919
9926
  };
9920
9927
  var onReset = function onReset() {
9921
9928
  form.resetFields();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.8.7-alpha.11",
3
+ "version": "0.8.7-alpha.15",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "c5c3b6840ab8c42984a16aef61dccb2c256adc2c"
61
+ "gitHead": "5eddc14810f54825e8c4d4d44d843063a69cb66d"
62
62
  }