1
1
<template >
2
- <v-form ref =" form" class =" login-form " @submit.prevent =" submit" >
2
+ <v-form ref =" form" : class =" classes.root " @submit.prevent =" submit" >
3
3
<v-row no-gutters >
4
4
<v-text-field
5
5
ref =" passwordInput"
6
6
v-model =" password"
7
7
autocomplete =" new-password"
8
8
autofocus
9
+ :class =" classes.textField"
9
10
:label =" $t('login_via_password.user_password_title')"
10
11
:name =" Date.now()"
11
12
:type =" showPassword ? 'text' : 'password'"
@@ -58,6 +59,12 @@ import { isAllNodesDisabledError, isAllNodesOfflineError } from '@/lib/nodes/uti
58
59
import { mdiEye , mdiEyeOff } from ' @mdi/js'
59
60
import { useSaveCursor } from ' @/hooks/useSaveCursor'
60
61
62
+ const className = ' login-form'
63
+ const classes = {
64
+ root: className,
65
+ textField: ` ${ className} __textfield`
66
+ }
67
+
61
68
export default defineComponent ({
62
69
props: {
63
70
modelValue: {
@@ -131,6 +138,7 @@ export default defineComponent({
131
138
passwordInput,
132
139
showSpinner,
133
140
password,
141
+ classes,
134
142
showPassword,
135
143
mdiEye,
136
144
mdiEyeOff,
@@ -143,19 +151,21 @@ export default defineComponent({
143
151
< / script>
144
152
145
153
< style lang= " scss" scoped>
146
- .v - text- field {
147
- & : deep (.v - field__append - inner ) {
148
- padding- left: 0 ;
149
- margin- left: - 28px ; // compensate the append-inner icon
150
- }
154
+ .login - form {
155
+ & __textfield {
156
+ & : deep (.v - field__append - inner ) {
157
+ padding- left: 0 ;
158
+ margin- left: - 28px ; // compensate the append-inner icon
159
+ }
151
160
152
- & : deep (.v - field__input ) {
153
- width: 100 % ;
154
- padding- right: 0 ;
155
- }
161
+ & : deep (.v - field__input ) {
162
+ width: 100 % ;
163
+ padding- right: 0 ;
164
+ }
156
165
157
- : deep (input ) {
158
- font- size: 16px ! important;
166
+ : deep (input ) {
167
+ font- size: 16px ! important;
168
+ }
159
169
}
160
170
}
161
171
< / style>
0 commit comments