修改选项卡点击位置调整

master
于肖磊 2025-02-17 09:36:32 +08:00
parent 7796cea1da
commit 8a6887043a
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@
.boundingClientRect((rect) => {
const tabs_index = this.form.tabs_list.findIndex(item => item.is_sliding_fixed == '1');
// left left
const new_width = tabs_index == 0 ? rect[1].left - rect[0].width - rect[0].left : rect[0].left;
const new_width = tabs_index == 0 && index != 0 ? rect[1].left - rect[0].width - rect[0].left : rect[0].left;
const scrollLeft =
rect[index].left +
rect[index].width / 2 -