0.0.2 • Published 3 months ago

upload3 v0.0.2

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

upload3

Introduction

A web3 upload component based on Vue. Online Documentation

Installation

 yarn add upload3    # or  npm install upload3

Usage

Import the component in your main.js: Please note that the <YOUR_TOKEN> should be replaced with your actual token.

import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import Upload3 from "./components/index";

let app = createApp(App);
app.use(Upload3, {
  token: "<YOUR_TOKEN>",
});
app.mount("#app");

Use the component in your App.vue:

<template>
  <upload3></upload3>
</template>

script

<script setup>
import { ref } from 'vue';
let data = ref("null")
let handleSuccess = (result) => {
  console.log(result);
}
let handleError = (error) => {
  console.error(error);
}

</script>