add nova
This commit is contained in:
30
nova/resources/js/fields/Form/PasswordField.vue
Normal file
30
nova/resources/js/fields/Form/PasswordField.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<DefaultField
|
||||
:field="currentField"
|
||||
:errors="errors"
|
||||
:show-help-text="showHelpText"
|
||||
:full-width-content="fullWidthContent"
|
||||
>
|
||||
<template #field>
|
||||
<input
|
||||
:id="currentField.uniqueKey"
|
||||
:dusk="field.attribute"
|
||||
type="password"
|
||||
v-model="value"
|
||||
class="w-full form-control form-input form-control-bordered"
|
||||
:class="errorClasses"
|
||||
:placeholder="placeholder"
|
||||
autocomplete="new-password"
|
||||
:disabled="currentlyIsReadonly"
|
||||
/>
|
||||
</template>
|
||||
</DefaultField>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { DependentFormField, HandlesValidationErrors } from '@/mixins'
|
||||
|
||||
export default {
|
||||
mixins: [HandlesValidationErrors, DependentFormField],
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user