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:
parent
f3d6f055c5
commit
b28aa8edc8
@ -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 {
|
||||
|
14
src/components/Controls/Secret.vue
Normal file
14
src/components/Controls/Secret.vue
Normal 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>
|
Loading…
Reference in New Issue
Block a user