|
|
5 年之前 | |
|---|---|---|
| dist | 5 年之前 | |
| example | 6 年之前 | |
| src | 5 年之前 | |
| .babelrc | 6 年之前 | |
| .gitignore | 6 年之前 | |
| .npmignore | 6 年之前 | |
| LICENCE.md | 6 年之前 | |
| README.md | 5 年之前 | |
| package-lock.json | 5 年之前 | |
| package.json | 5 年之前 | |
| webpack.config.js | 6 年之前 |
Toast alerts (initially developed for Vue.js with a material-design style)
npm install --save --production toasters
HTML:
<div id="toasts-container" class="position-right position-bottom">
<div id="toasts-content">
<!-- toasts will be added or removed from here -->
</div>
</div>
JS:
import Toast from "toasters";
new Toast({
content: "Hello World",
persistant: true
});
Preview:
# install dependencies
npm install
# watch files for changes with webpack
npm run dev
# build for production with minification
npm run build