Skip to content

hengwujun128/smart-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is a modal plugin

Simple to use,highly customizable

Install

npm install smart-modal --save

How to use?

1.basic useage

1.in your main.js

import modal from "smart-modal"

vue.use(modal)

2.in your component

<modal name="myModal">hello,world</modal>

methods: {
  show () {
    this.$modal.show('myModal');
  },
  hide () {
    this.$modal.hide('myModal');
  }
}

About

this is a modal plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published