Skip to content

SME-FE/smv-modal

Repository files navigation

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!