mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
fix: fix table header and table body cannot be aligned (#2058)
* fix: fix wrong naming
* perf: 表单设置初始值defaultValue时候使用深度拷贝
* perf: 表单设置初始值defaultValue时候使用深度拷贝
* Revert "perf: 表单设置初始值defaultValue时候使用深度拷贝"
This reverts commit a103cd11b4
.
* perf: perf Tree Component
* fix: 解决tree树形异步懒加载,点击两次才能关闭
* fix: fix table header and table body cannot be aligned
Co-authored-by: yfh01 <unconfigured@null.spigotmc.org>
This commit is contained in:
parent
266c33819f
commit
6981b73ef6
@ -191,7 +191,7 @@ export function useTableScroll(
|
|||||||
|
|
||||||
const columns = unref(columnsRef).filter((item) => !item.defaultHidden);
|
const columns = unref(columnsRef).filter((item) => !item.defaultHidden);
|
||||||
columns.forEach((item) => {
|
columns.forEach((item) => {
|
||||||
width += Number.parseInt(item.width as string) || 0;
|
width += Number.parseFloat(item.width as string) || 0;
|
||||||
});
|
});
|
||||||
const unsetWidthColumns = columns.filter((item) => !Reflect.has(item, 'width'));
|
const unsetWidthColumns = columns.filter((item) => !Reflect.has(item, 'width'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user