x-ui-design 1.0.28 → 1.0.29
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 +8 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/lib/components/Input/Input.tsx +8 -10
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3886,17 +3886,15 @@ const InputComponent = ({
|
|
|
3886
3886
|
const [iconRenderVisible, setIconRenderVisible] = useState(false);
|
|
3887
3887
|
const animationRef = useRef(null);
|
|
3888
3888
|
useImperativeHandle(ref, () => ({
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
inputRef.current.setSelectionRange(start, end);
|
|
3897
|
-
}
|
|
3889
|
+
focus: () => inputRef.current?.focus(),
|
|
3890
|
+
blur: () => inputRef.current?.blur(),
|
|
3891
|
+
input: inputRef.current,
|
|
3892
|
+
nativeElement: inputRef.current,
|
|
3893
|
+
setSelectionRange: (start, end) => {
|
|
3894
|
+
if (inputRef.current) {
|
|
3895
|
+
inputRef.current.setSelectionRange(start, end);
|
|
3898
3896
|
}
|
|
3899
|
-
}
|
|
3897
|
+
}
|
|
3900
3898
|
}));
|
|
3901
3899
|
useEffect(() => {
|
|
3902
3900
|
setMaskValue(mask ? applyMask(stripMask(`${value ?? ''}`, mask, maskChar), mask, maskChar).masked : value ?? '');
|