1
0
forked from test/crm

chore: date placeholder color

This commit is contained in:
Shariq Ansari 2023-11-27 16:21:36 +05:30
parent 9558017eb7
commit b8b270d3b5

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="flex flex-col gap-1.5 max-h-[300px] overflow-y-auto"> <div class="flex max-h-[300px] flex-col gap-1.5 overflow-y-auto">
<div <div
v-for="field in fields" v-for="field in fields"
:key="field.label" :key="field.label"
@ -8,7 +8,7 @@
<div class="w-[106px] shrink-0 text-gray-600"> <div class="w-[106px] shrink-0 text-gray-600">
{{ field.label }} {{ field.label }}
</div> </div>
<div class="grid flex-1 items-center overflow-hidden min-h-[28px]"> <div class="grid min-h-[28px] flex-1 items-center overflow-hidden">
<FormControl <FormControl
v-if=" v-if="
[ [
@ -21,6 +21,7 @@
].includes(field.type) ].includes(field.type)
" "
class="form-control" class="form-control"
:class="{ '[&_input]:text-gray-500': field.type === 'date' && !data[field.name] }"
:type="field.type" :type="field.type"
:value="data[field.name]" :value="data[field.name]"
:placeholder="field.placeholder" :placeholder="field.placeholder"