[WIP] Добавил сохранение новой записи, поправил баги
This commit is contained in:
@@ -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: "фото",
|
||||
|
||||
Reference in New Issue
Block a user