Finish ability to add files to versions and create new versions

This commit is contained in:
Jai A
2020-10-23 13:48:42 -07:00
parent 663418e943
commit 7b4398dfee
5 changed files with 146 additions and 18 deletions

View File

@@ -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

View File

@@ -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;