[Client] Split some components to reduce bundle size

This commit is contained in:
syuilo
2018-11-12 05:35:09 +09:00
parent fab389e624
commit 33e79e4bb8
19 changed files with 63 additions and 29 deletions

View File

@ -5,7 +5,7 @@
<span :class="$style.count" v-if="multiple && files.length > 0">({{ $t('chosen-files', { count: files.length }) }})</span>
</span>
<mk-drive
<x-drive
ref="browser"
:class="$style.browser"
:multiple="multiple"
@ -25,6 +25,9 @@ import Vue from 'vue';
import i18n from '../../../i18n';
export default Vue.extend({
i18n: i18n('desktop/views/components/choose-file-from-drive-window.vue'),
components: {
XDrive: () => import('./drive.vue').then(m => m.default),
},
props: {
multiple: {
default: false