未验证 提交 cfda62ef 编写于 作者: H humanscrew 提交者: GitHub

fix: Fix Layout Page Tabs dragable (#1433)

* fix: pnpm install

* fix: Fix Tabs dragable
上级 16cd2438
此差异已折叠。
...@@ -56,7 +56,9 @@ export function useTabsDrag(affixTextList: string[]) { ...@@ -56,7 +56,9 @@ export function useTabsDrag(affixTextList: string[]) {
const { prefixCls } = useDesign('multiple-tabs'); const { prefixCls } = useDesign('multiple-tabs');
nextTick(() => { nextTick(() => {
if (!multiTabsSetting.canDrag) return; 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, { const { initSortable } = useSortable(el, {
filter: (e: ChangeEvent) => { filter: (e: ChangeEvent) => {
const text = e?.target?.innerText; const text = e?.target?.innerText;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册