WIP Поправил таблицу зубной формулы и доработал формы информации о клиенте

This commit is contained in:
DwCay
2023-02-22 15:46:26 +03:00
parent 83449a9153
commit af47b06a7c
10 changed files with 116 additions and 28 deletions

View File

@@ -3,17 +3,19 @@
span.title-section.font-semibold.text-xs(v-if="field.title" ) {{field.title}}
.flex.items-center(v-if="field.type === 'text' || field.type === 'textarea'" class="gap-x-2.5")
span.w-4.icon(v-if="field.icon" :class="field.icon")
base-input(v-model="data[field.label]" :with-icon="field.copy", outlined)
base-input(v-model="data[field.label]" :with-icon="field.copy" outlined)
.flex.items-center(v-if="field.copy && data[field.label]")
.copy.icon-copy.cursor-pointer(@click="() => copyValue(data[field.label])")
base-input(v-if="field.type === 'date'" v-model="data[field.label]")
base-input(v-if="field.type === 'date'" type="date" v-model="data[field.label]" outlined)
base-radio-buttons-group(v-if="field.type === 'radio'" v-model="data[field.label]" :items="field.items" size="xs" :column-gap="14" direction-column)
</template>
<script>
import BaseInput from "@/components/base/BaseInput.vue";
import BaseRadioButtonsGroup from "@/components/base/BaseRadioButtonsGroup.vue";
export default {
name: "BaseDetailInput",
components: { BaseInput },
components: { BaseInput, BaseRadioButtonsGroup },
props: {
value: String,
field: Object,