20260929172211

This commit is contained in:
oneao committed 2026-09-29 17:22:12 +08:00
1 parent ebeeca45b6
commit f337ff1621
16 files changed
+1997 -134

No files matched your search

@@ -181,7 +181,12 @@ describe('fms-table 虚拟滚动验证', () => {
await nextTick()
await new Promise((r) => setTimeout(r, 100))
const stkTable = wrapper.findComponent(StkTable)
expect(stkTable.props('colResizable')).toBe(true)
// 开启时统一传 { disabled } 回调(库只支持这种按列控制方式):普通列可拖,
// 列上显式写 resizable: false 的(操作列 / 展开列)不拖
const colResizable = stkTable.props('colResizable')
expect(colResizable).toMatchObject({ disabled: expect.any(Function) })
expect(colResizable.disabled({ dataIndex: 'c0', width: 120 })).toBe(false)
expect(colResizable.disabled({ dataIndex: '__actions__', resizable: false })).toBe(true)
expect(stkTable.props('headerDrag')).toBeTruthy()
wrapper.unmount()
})
@@ -199,7 +204,9 @@ describe('fms-table 虚拟滚动验证', () => {
await nextTick()
expect(wrapper.find('.fms-table').classes()).not.toContain('fms-table--auto-fit-width')
expect(wrapper.findComponent(StkTable).props('colResizable')).toBe(true)
expect(wrapper.findComponent(StkTable).props('colResizable')).toMatchObject({
disabled: expect.any(Function),
})
wrapper.unmount()
})