mirror of
https://github.com/frappe/books.git
synced 2025-01-24 15:48:25 +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 Link from './Link.vue';
|
||||||
import Select from './Select.vue';
|
import Select from './Select.vue';
|
||||||
import Text from './Text.vue';
|
import Text from './Text.vue';
|
||||||
|
import Secret from './Secret.vue';
|
||||||
|
|
||||||
const components = {
|
const components = {
|
||||||
AttachImage,
|
AttachImage,
|
||||||
@ -32,6 +33,7 @@ const components = {
|
|||||||
Attachment,
|
Attachment,
|
||||||
Currency,
|
Currency,
|
||||||
Text,
|
Text,
|
||||||
|
Secret,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
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…
x
Reference in New Issue
Block a user