feat(client): Implement default upload folder setting

Resolve #5985
This commit is contained in:
syuilo 2020-04-22 00:34:56 +09:00
parent e72011f1da
commit 1f998168e2
11 changed files with 140 additions and 208 deletions

View file

@ -1,6 +1,6 @@
<template>
<x-modal ref="modal" @closed="() => { $emit('closed'); destroyDom(); }">
<div class="ebkgoccj" :class="{ noPadding }" @keydown="onKeydown">
<div class="ebkgoccj" :class="{ noPadding }" @keydown="onKeydown" :style="{ width: `${width}px`, height: `${height}px` }">
<div class="header">
<button class="_button" v-if="withOkButton" @click="close()"><fa :icon="faTimes"/></button>
<span class="title">
@ -49,7 +49,17 @@ export default Vue.extend({
type: Boolean,
required: false,
default: false
}
},
width: {
type: Number,
required: false,
default: 400
},
height: {
type: Number,
required: false,
default: 400
},
},
data() {
@ -76,19 +86,12 @@ export default Vue.extend({
<style lang="scss" scoped>
.ebkgoccj {
width: 400px;
height: 400px;
background: var(--panel);
border-radius: var(--radius);
overflow: hidden;
display: flex;
flex-direction: column;
@media (max-width: 500px) {
width: 350px;
height: 350px;
}
> .header {
$height: 58px;
$height-narrow: 42px;