Not everyone can be a great artist, but future artists can come from any corner
English | 简体中文 |
Install with pnpm:
pnpm add nanometer-message -S
<script src="https://github.com/webvs2/Nanometer/blob/master/dist/index.js"></script>
Vue.prototype.$meessage = Message
import message from "nanometer-message"
import "nanometer-message/dist/index.css"
Message({option}) A separate method is defined for each type,example: Message.success(options)。
import "nanometer-message/dist/index.css"
import message from "nanometer-message"
Vue.prototype.$meessage = Message
Name | Description | |||
---|---|---|---|---|
[type] | The current state of the message. [success | warning | info | error] |
[durationTime] | Buffer animation duration(The default for 3 seconds) | |||
[calss] | CSS state customization | |||
[content] | Message content.Please note: this is a must | |||
[postEvent] | A callback after the message has disappeared |
Get involved and get better
* Submit issues<https://github.com/webvs2/Nanometer/issues>
* Visit the github address https://github.com/webvs2/Nanometer