mirror of
https://github.com/mathuo/dockview
synced 2025-08-17 06:36:01 +00:00
feat: events
This commit is contained in:
parent
284fb1440b
commit
775145f176
@ -1872,7 +1872,7 @@ export class DockviewComponent
|
||||
const removedPanel: IDockviewPanel | undefined =
|
||||
this.movingLock(() =>
|
||||
sourceGroup.model.removePanel(sourceItemId, {
|
||||
skipSetActive: true,
|
||||
skipSetActive: false,
|
||||
skipSetActiveGroup: true,
|
||||
})
|
||||
);
|
||||
|
@ -220,8 +220,6 @@ export abstract class BaseGrid<T extends IGridPanelView>
|
||||
this.gridview.addView(group, size ?? Sizing.Distribute, location);
|
||||
|
||||
this._onDidAdd.fire(group);
|
||||
|
||||
// this.doSetGroupActive(group);
|
||||
}
|
||||
|
||||
protected doRemoveGroup(
|
||||
|
@ -15,7 +15,10 @@ export * from './panel/types';
|
||||
export * from './panel/componentFactory';
|
||||
|
||||
export * from './splitview/splitview';
|
||||
export * from './splitview/options';
|
||||
export {
|
||||
SplitviewComponentOptions,
|
||||
PanelViewInitParameters,
|
||||
} from './splitview/options';
|
||||
|
||||
export * from './paneview/paneview';
|
||||
export * from './gridview/gridview';
|
||||
|
@ -15,10 +15,6 @@ export interface PanelViewInitParameters extends PanelInitParameters {
|
||||
accessor: SplitviewComponent;
|
||||
}
|
||||
|
||||
export interface ISerializableView extends IView, IPanel {
|
||||
init: (params: PanelViewInitParameters) => void;
|
||||
}
|
||||
|
||||
export interface SplitviewComponentOptions extends SplitViewOptions {
|
||||
disableAutoResizing?: boolean;
|
||||
components?: {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISerializableView, PanelViewInitParameters } from './options';
|
||||
import { PanelViewInitParameters } from './options';
|
||||
import {
|
||||
BasePanelView,
|
||||
BasePanelViewExported,
|
||||
@ -19,7 +19,7 @@ export interface ISplitviewPanel
|
||||
|
||||
export abstract class SplitviewPanel
|
||||
extends BasePanelView<SplitviewPanelApiImpl>
|
||||
implements ISerializableView, ISplitviewPanel
|
||||
implements ISplitviewPanel
|
||||
{
|
||||
private _evaluatedMinimumSize = 0;
|
||||
private _evaluatedMaximumSize = Number.POSITIVE_INFINITY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user