WIP Добавил базовый компонент для числового инпута
This commit is contained in:
@@ -3,12 +3,11 @@
|
||||
.thermometry-wrapper.grid.gap-x-20.gap-y-5
|
||||
.flex.flex-col.gap-y-4.items-start(v-if="isEdit" v-for="(thermometry, key) in protocol[data.key]")
|
||||
span.font-semibold.text-smm {{ data.config.temperature[key].title }}
|
||||
base-input.w-full(
|
||||
base-number-input.w-full(
|
||||
v-model="thermometry.temperature",
|
||||
type="number"
|
||||
label="Температура"
|
||||
outlined
|
||||
text-color="black"
|
||||
:step="1",
|
||||
label="Температура",
|
||||
outlined,
|
||||
shadow-text="º"
|
||||
placeholder="0º"
|
||||
)
|
||||
@@ -19,7 +18,6 @@
|
||||
outlined
|
||||
text-color="black"
|
||||
placeholder="Введите диагноз..."
|
||||
max="40"
|
||||
)
|
||||
.results-wrapper.flex.flex-col.rounded.w-full.px-4.py-2
|
||||
.result.flex.w-full.justify-between.items-center.h-9(v-for="result in data.config.results")
|
||||
@@ -54,11 +52,12 @@
|
||||
<script>
|
||||
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
|
||||
import BaseInput from "@/components/base/BaseInput.vue";
|
||||
import BaseNumberInput from "@/components/base/BaseNumberInput.vue";
|
||||
import { mapState } from "vuex";
|
||||
|
||||
export default {
|
||||
name: "ThermometryForm",
|
||||
components: { MedicalFormWrapper, BaseInput },
|
||||
components: { MedicalFormWrapper, BaseInput, BaseNumberInput },
|
||||
props: {
|
||||
data: Object,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user