diff --git a/examples/docs/en-US/message.md b/examples/docs/en-US/message.md index 3d8c6ac7d..6a0df8112 100644 --- a/examples/docs/en-US/message.md +++ b/examples/docs/en-US/message.md @@ -197,6 +197,8 @@ In this case you should call `Message(options)`. We have also registered methods |---------- |-------------- |---------- |-------------------------------- |-------- | | message | message text | string | — | — | | type | message type | string | success/warning/info/error | info | +| iconClass | custom icon's class, overrides `type` | string | — | — | +| customClass | custom class name for Message | string | — | — | | duration | display duration, millisecond. If set to 0, it will not turn off automatically | number | — | 3000 | | showClose | whether to show a close button | boolean | — | false | | onClose | callback function when closed with the message instance as the parameter | function | — | — | diff --git a/examples/docs/en-US/notification.md b/examples/docs/en-US/notification.md index efa71f877..796a6d1e3 100644 --- a/examples/docs/en-US/notification.md +++ b/examples/docs/en-US/notification.md @@ -222,6 +222,8 @@ In this case you should call `Notification(options)`. We have also registered me | title | title | string | — | — | | message | description text | string | — | — | | type | notification type | string | success/warning/info/error | — | +| iconClass | custom icon's class. It will be overridden by `type` | string | — | — | +| customClass | custom class name for Notification | string | — | — | | duration | duration before close. It will not automatically close if set 0 | number | — | 4500 | | onClose | callback function when closed | function | — | — | | offset | offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset | number | — | 0 | diff --git a/examples/docs/zh-CN/message.md b/examples/docs/zh-CN/message.md index 1d204c5cc..62e0457a9 100644 --- a/examples/docs/zh-CN/message.md +++ b/examples/docs/zh-CN/message.md @@ -197,6 +197,8 @@ import { Message } from 'element-ui'; |---------- |-------------- |---------- |-------------------------------- |-------- | | message | 消息文字 | string | — | — | | type | 主题 | string | success/warning/info/error | info | +| iconClass | 自定义图标的类名,会覆盖 `type` | string | — | — | +| customClass | 自定义类名 | string | — | — | | duration | 显示时间, 毫秒。设为 0 则不会自动关闭 | number | — | 3000 | | showClose | 是否显示关闭按钮 | boolean | — | false | | onClose | 关闭时的回调函数, 参数为被关闭的 message 实例 | function | — | — | diff --git a/examples/docs/zh-CN/notification.md b/examples/docs/zh-CN/notification.md index 74a480504..99314a426 100644 --- a/examples/docs/zh-CN/notification.md +++ b/examples/docs/zh-CN/notification.md @@ -224,6 +224,8 @@ import { Notification } from 'element-ui'; | title | 标题 | string | — | — | | message | 说明文字 | string | — | — | | type | 主题样式,如果不在可选值内将被忽略 | string | success/warning/info/error | — | +| iconClass | 自定义图标的类名。若设置了 `type`,则 `iconClass` 会被覆盖 | string | — | — | +| customClass | 自定义类名 | string | — | — | | duration | 显示时间, 毫秒。设为 0 则不会自动关闭 | number | — | 4500 | | onClose | 关闭时的回调函数 | function | — | — | | offset | 偏移的距离,在同一时刻,所有的 Notification 实例应当具有一个相同的偏移量 | number | — | 0 | diff --git a/packages/message/src/main.vue b/packages/message/src/main.vue index 5ec07df15..7b3389eee 100644 --- a/packages/message/src/main.vue +++ b/packages/message/src/main.vue @@ -1,8 +1,14 @@