index.vue 614 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <el-dialog title="上传文件" :visible.sync="show" width="500px" append-to-body>
  3. <div class="upload">
  4. <input type="file" name="file" ref="file" multiple="multiple" @change="getFile" style="display: none" :accept="accept" />
  5. </div>
  6. <div slot="footer" class="dialog-footer">
  7. <el-button type="primary" @click="sub">确 定</el-button>
  8. <el-button @click="cancel">取 消</el-button>
  9. </div>
  10. </el-dialog>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. show: false
  17. }
  18. },
  19. methods: {
  20. sub() {},
  21. cancel() {}
  22. }
  23. }
  24. </script>
  25. <style scoped lang="scss"></style>