10 changed files with 154 additions and 7 deletions
@ -0,0 +1,35 @@ |
|||||||
|
import {WidgetType, CenterAdapt, Vertical, Layout, Label} from '@ui/index'; |
||||||
|
const className = 'fr.component.right.nothing'; |
||||||
|
const Widget: WidgetType = { |
||||||
|
render() { |
||||||
|
return { |
||||||
|
type: CenterAdapt, |
||||||
|
items: [{ |
||||||
|
type: Vertical, |
||||||
|
width: 260, |
||||||
|
height: 180, |
||||||
|
items:[ |
||||||
|
{ |
||||||
|
type: Layout, |
||||||
|
cls: 'data-connection-background', |
||||||
|
width: 260, |
||||||
|
height: 130, |
||||||
|
}, |
||||||
|
{ |
||||||
|
type:Label, |
||||||
|
cls: 'bi-tips', |
||||||
|
text:'请选择左侧数据连接或点击新建数据连接', |
||||||
|
}, |
||||||
|
{ |
||||||
|
type:Label, |
||||||
|
cls: 'bi-tips', |
||||||
|
text:'平台仅支持使用JDBC的数据连接的管理', |
||||||
|
}, |
||||||
|
], |
||||||
|
|
||||||
|
}], |
||||||
|
}; |
||||||
|
}, |
||||||
|
}; |
||||||
|
BI.shortcut(className, BI.inherit(BI.Widget, Widget)); |
||||||
|
export default className; |
@ -0,0 +1,35 @@ |
|||||||
|
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; |
@ -0,0 +1,8 @@ |
|||||||
|
const className = 'fr.model.linkSet.right'; |
||||||
|
const Model = BI.inherit(Fix.Model, { |
||||||
|
context: ['linkList', 'linkSelected'], |
||||||
|
actions: { |
||||||
|
}, |
||||||
|
}); |
||||||
|
BI.model(className, Model); |
||||||
|
export default className; |
@ -0,0 +1,18 @@ |
|||||||
|
import {WidgetType, Vertical, Left, Label, Button} from '@ui/index'; |
||||||
|
import Title from '../right_title/right.title.component'; |
||||||
|
const className = 'fr.component.right.detail'; |
||||||
|
const Widget: WidgetType = { |
||||||
|
render() { |
||||||
|
return { |
||||||
|
type: Vertical, |
||||||
|
cls:'right-content', |
||||||
|
items: [ |
||||||
|
{ |
||||||
|
type: Title, |
||||||
|
}, |
||||||
|
], |
||||||
|
}; |
||||||
|
}, |
||||||
|
}; |
||||||
|
BI.shortcut(className, BI.inherit(BI.Widget, Widget)); |
||||||
|
export default className; |
@ -0,0 +1,25 @@ |
|||||||
|
import {WidgetType, Left, Label, Button} from '@ui/index'; |
||||||
|
const className = 'fr.component.right.title'; |
||||||
|
const Widget: WidgetType = { |
||||||
|
render() { |
||||||
|
return { |
||||||
|
type: Left, |
||||||
|
height: 40, |
||||||
|
cls: 'right-title', |
||||||
|
items: [ |
||||||
|
{ |
||||||
|
type: Label, |
||||||
|
cls: 'right-title-text', |
||||||
|
text: '数据连接(APACHE KYLIN)', |
||||||
|
}, |
||||||
|
{ |
||||||
|
type: Button, |
||||||
|
cls:'right-title-button', |
||||||
|
text: '编辑', |
||||||
|
}, |
||||||
|
], |
||||||
|
}; |
||||||
|
}, |
||||||
|
}; |
||||||
|
BI.shortcut(className, BI.inherit(BI.Widget, Widget)); |
||||||
|
export default className; |
Loading…
Reference in new issue