Message💨
Using message can better prompt users
Code demonstration
import { message } from 'ungeui'
Basic usage🚀
Custom configuration🗽
APIs
Quick call interface
message.success(text)
message.danger(text)
message.info(text)
message.warning(text)
Config object configuration detail fields
message(config)
message(config)
message(config)
message(config)
config
Type | meaning | default value |
---|---|---|
duration | duration of information pop-up | 3000ms |
icon | custom icon | <info> |
maxCount | maximum quantity | Infinity |
zIndex | z-axis height | 300 |
initOffset | pop-up base Y-axis offset | 0 |