You've already forked AstralRinth
forked from didirus/AstralRinth
Finish ability to add files to versions and create new versions
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
<div>
|
||||
<slot></slot>
|
||||
<input
|
||||
:id="id"
|
||||
:id="inputId"
|
||||
class="file-input"
|
||||
type="file"
|
||||
:accept="accept"
|
||||
:multiple="multiple"
|
||||
:accept="inputAccept"
|
||||
:multiple="inputMultiple"
|
||||
@change="onChange"
|
||||
/>
|
||||
<label :for="id">{{ text }}</label>
|
||||
<label :for="inputId">{{ text }}</label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -41,7 +41,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onChange(files) {
|
||||
const length = files.target.length
|
||||
const length = files.target.files.length
|
||||
|
||||
if (length === 0) {
|
||||
this.text = this.defaultText
|
||||
|
||||
@@ -31,7 +31,6 @@ export default {
|
||||
border: none;
|
||||
opacity: 0.6;
|
||||
overflow-x: hidden;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
@@ -41,7 +40,7 @@ export default {
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 2;
|
||||
box-shadow: 0 2px 3px 1px var(--color-grey-2);
|
||||
padding: 5px 60px 60px 20px;
|
||||
padding: 5px 60px 5px 20px;
|
||||
border-radius: 10px;
|
||||
max-height: 80%;
|
||||
overflow-y: auto;
|
||||
|
||||
Reference in New Issue
Block a user