UNPKG

kui-vue

Version:

A lightweight desktop UI component library suitable for Vue.js 2.

25 lines (18 loc) 1.01 kB
## API 组件提供了一些静态方法,使用方式如下 - `notice.info(options)` - `notice.success(options)` - `notice.warning(options)` - `notice.error(options)` 另外提供了全局配置和全局销毁的方法: - `notice.open(options)` - `notice.destroy()` 参数 `options` 为对象,具体说明如下: | 属性 | 说明 | 类型 | 默认值 | | -------- | -------------------------------------- | ------------- | ------ | | title | 通知提醒的标题 | String | - | | content | 提示内容 | String ,vndoe | - | | duration | 自动关闭的延时,单位秒,不关闭可以写 0 | Number | 3 | | onClose | 关闭时的回调 | Function | - | | icon | 自定义图标 | String | - | | color | 自定义图标颜色 | String | - |