ztxkui 3.6.16 → 3.7.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/Demo.js CHANGED
@@ -53,7 +53,6 @@ function Demo() {
53
53
  }
54
54
  };
55
55
  }, []);
56
- console.log(list);
57
56
  return (React.createElement("div", { style: { height: 2000 } },
58
57
  React.createElement(Link, { to: "/test" }, "test"),
59
58
  React.createElement("div", null,
@@ -626,7 +626,16 @@ function EnhanceSelect(_a) {
626
626
  }
627
627
  });
628
628
  }
629
- onChange && onChange(value, option, currentData);
629
+ // 因为将数据类型转成了字符串,可能导致value的数据类型跟原数据数据类型不一致
630
+ // 这里将value赋值成原数据中的数据
631
+ var __value = value;
632
+ if (Array.isArray(__value)) {
633
+ __value = currentData.map(function (item) { return item[key_1]; });
634
+ }
635
+ else {
636
+ __value = currentData[key_1];
637
+ }
638
+ onChange && onChange(__value, option, currentData);
630
639
  }
631
640
  else {
632
641
  onChange && onChange(value, option);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.6.16",
3
+ "version": "3.7.0",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",