You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
898 B
36 lines
898 B
6 years ago
|
import {WidgetType, Vertical} from '@ui';
|
||
|
import {LinkType} from '@ui/type';
|
||
|
import Nothing from './nothing.component';
|
||
|
import RightDetail from './right_detail/right.detail.component';
|
||
|
import RightModel from './right.model';
|
||
|
let rightContent: any = null;
|
||
|
const className = 'fr.component.right';
|
||
|
const Widget: WidgetType = {
|
||
|
_store() {
|
||
|
return BI.Models.getModel(RightModel);
|
||
|
},
|
||
|
watch:{
|
||
|
linkSelected(linkSelected: LinkType) {
|
||
|
console.log('%clinkSelected: ', 'color: MidnightBlue; background: Aquamarine;', linkSelected);
|
||
|
},
|
||
|
},
|
||
|
render() {
|
||
|
return {
|
||
|
type:Vertical,
|
||
|
cls:'database-right',
|
||
|
ref(_ref: any) {
|
||
|
rightContent = _ref;
|
||
|
},
|
||
|
};
|
||
|
},
|
||
|
mounted() {
|
||
|
rightContent.populate(BI.createItems([
|
||
|
{
|
||
|
type: RightDetail,
|
||
|
},
|
||
|
]));
|
||
|
},
|
||
|
};
|
||
|
BI.shortcut(className, BI.inherit(BI.Widget, Widget));
|
||
|
export default className;
|