zy-react-library 1.0.56 → 1.0.57

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.
@@ -6,6 +6,7 @@ import { getLabelName } from "../../../utils";
6
6
  */
7
7
  function BasicSelect(props) {
8
8
  const {
9
+ onChange,
9
10
  onGetLabel,
10
11
  placeholder = "",
11
12
  data = [],
@@ -14,11 +15,12 @@ function BasicSelect(props) {
14
15
  ...restProps
15
16
  } = props;
16
17
 
17
- const handleChange = (event) => {
18
+ const handleChange = (event, option) => {
18
19
  if (event)
19
20
  onGetLabel?.(getLabelName({ list: data, status: event, idKey, nameKey }));
20
21
  else
21
22
  onGetLabel?.("");
23
+ onChange?.(event, option);
22
24
  };
23
25
 
24
26
  return (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.56",
4
+ "version": "1.0.57",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",