mirror of
https://github.com/mathuo/dockview
synced 2025-01-22 09:25:57 +00:00
chore: internals renaming
This commit is contained in:
parent
e28c76626f
commit
e1849f72a5
@ -131,12 +131,12 @@ export class BranchNode extends CompositeDisposable implements IView {
|
||||
return LayoutPriority.Normal;
|
||||
}
|
||||
|
||||
get locked(): boolean {
|
||||
return this.splitview.locked;
|
||||
get disabled(): boolean {
|
||||
return this.splitview.disabled;
|
||||
}
|
||||
|
||||
set locked(value: boolean) {
|
||||
this.splitview.locked = value;
|
||||
set disabled(value: boolean) {
|
||||
this.splitview.disabled = value;
|
||||
}
|
||||
|
||||
constructor(
|
||||
@ -187,7 +187,7 @@ export class BranchNode extends CompositeDisposable implements IView {
|
||||
});
|
||||
}
|
||||
|
||||
this.locked = disabled;
|
||||
this.disabled = disabled;
|
||||
|
||||
this.addDisposables(
|
||||
this._onDidChange,
|
||||
|
@ -42,7 +42,7 @@ function flipNode<T extends Node>(
|
||||
node.styles,
|
||||
size,
|
||||
orthogonalSize,
|
||||
node.locked
|
||||
node.disabled
|
||||
);
|
||||
|
||||
let totalSize = 0;
|
||||
@ -350,7 +350,7 @@ export class Gridview implements IDisposable {
|
||||
const node = branch.pop();
|
||||
|
||||
if (node instanceof BranchNode) {
|
||||
node.locked = value;
|
||||
node.disabled = value;
|
||||
branch.push(...node.children);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
&.dv-splitview-locked {
|
||||
&.dv-splitview-disabled {
|
||||
& > .sash-container > .sash {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -201,14 +201,14 @@ export class Splitview {
|
||||
this.updateSashEnablement();
|
||||
}
|
||||
|
||||
get locked(): boolean {
|
||||
get disabled(): boolean {
|
||||
return this._disabled;
|
||||
}
|
||||
|
||||
set locked(value: boolean) {
|
||||
set disabled(value: boolean) {
|
||||
this._disabled = value;
|
||||
|
||||
toggleClass(this.element, 'dv-splitview-locked', value);
|
||||
toggleClass(this.element, 'dv-splitview-disabled', value);
|
||||
}
|
||||
|
||||
constructor(
|
||||
|
Loading…
Reference in New Issue
Block a user