2018-02-06 15:21:13 +08:00
|
|
|
<cn>
|
|
|
|
#### 自定义图标
|
|
|
|
图标可以被自定义。
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
<us>
|
|
|
|
#### Customized Icon
|
|
|
|
The icon can be customized to any vue node or (h) => vue node.
|
|
|
|
</us>
|
|
|
|
|
2019-10-09 18:32:23 +08:00
|
|
|
```tpl
|
2018-02-06 15:21:13 +08:00
|
|
|
<template>
|
|
|
|
<a-button type="primary" @click="openNotification">Open the notification box</a-button>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
2019-09-28 20:45:07 +08:00
|
|
|
openNotification() {
|
2018-04-08 21:17:20 +08:00
|
|
|
this.$notification.open({
|
2018-02-06 15:21:13 +08:00
|
|
|
message: 'Notification Title',
|
2019-09-28 20:45:07 +08:00
|
|
|
description:
|
|
|
|
'This is the content of the notification. This is the content of the notification. This is the content of the notification.',
|
2018-12-09 18:08:47 +08:00
|
|
|
icon: <a-icon type="smile" style="color: #108ee9" />,
|
2018-02-06 15:21:13 +08:00
|
|
|
});
|
|
|
|
},
|
2019-09-28 20:45:07 +08:00
|
|
|
},
|
|
|
|
};
|
2018-02-06 15:21:13 +08:00
|
|
|
</script>
|
|
|
|
```
|