项目作者: emilianoamorim

项目描述 :
A simple component that analyze network status powered by Vue2
高级语言: JavaScript
项目地址: git://github.com/emilianoamorim/vue2-network-status.git
创建时间: 2021-03-11T13:14:55Z
项目社区:https://github.com/emilianoamorim/vue2-network-status

开源协议:MIT License

下载


Vue2NetworkStatus

A simple component that analyze network status powered by Vue2

Installation

  1. npm i vue2-network-status --save

or CDN by Unpkg

  1. <script src="https://unpkg.com/vue2-network-status@1.0.1/dist/vue2-network-status.min.js"></script>

View a Demo

Or

  1. import Vue2NetworkStatus from 'vue2-network-status';

Register component

  1. export default {
  2. name: 'MyApp',
  3. components: {
  4. Vue2NetworkStatus
  5. },
  6. };

Add component on html

  1. <Vue2NetworkStatus>You Are Offline!</Vue2NetworkStatus>