npm i vue-ui-collection -S
import {collection} from 'vue-ui-collection';
import 'vue-ui-collection/dist/vue-ui-collection.css';
Vue.use(collection);
export default {
name: "app",
data() {
return {
dialogVisible: true
};
},
methods: {
onComplete(fileList) {
this.dialogVisible = false;
}
}
};
<template>
<dialogUpload :visible="dialogVisible" @complete="onComplete" @cancel="dialogVisible = false" />
</template>
npm install
npm run serve
npm run build
npm run test
npm run lint