Skip to content

Commit 8711a32

Browse files
authored
fix(base-select): fix e2e test case error (#3581)
1 parent 750cb3a commit 8711a32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/sites/demos/pc/app/popeditor/conditions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ test('PopEditor 自定义查询条件', async ({ page }) => {
2121
await company.fill('')
2222
await city.fill('福州')
2323
await searchBtn.press('Enter')
24-
await expect(dialogBox.locator('.tiny-grid-body__row')).toHaveCount(1)
24+
await expect(dialogBox.locator('.tiny-grid-body__row:visible')).toHaveCount(1)
2525
})

packages/renderless/src/grid-select/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ export const filter =
2424

2525
if ((props.filterable || props.searchable) && typeof filterMethod === 'function') {
2626
const table = vm.$refs.gridRef.$refs.tinyTable
27-
const fullData = table.afterFullData
27+
const fullData = table.getTableData().fullData
2828

2929
vm.$refs.gridRef.scrollTo(null, 0)
3030

31-
table.afterFullData = filterMethod(value, fullData) || []
31+
table.loadTableData(filterMethod(value, fullData) || [])
3232

3333
vm.$refs.gridRef.handleTableData(!value)
3434

0 commit comments

Comments
 (0)