@ -13,13 +13,12 @@ const Widget: WidgetType = {
return BI.Models.getModel(Model);
},
render() {
const {title, extraCls, creator, text, id} = this.options;
const {title, cls, creator, text, id} = this.options;
return {
type: LeftRightVerticalAdapt,
cls: 'link-item cursor-pointer',
cls: `link-item cursor-pointer ${cls}`,
height: 24,
extraCls,
items: {
left: [
{
@ -63,8 +63,7 @@ const Widget: WidgetType = {
type: IconButton,
cls,
extraCls: 'action-icon',
cls: `action-icon ${cls}`,
width: 26,
title,
@ -32,7 +32,7 @@ const Widget: WidgetType = {
return BI.map(linkList, (index: number, item: LinkType) => {
type: LeftItem,
extraCls: item.connectionName === selectTitle ? 'left-item-selected' : '',
cls: item.connectionName === selectTitle ? 'left-item-selected' : '',
title: item.connectionName,
id: item.connectionId,
creator: item.creator,
@ -11,13 +11,12 @@ const Widget: WidgetType = {
const {title, extraCls} = this.options;
const {title, cls} = this.options;
type: Left,
cls: 'left-item cursor-pointer',
cls: `left-item cursor-pointer ${cls}`,
height: 30,
items: [
type: TextButton,
@ -22,7 +22,6 @@ const WidgetPool = BI.inherit(BI.Widget, {
type: 'bi.label',
cls: 'right-status-text',
extraCls: 'card-font1',
text: numActive,