<template>
  <div class="demo-upload-basic">
    <ui-upload
      :url="url"
      :on-preview="onPreview">
    </ui-upload>
  </div>
</template>

<script>
import { Upload } from "amumu-ui"

export default {
  components: {
    "ui-upload": Upload,
  },
  data() {
    return {
      url: "https://jsonplaceholder.typicode.com/posts/",
    }
  },
  methods: {
    onPreview(file) {
      console.log(file)
    },
  },
}
</script>

<style lang="scss">
.demo-upload-basic {
}
</style>
