GithubHelp home page GithubHelp logo

sheshouzuo / vue-loading-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linguokang/vue-loading

0.0 2.0 0.0 63 KB

A Vue component to vue-loading 一个加载中弹窗插件 https://linguokang.github.io/vue-loading/

HTML 13.11% Vue 62.50% JavaScript 24.39%

vue-loading-1's Introduction

vue-loading

A Vue component to vue-loading 一个加载中弹窗插件

DEMO

demo

安装

npm install vue-loading-easy -save

SPA使用

import Loading from 'vue-loading-easy'

Vue.use(Loading)

// 作为组件的方式使用
<vue-loading :isLoading='true'></vue-loading>

直接引入使用

 <body>
    <div id="app"></div>

    <script src="./vue.min.js"></script>
    // 直接使用script导入
    <script src="./dist/vue-loading.js"></script>
    <script>
      var app1 = new Vue({
        el: '#app',
        data: {
          message: 'Hello Vue!'
        },
        template: `<div class="app">
                      <div class="app1"><vue-loading :isLoading="true" type="loading1" text="嘿嘿嘿" color="lightgreen" scale="1"></vue-loading></div>
                   </div>`
      })
    </script>
  </body>

配置

<vue-loading
   :isLoading='true'  //是否显示
   type="loading1"  //loading类型
   text="嘿嘿嘿" //加载文字
   color='lightgreen' //颜色
   scale='1'  //缩放倍数
</vue-loading>

Props

name Description type default
isLoading 是否显示 Boolean false
type 加载样式 String loading1
text 文字显示 String 加载中...
color 图标颜色 String lightgreen
scale 弹窗缩放 String 1

vue-loading-1's People

Contributors

linguokang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.