<template>
    <div>
        <h1>上传控件</h1>
        <UploadWidget @upload="upload"></UploadWidget>
    </div>
</template>

<script>


import UploadWidget from "@/upload-widget/index.js";

export default {

    data: function () {
        return {
            
        }
    },

    components: {
        UploadWidget,
    },

    methods: {

        upload: function (files) {
            alert("共计上传:" + files.length + "个文件。");
        },

    }
}
</script>

<style>
</style>
