diff --git a/packages/table/__tests__/table-column.spec.ts b/packages/table/__tests__/table-column.spec.ts index 0fb0853c53..2f8262a14e 100644 --- a/packages/table/__tests__/table-column.spec.ts +++ b/packages/table/__tests__/table-column.spec.ts @@ -1,4 +1,4 @@ -import { defineComponent, nextTick } from 'vue' +import { nextTick } from 'vue' import ElTable from '../src/table.vue' import ElTableColumn from '../src/table-column/index' import { triggerEvent } from '@element-plus/test-utils' @@ -667,7 +667,7 @@ describe('table column', () => { }) it('el-table-column should callback itself', async() => { - const TableColumn = defineComponent({ + const TableColumn = { name: 'TableColumn', components: { ElTableColumn, @@ -682,7 +682,7 @@ describe('table column', () => { `, - }) + } const App = { template: ` @@ -741,11 +741,11 @@ describe('table column', () => { }) it('should not rendered other components in hidden-columns', async () => { - const Comp = defineComponent({ + const Comp = { template: `
`, - }) + } const wrapper = mount({ components: { ElTableColumn,