Skip to content

Commit

Permalink
feat(file-uploader): file-uploader is working + some minor fixes on m…
Browse files Browse the repository at this point in the history
…odels-manager
  • Loading branch information
NicolasRichel committed Apr 8, 2021
1 parent 1a7ff7b commit 75d460d
Show file tree
Hide file tree
Showing 295 changed files with 814 additions and 80 deletions.
18 changes: 15 additions & 3 deletions src/components/generic/file-icon/FileIcon.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
<template>
<img class="file-icon" :wdith="size" :height="size" :src="`./${name}.svg`" />
<img
class="file-icon"
:width="size"
:height="(+size * 4) / 3"
:src="icons[`icon_${name}`]"
/>
</template>

<script>
import icons from "./icons";
export default {
props: {
name: {
type: String,
default: "unknown"
},
size: {
type: String,
default: ""
type: [String, Number],
default: "16"
}
},
setup() {
return {
icons
};
}
};
</script>
Expand Down
Loading

0 comments on commit 75d460d

Please sign in to comment.