mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 18:26:00 +00:00
perspectives WIP
This commit is contained in:
@@ -53,6 +53,9 @@ export abstract class PerspectiveTreeNode {
|
||||
get fieldName() {
|
||||
return this.codeName;
|
||||
}
|
||||
get dataField() {
|
||||
return this.codeName;
|
||||
}
|
||||
abstract getNodeLoadProps(parentRows: any[]): PerspectiveDataLoadProps;
|
||||
get isRoot() {
|
||||
return this.parentNode == null;
|
||||
@@ -75,6 +78,9 @@ export abstract class PerspectiveTreeNode {
|
||||
get isChecked() {
|
||||
return this.config.checkedColumns.includes(this.uniqueName);
|
||||
}
|
||||
get columnTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
toggleExpanded(value?: boolean) {
|
||||
this.includeInColumnSet('expandedColumns', this.uniqueName, value == null ? !this.isExpanded : value);
|
||||
@@ -233,6 +239,10 @@ export class PerspectiveTableReferenceNode extends PerspectiveTableNode {
|
||||
dataColumns: null,
|
||||
};
|
||||
}
|
||||
|
||||
get columnTitle() {
|
||||
return this.table.pureName;
|
||||
}
|
||||
}
|
||||
|
||||
export function getTableChildPerspectiveNodes(
|
||||
|
||||
Reference in New Issue
Block a user