Преглед на файлове

fix: 修复Table组件已知问题

kailong321200875 преди 2 години
родител
ревизия
b1a83f6018
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/Table/src/Table.vue

+ 1 - 1
src/components/Table/src/Table.vue

@@ -417,7 +417,7 @@ export default defineComponent({
         >
           {{
             default: () => renderTableColumn(),
-            empty: () => getSlot(slots, 'empty') || props.emptyText,
+            empty: () => getSlot(slots, 'empty') || unref(getProps).emptyText,
             append: () => getSlot(slots, 'append')
           }}
         </ElTable>