帆软决策平台数据连接界面库
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.
 
 
 
 

39 lines
951 B

import {WidgetType, Vertical} from '@ui';
import {LinkType} from '@ui/type';
import Nothing from './nothing.component';
import RightDetail from './right_detail/right.detail.component';
import Model from '../link-set.model';
let rightContent: any = null;
const className = 'fr.component.right';
const Widget: WidgetType = {
_store() {
return BI.Models.getModel(Model);
},
watch:{
linkSelected(linkSelected: LinkType) {
rightContent.populate(BI.createItems([
{
type: (linkSelected && linkSelected.connectionName) ? RightDetail : Nothing,
},
]));
},
},
render() {
return {
type:Vertical,
cls:'database-right',
ref(_ref: any) {
rightContent = _ref;
},
};
},
mounted() {
rightContent.populate(BI.createItems([
{
type: Nothing,
},
]));
},
};
BI.shortcut(className, BI.inherit(BI.Widget, Widget));
export default className;