mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-07 08:40:16 +00:00
feat: add password type
This commit is contained in:
parent
bbf1804161
commit
661b60d85f
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let type: 'text' | 'number' | 'tel' | 'e-mail' = 'text';
|
export let type: 'text' | 'number' | 'tel' | 'e-mail' | "password" = 'text';
|
||||||
const typeAction = (node: HTMLInputElement) => {
|
const typeAction = (node: HTMLInputElement) => {
|
||||||
node.type = type;
|
node.type = type;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue