0.2.2 • Published 4 years ago

dotaui v0.2.2

Weekly downloads
39
License
-
Repository
-
Last release
4 years ago

dotaui

安装dotaui

yarn add dotaui

main.js中使用dotaui

import Vue from 'vue'
import DotaUI form 'dotaui'

Vue.use(DotaUI)

App.vue中引入bootstrap-vue和dotaui样式

<style>
@import "~bootstrap-vue/dist/bootstrap-vue.css";
@import "~dotaui/dist/dotaui.css";
</style>

component中使用 Toast、Alert、Message、Loading方法

import {Toast,Alert,Message,Loading} from "dotaui"

export default {
  mounted(){
    Toast('hello world!!',{variant:'danger'})
    Toast('hello world!!',{
      solid: true,
      title: '系统提示',
      variant: 'success',
      toaster: 'b-toaster-top-center'
    })

    Alert('系统提示',''Hello World!!',{
      okTitle: '确定',
      centered: true,
      noCloseOnBackdrop: true,
      noCloseOnEsc: true,
    })

    Message({
      title: '系统提示',
      message: 'hello world!!',
      okTitle: '确定',
      cancelTitle: '取消',
      centered: true,
      noCloseOnBackdrop: true,
      noCloseOnEsc: true,
    }).then(()=>{
      console.log('确定')
    }).catch(()=>{
      console.log('取消')
    })

    Loading({
      text: 'loading...',
      variant: 'primary'
    })
    Loading('close')
  }
}
0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago