mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix: more than one component in table_column.spec.js (#2461)
This commit is contained in:
@@ -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', () => {
|
||||
</template>
|
||||
</el-table-column>
|
||||
`,
|
||||
})
|
||||
}
|
||||
const App = {
|
||||
template: `
|
||||
<el-table :data="data">
|
||||
@@ -741,11 +741,11 @@ describe('table column', () => {
|
||||
})
|
||||
|
||||
it('should not rendered other components in hidden-columns', async () => {
|
||||
const Comp = defineComponent({
|
||||
const Comp = {
|
||||
template: `
|
||||
<div class="other-component"></div>
|
||||
`,
|
||||
})
|
||||
}
|
||||
const wrapper = mount({
|
||||
components: {
|
||||
ElTableColumn,
|
||||
|
||||
Reference in New Issue
Block a user