Skip to content

qizeng19/antd-message

 
 

Repository files navigation

antd-message

Global message like ant-design

高仿 ant-design 全局消息提示

Installation

Using npm:

$ npm install antd-message --save

Using yarn:

$ yarn add antd-message

Example

import Message from 'antd-message';
window.message = Message;
message.success(content, timeout);

Renderings

Options

Three types: message.successmessage.warnmessage.error

params summary type default
content message content String -
timeout timeout the message unmount Number 3000 (ms)

License

MIT

About

高仿 ant-design 全局消息提示

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.3%
  • CSS 26.8%
  • HTML 2.9%