English | 简体中文
* ✨Every piece of information needs to be cherished. * 🎉A friendlier message prompt.- Easy to use
- Better message prompt, built-in four scenarios, support the use of custom
- Add to your UI library for refinement
<script src="index.js"></script>
<link rel="stylesheet" type="text/css" href="index.css" />
Install with npm:
cnpm i nanometer-message
- Common ant es6:
var Message = require('nanometer-message')
<link rel="stylesheet" type="text/css" href="dist/index.css" />
Message({option}) A separate method is defined for each type,example: Message.success(options)。
- Similar to vue:
import Message from 'nanometer-message';
Vue.prototype.$meessage = Message
Message(type, context)
Message({option})
style
@import url('nanometer-message/dist/index.css');
- The pattern of object customization has been added. The previous way of use remains the same, which requires more flexible use of option
Name | Description |
---|---|
[type] | The current state of the message. [success |
[durationTime] | ( |
[calss] | ( |
[content] | ( |
[postEvent] | ( |
Get involved and get better
* Submit issues
* Visit the github address https://github.com/webvs2/Nanometer