Skip to content

Commit 5568be2

Browse files
committed
feat: update empty
1 parent 5a627b3 commit 5568be2

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

components/empty/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ const Empty = {
5151
{imageNode}
5252
</div>
5353
{des && <p class={`${prefixCls}-description`}>{des}</p>}
54-
{this.$slots.default && <div class={`${prefixCls}-footer`}>{this.$slots.default}</div>}
54+
{this.$slots.default && <div class={`${prefixCls}-footer`}>{this.$slots.default()}</div>}
5555
</div>
5656
);
5757
},
5858
},
5959
render() {
60-
return <LocaleReceiver componentName="Empty" scopedSlots={{ default: this.renderEmpty }} />;
60+
return <LocaleReceiver componentName="Empty" children={this.renderEmpty} />;
6161
},
6262
};
6363

examples/App.vue

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
<template>
2-
<div>
3-
<a-alert message="Warning text" banner />
4-
<br />
5-
<a-alert
6-
message="Very long warning text warning text text text text text text text"
7-
banner
8-
closable
9-
/>
10-
<br />
11-
<a-alert :show-icon="false" message="Warning text without icon" banner />
12-
<br />
13-
<a-alert type="error" message="Error text" banner />
14-
</div>
2+
<a-empty />
153
</template>

0 commit comments

Comments
 (0)