Unverified 提交 cfda62ef 作者: humanscrew 提交者: GitHub

fix: Fix Layout Page Tabs dragable (#1433)

* fix: pnpm install

* fix: Fix Tabs dragable
上级 16cd2438
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论