Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tab 分栏拖拽 #800

Open
mortalYoung opened this issue Sep 8, 2022 · 2 comments
Open

feat: tab 分栏拖拽 #800

mortalYoung opened this issue Sep 8, 2022 · 2 comments
Labels
enhancement New feature or request iteration-plan Just record the iteration detail info

Comments

@mortalYoung
Copy link
Collaborator

No description provided.

@mortalYoung mortalYoung added enhancement New feature or request iteration-plan Just record the iteration detail info labels Sep 8, 2022
@mumiao
Copy link
Collaborator

mumiao commented Sep 15, 2022

@mumiao

@slobber
Copy link

slobber commented Feb 24, 2024

这个可以这么改:
修改:

const renderGroups = () => {

把 renderGroups 中的 DndProvider 去掉,加到 return 中。

const renderGroups = () => {
        return (
            <Split ref={ref} sizes={sizes} split={layout.editorDirection} onChange={onPaneSizeChange}>
                {groups.map((g) => (
                    <Split.Pane key={g.id} minSize={220}>
                        <Group
                            group={g}
                            toolbar={toolbar}
                            options={options}
                            onMount={onMount}
                            onModelMount={onModelMount}
                            onSelectTab={onSelectTab}
                            onContextMenu={onContextMenu}
                            onToolbarClick={onToolbarClick}
                            onCloseTab={onCloseTab}
                            onDragStart={onDragStart}
                            onDragEnd={onDragEnd}
                            onDragEnter={onDragEnter}
                            onDragLeave={onDragLeave}
                            onDragOver={onDragOver}
                            onDrop={onDrop}
                        />
                    </Split.Pane>
                ))}
            </Split>
        );
    };

    return (
        <div className={variables.container}>
            <Progress active={loading} />
            <DndProvider backend={HTML5Backend} context={window}>
                {current ? renderGroups() : entry}
            </DndProvider>
        </div>
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request iteration-plan Just record the iteration detail info
Projects
None yet
Development

No branches or pull requests

3 participants