Skip to content

Commit

Permalink
Merge pull request #2248 from forrany/feat/notify-vnode
Browse files Browse the repository at this point in the history
feat(notiry): 优化文档 & message 支持Vnode #2246
  • Loading branch information
ielgnaw authored Jan 20, 2025
2 parents eacef6e + fe73057 commit c7fd158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions site/views/notify/demo/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<script setup>
import { ref } from 'vue';
import { ref, h } from 'vue';
import { Notify } from 'bkui-vue';
Expand All @@ -26,7 +26,7 @@
function handleDefault() {
Notify({
title: title.value,
message: message.value,
message: h('div', { style: 'color: red;' }, message.value),
});
}
function handleHideTitle() {
Expand Down
4 changes: 2 additions & 2 deletions site/views/notify/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const props: IPropsTableItem[] = [
},
{
name: 'message',
type: 'String | Function',
type: 'String | Function | VNode',
default: '',
desc: '组件显示的文字内容',
desc: '组件显示的文字内容,支持字符串、函数、VNode',
optional: [],
},
{
Expand Down

0 comments on commit c7fd158

Please sign in to comment.