|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import {WidgetType, Left, Label, Vertical, FloatCenter, CenterAdapt} from '@ui/index'; |
|
|
|
|
import {WidgetType, Left, Label, Vertical, FloatCenter, CenterAdapt, VerticalAdapt} from '@ui/index'; |
|
|
|
|
const className = 'dec.dcm.component.linkStatus.right.card'; |
|
|
|
|
const Widget: WidgetType = { |
|
|
|
|
render() { |
|
|
|
@ -8,15 +8,11 @@ const Widget: WidgetType = {
|
|
|
|
|
type: FloatCenter, |
|
|
|
|
height: 150, |
|
|
|
|
hgap: 20, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Left, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Vertical, |
|
|
|
|
cls: 'right-status-board', |
|
|
|
|
cls: 'bi-background', |
|
|
|
|
height: 150, |
|
|
|
|
width: '100%', |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: CenterAdapt, |
|
|
|
@ -24,23 +20,21 @@ const Widget: WidgetType = {
|
|
|
|
|
tgap: 40, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Left, |
|
|
|
|
type: VerticalAdapt, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'right-status-text card-font-success', |
|
|
|
|
cls: 'bi-high-light card-font-success', |
|
|
|
|
textHeight: 40, |
|
|
|
|
text: numActive, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'right-status-text', |
|
|
|
|
textHeight: 40, |
|
|
|
|
text: '/', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'right-status-text', |
|
|
|
|
textHeight: 40, |
|
|
|
|
text: maxActive, |
|
|
|
|
}, |
|
|
|
@ -55,17 +49,10 @@ const Widget: WidgetType = {
|
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Left, |
|
|
|
|
cls: 'right-status-right', |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Vertical, |
|
|
|
|
cls: 'right-status-board', |
|
|
|
|
cls: 'bi-background', |
|
|
|
|
height: 150, |
|
|
|
|
width: '100%', |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: CenterAdapt, |
|
|
|
@ -73,23 +60,21 @@ const Widget: WidgetType = {
|
|
|
|
|
cls: 'right-status-board-item', |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Left, |
|
|
|
|
type: VerticalAdapt, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'right-status-text card-font-heighlight', |
|
|
|
|
cls: 'bi-high-light card-font-heighlight', |
|
|
|
|
textHeight: 40, |
|
|
|
|
text: numIdle, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'right-status-text', |
|
|
|
|
textHeight: 40, |
|
|
|
|
text: '/', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'right-status-text', |
|
|
|
|
textHeight: 40, |
|
|
|
|
text: maxIdle, |
|
|
|
|
}, |
|
|
|
@ -105,8 +90,6 @@ const Widget: WidgetType = {
|
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|