@@ -60,22 +64,22 @@ export default {
go: {
type: Function,
},
+ thum: {
+ type: Function,
+ },
},
data: function() {
return {};
},
computed: {
- imgData() {
- // return this.data.filter((file) => file.mimeType.indexOf("image/") != -1);
- // return this.data.filter((file) => !file.isFolder);
- return this.data;
- },
- },
- methods: {
- thum(url) {
- return url ? `/${this.$route.params.id}:view?url=${url}` : "";
+ folders() {
+ return this.data.filter((item) => item.isFolder);
+ },
+ files() {
+ return this.data.filter((item) => !item.isFolder);
},
},
+ methods: {},
};