fix: table emptyText locale not work, close #4805

pull/4825/head
tangjinzhou 2021-10-26 16:44:10 +08:00
parent a6d9d36343
commit 7e9e5af63f
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ const InteralTable = defineComponent<
v-slots={{
...slots,
emptyText: () =>
slots.emptyText?.() || tableLocale.value.emptyText || renderEmpty.value('Table'),
slots.emptyText?.() || props.locale?.emptyText || renderEmpty.value('Table'),
}}
/>
{bottomPaginationNode}