Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 2.01 KB

README.md

File metadata and controls

62 lines (43 loc) · 2.01 KB

smv modal

use modal with no tear 😂

Travis branch coverage download version license

Get Start

Installation

npm i --save smv-modal

Basic Usage

try it out

Edit Vue Template

import Modal from 'smv-modal';

const modal = Modal({
  title: 'Welcome',
  content: 'hallo world~'
});

async showModal() {
  const result = await modal.show(); // modal.show() return promise
  console.log(result);
}

showModal();
  • or you can write in shorthand
const modal = Modal`I'am content`;

Please see Documentation for detail.

Contributors

Thanks goes to these wonderful people (emoji key):


hwencc

💻 🤔 💡 📖

This project follows the all-contributors specification. Contributions of any kind welcome!