4.0.1 • Published 11 months ago

nanometer-message v4.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
11 months ago

Segmentfault

English | 简体中文

  • Easy to use
  • Better message prompt, built-in four scenarios, support the use of custom
  • Add to your UI library for refinement

Install with pnpm:

pnpm add nanometer-message -S
  • Similar to script:
<script src="https://github.com/webvs2/Nanometer/blob/master/dist/index.js"></script>
 
  • COMMON ant ES6:
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)。
  • Similar to VUE2.X:
import "nanometer-message/dist/index.css"
import message from "nanometer-message"
Vue.prototype.$meessage = Message 
  • The pattern of object customization has been added. The previous way of use remains the same, which requires more flexible use of option
NameDescription
typeThe current state of the message. [successwarninginfoerror]
durationTimeBuffer animation duration(The default for 3 seconds)
calssCSS state customization
contentMessage content.Please note: this is a must
postEventA callback after the message has disappeared
4.0.1

11 months ago

3.3.0

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

4.0.0

2 years ago

2.2.3

2 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.0.3

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.5.0

6 years ago

1.4.6

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.0

6 years ago