Ver código fonte

fix: add type on AppInputText component

Muhammad Iqbal Afandi 3 anos atrás
pai
commit
f47721f7cc
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      resources/js/components/AppInputText.vue

+ 5
- 1
resources/js/components/AppInputText.vue Ver arquivo

14
     type: String,
14
     type: String,
15
     required: true,
15
     required: true,
16
   },
16
   },
17
+  type: {
18
+    type: String,
19
+    default: 'text',
20
+  },
17
   error: {
21
   error: {
18
     type: String,
22
     type: String,
19
     default: null,
23
     default: null,
38
 
42
 
39
     <InputText
43
     <InputText
40
       class="w-full"
44
       class="w-full"
41
-      type="text"
42
       :class="{ 'p-invalid': isError }"
45
       :class="{ 'p-invalid': isError }"
46
+      :type="type"
43
       :id="forLabel"
47
       :id="forLabel"
44
       :aria-describedby="ariaDescribedbyLabel"
48
       :aria-describedby="ariaDescribedbyLabel"
45
       :model-value="modelValue"
49
       :model-value="modelValue"