2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 01:44:15 +00:00

feat: secret component for passwords

This commit is contained in:
akshayitzme 2024-12-05 17:16:23 +05:30
parent f3d6f055c5
commit b28aa8edc8
2 changed files with 16 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import Int from './Int.vue';
import Link from './Link.vue';
import Select from './Select.vue';
import Text from './Text.vue';
import Secret from './Secret.vue';
const components = {
AttachImage,
@ -32,6 +33,7 @@ const components = {
Attachment,
Currency,
Text,
Secret,
};
export default {

View File

@ -0,0 +1,14 @@
<script lang="ts">
import Base from './Base.vue';
import { defineComponent } from 'vue';
export default defineComponent({
name: 'Secret',
extends: Base,
computed: {
inputType() {
return 'password';
},
},
});
</script>