required controlled

This commit is contained in:
Burak Civan 2022-06-30 15:53:37 +03:00
parent e288892d1d
commit 13e6aab552
3 changed files with 12124 additions and 723 deletions

12838
public/css/app.css vendored

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@
<label v-if="title" :for="name" class="text-black text-sm font-medium">
{{ title }}
<span v-if="!notRequired" class="text-red ltr:ml-1 rtl:mr-1">*</span>
</label>
<div class="relative" :class="group_class">
@ -144,6 +145,10 @@ export default {
default: false,
description: "Money result value"
},
notRequired: {
type: Boolean,
default: false
}
},
data() {

View File

@ -29,6 +29,10 @@
@apply text-red ml-1;
} */
.has-error input, .has-error select, .has-error textarea {
border: 1px solid #cc0000 !important;
}
.input-money {
@apply w-full text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple;
}