Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Create TopProgressBar.vue #378

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Create TopProgressBar.vue #378

wants to merge 1 commit into from

Conversation

DzunN86
Copy link

@DzunN86 DzunN86 commented Oct 29, 2021

How to use

main.js
import TopProgressBar from "@/components/TopProgressBar.vue";

const bar = (Vue.prototype.$topprogressbar = new Vue(TopProgressBar).$mount());
document.body.appendChild(bar.$el);

Sample usage

mounted () {
      this.$topprogressbar.start();
     setTimeout(() => this.$topprogressbar.finish(), 500);
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant