This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ export default defineComponent({
97
97
' color' ,
98
98
' customField1' ,
99
99
' customStyles' ,
100
+ ' readonly' ,
100
101
],
101
102
fields: {
102
103
name: {
@@ -109,16 +110,10 @@ export default defineComponent({
109
110
label: ' Email' ,
110
111
type: ' email' ,
111
112
validations: [emailValidator ],
112
- /* customClass: 'active text-red', */
113
113
customClass: {
114
114
active: true ,
115
115
' text-blue' : true ,
116
116
},
117
- /* customClass: {
118
- active: true,
119
- 'text-blue': true,
120
- }, */
121
- /* customClass: ['active', 'text-red'], */
122
117
} as EmailInput ,
123
118
password: {
124
119
label: ' Password' ,
@@ -208,6 +203,12 @@ export default defineComponent({
208
203
border: ' 1px solid teal' ,
209
204
},
210
205
} as TextInput ,
206
+ readonly: {
207
+ label: ' Readonly' ,
208
+ type: ' text' ,
209
+ value: ' Alvaro' ,
210
+ readonly: true ,
211
+ } as TextInput ,
211
212
},
212
213
});
213
214
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default defineComponent({
26
26
disabled: props ?.control ?.disabled ,
27
27
placeholder: props ?.control ?.placeholder ,
28
28
required: props .control .required ,
29
+ readonly: props ?.control .readonly ,
29
30
autocomplete: props .control .autocomplete ,
30
31
ariaLabel: props .control .ariaLabel ,
31
32
ariaLabelledBy: props .control .ariaLabelledBy ,
Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ export default defineComponent({
22
22
{
23
23
id: props .control .name ,
24
24
name: props ?.control ?.name || ' ' ,
25
+ class: [' form-control' ],
26
+ value: props ?.control ?.value ,
25
27
disabled: props ?.control ?.disabled ,
26
28
placeholder: props ?.control ?.placeholder ,
27
29
required: props .control .required ,
30
+ readonly: props ?.control .readonly ,
31
+ ariaLabel: props .control .ariaLabel ,
32
+ ariaLabelledBy: props .control .ariaLabelledBy ,
28
33
ariaRequired: props .control .required ,
29
- class: [' form-control' ],
30
- value: props ?.control ?.value ,
31
34
onFocus ,
32
35
onBlur ,
33
36
onChange ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default defineComponent({
24
24
placeholder: props ?.control ?.placeholder ,
25
25
required: props .control .required ,
26
26
autocomplete: props .control .autocomplete ,
27
+ readonly: props ?.control .readonly ,
27
28
ariaLabel: props .control .ariaLabel ,
28
29
ariaLabelledBy: props .control .ariaLabelledBy ,
29
30
ariaRequired: props .control .required ,
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export default defineComponent({
32
32
disabled: props .control .disabled ,
33
33
placeholder: props .control .placeholder ,
34
34
required: props .control .required ,
35
+ readonly: props ?.control .readonly ,
35
36
autocomplete: props .control .autocomplete ,
36
37
ariaRequired: props .control .required ,
37
38
ariaLabel: props .control .ariaLabel ,
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ export interface InputBase {
54
54
customStyles ?: string | string [ ] | BindingObject | BindingObject [ ] | unknown ;
55
55
placeholder ?: string ;
56
56
autocomplete ?: string ;
57
+ readonly ?: boolean ;
57
58
validations ?: FormValidation [ ] ;
58
59
}
59
60
You can’t perform that action at this time.
0 commit comments