[WIP] Добавил сохранение новой записи, поправил баги

This commit is contained in:
DwCay
2023-07-03 18:49:09 +03:00
parent 6be76c0fd5
commit 888181f990
6 changed files with 160 additions and 115 deletions

View File

@@ -2,18 +2,6 @@
label.download.flex.cursor-pointer.relative.items-center.justify-center.rounded(
:style="{height: `${height}px`, width: width ? `${width}px` : '100%'}"
)
q-icon.absolute(
v-if="withIcon",
name="app:download",
size="24px"
)
.flex.flex-col.items-center.justify-center.absolute.font-medium.text-smm.w-full(
v-else,
:style="{color: 'var(--font-grey-color)'}"
)
span {{`Загрузите ${titleType}`}}
label(:style="{color: 'var(--btn-blue-color)'}") с компьютера
span или перетащите его в это поле
base-input(
@change="(e) => addNewFiles(e)",
doc,
@@ -24,6 +12,18 @@
borderless,
:multiple="multiple"
)
q-icon.absolute(
v-if="withIcon",
name="app:download",
:size="sizeIcon"
)
.flex.flex-col.items-center.justify-center.absolute.font-medium.text-smm.w-full(
v-else,
:style="{color: 'var(--font-grey-color)'}"
)
span {{`Загрузите ${titleType}`}}
label.pointer-events-none.cursor-pointer(:style="{color: 'var(--btn-blue-color)'}") с компьютера
span или перетащите его в это поле
</template>
<script>
@@ -51,6 +51,10 @@ export default {
default: "photo",
},
withIcon: Boolean,
sizeIcon: {
type: String,
default: "24px",
},
titleType: {
type: String,
default: "фото",

View File

@@ -5,7 +5,7 @@
:name="name",
:multiple="multiple",
:class="{'circle': circle, 'font-input': true, 'doc': doc}",
:input-style="{ color: textColor, borderColor: borderColor, resize: resize, fontSize: fontSize, fontWeight: fontWeight, lineHeight: lineHeight}",
:input-style="{ color: textColor, borderColor: borderColor, resize: resize, fontSize: fontSize, fontWeight: fontWeight, lineHeight: lineHeight, minHeight: minHeight}",
:borderless="borderless",
:placeholder="placeholder",
:outlined="outlined",
@@ -60,6 +60,10 @@ export default {
type: Number,
default: 500,
},
minHeight: {
type: String,
default: "0px",
},
lineHeight: {
type: String,
default: "19px",