Skip to content

upload-excel-component loading效果 #761

@moonose

Description

@moonose

对handkeFileChange 加了loading 处理,但没有任何效果。看到的反应是excel加载完后 才出来loading,然后loading消失。

handkeFileChange(e) {
  const files = e.target.files
  const itemFile = files[0] // only use files[0]
  if (!itemFile) return
  this.loading = true // 开始loading
  this.readerData(itemFile)
  this.$refs['excel-upload-input'].value = null // fix can't select the same excel
  this.loading = false // 结束loading
},

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions