[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
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
19 changed files with 63 additions and 29 deletions

View file

@ -6,7 +6,7 @@
<button class="close" @click="cancel"><fa icon="times"/></button>
<button v-if="multiple" class="ok" @click="ok"><fa icon="check"/></button>
</header>
<mk-drive class="drive" ref="browser"
<x-drive class="drive" ref="browser"
:select-file="true"
:multiple="multiple"
@change-selection="onChangeSelection"
@ -22,6 +22,9 @@ import i18n from '../../../i18n';
export default Vue.extend({
i18n: i18n('mobile/views/components/drive-file-chooser.vue'),
components: {
XDrive: () => import('./drive.vue').then(m => m.default),
},
props: ['multiple'],
data() {
return {