fix: Fix Layout Page Tabs dragable (#1433)

* fix: pnpm install

* fix: Fix Tabs dragable
This commit is contained in:
humanscrew
2021-12-01 22:02:18 +08:00
committed by GitHub
parent 16cd2438dd
commit cfda62ef9c
2 changed files with 1616 additions and 602 deletions

2214
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -56,7 +56,9 @@ export function useTabsDrag(affixTextList: string[]) {
const { prefixCls } = useDesign('multiple-tabs');
nextTick(() => {
if (!multiTabsSetting.canDrag) return;
const el = document.querySelectorAll(`.${prefixCls} .ant-tabs-nav > div`)?.[0] as HTMLElement;
const el = document.querySelectorAll(
`.${prefixCls} .ant-tabs-nav-wrap > div`,
)?.[0] as HTMLElement;
const { initSortable } = useSortable(el, {
filter: (e: ChangeEvent) => {
const text = e?.target?.innerText;