@zgfe/business-lib 1.1.13-alpha.0 → 1.1.13-alpha.1

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.
@@ -3,6 +3,7 @@ declare const BizSearchInput: React.FC<{
3
3
  value?: string;
4
4
  className?: string;
5
5
  onChange?: (val: string) => void;
6
+ onBlur?: (val?: string) => void;
6
7
  placeholder?: string;
7
8
  }>;
8
9
  export default BizSearchInput;
@@ -11,6 +11,10 @@ var BizSearchInput = function BizSearchInput(props) {
11
11
  if (props.onChange) props.onChange(e.target.value);
12
12
  }
13
13
 
14
+ function onBlur(e) {
15
+ if (props.onBlur) props.onBlur(e.target.value);
16
+ }
17
+
14
18
  return /*#__PURE__*/React.createElement(Input, {
15
19
  className: className,
16
20
  value: value,
@@ -24,7 +28,8 @@ var BizSearchInput = function BizSearchInput(props) {
24
28
  },
25
29
  placeholder: placeholder || '请输入',
26
30
  autoFocus: true,
27
- onChange: onChange
31
+ onChange: onChange,
32
+ onBlur: onBlur
28
33
  });
29
34
  };
30
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.13-alpha.0",
3
+ "version": "1.1.13-alpha.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "63fcf4f2e0e0d79129b80b974bae79b15f4cc65c"
63
+ "gitHead": "3f382708c2e3802a3e789129141df7424f7e30cf"
64
64
  }