mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(PasswordInput): use tsx
This commit is contained in:
parent
6319d44423
commit
d86a0900e1
@ -1,4 +1,3 @@
|
|||||||
// Utils
|
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant';
|
import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant';
|
||||||
|
|
||||||
@ -27,13 +26,13 @@ export default createComponent({
|
|||||||
emits: ['focus'],
|
emits: ['focus'],
|
||||||
|
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const onTouchStart = (event) => {
|
const onTouchStart = (event: TouchEvent) => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
emit('focus', event);
|
emit('focus', event);
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderPoints = () => {
|
const renderPoints = () => {
|
||||||
const Points = [];
|
const Points: JSX.Element[] = [];
|
||||||
const { mask, value, length, gutter, focused } = props;
|
const { mask, value, length, gutter, focused } = props;
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
Loading…
x
Reference in New Issue
Block a user