diff --git a/src/password-input/index.js b/src/password-input/index.tsx similarity index 95% rename from src/password-input/index.js rename to src/password-input/index.tsx index 09533c1e6..ce92c74ab 100644 --- a/src/password-input/index.js +++ b/src/password-input/index.tsx @@ -1,4 +1,3 @@ -// Utils import { createNamespace, addUnit } from '../utils'; import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant'; @@ -27,13 +26,13 @@ export default createComponent({ emits: ['focus'], setup(props, { emit }) { - const onTouchStart = (event) => { + const onTouchStart = (event: TouchEvent) => { event.stopPropagation(); emit('focus', event); }; const renderPoints = () => { - const Points = []; + const Points: JSX.Element[] = []; const { mask, value, length, gutter, focused } = props; for (let i = 0; i < length; i++) {