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.
57 lines
1.3 KiB
57 lines
1.3 KiB
6 years ago
|
import {Htape, WidgetType, Vtape, Left} from '@ui';
|
||
6 years ago
|
import LeftList from './left/left';
|
||
|
import linkSetModel from './link_set.model';
|
||
|
import Select from './select/select';
|
||
|
import Right from './right/right';
|
||
6 years ago
|
import {TAB_LINK_SET} from '@private/constants';
|
||
6 years ago
|
const className = 'dec.dcm.linkset';
|
||
6 years ago
|
const Widget: WidgetType = {
|
||
|
_store() {
|
||
|
return BI.Models.getModel(linkSetModel);
|
||
|
},
|
||
6 years ago
|
watch: {
|
||
6 years ago
|
tab(tab: string) {
|
||
6 years ago
|
this.setVisible(tab === TAB_LINK_SET);
|
||
6 years ago
|
},
|
||
|
},
|
||
|
render() {
|
||
|
return {
|
||
|
type: Htape,
|
||
6 years ago
|
cls: 'dcm-link-group',
|
||
6 years ago
|
items: [{
|
||
|
el: {
|
||
|
type: Vtape,
|
||
6 years ago
|
cls: 'dcm-link-left bi-border-right',
|
||
6 years ago
|
items: [
|
||
|
{
|
||
|
el: {
|
||
6 years ago
|
type: Left,
|
||
6 years ago
|
cls: 'bi-border-bottom',
|
||
6 years ago
|
items: [
|
||
6 years ago
|
{
|
||
|
type: Select,
|
||
6 years ago
|
hgap: 10,
|
||
|
tgap: 10,
|
||
6 years ago
|
},
|
||
|
],
|
||
|
},
|
||
|
height: 40,
|
||
|
}, {
|
||
6 years ago
|
type: LeftList,
|
||
|
cls: 'left-list',
|
||
6 years ago
|
vgap: 10,
|
||
|
hgap: 10,
|
||
6 years ago
|
},
|
||
|
],
|
||
|
},
|
||
|
width: 280,
|
||
|
}, {
|
||
6 years ago
|
type: Right,
|
||
6 years ago
|
}],
|
||
|
};
|
||
|
},
|
||
|
};
|
||
|
BI.shortcut(className, BI.inherit(BI.Widget, Widget));
|
||
|
|
||
|
export default className;
|