fix: Fix Layout Page Tabs dragable (#1433)
* fix: pnpm install * fix: Fix Tabs dragable
This commit is contained in:
parent
16cd2438dd
commit
cfda62ef9c
2214
pnpm-lock.yaml
2214
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue