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.
|
|
|
import { shortcut } from '@core/core';
|
|
|
|
export const TipIconXtype = 'dec.dcm.components.test_status.tip_icon';
|
|
|
|
@shortcut(TipIconXtype)
|
|
|
|
export class TipIcon extends BI.Widget {
|
|
|
|
props = {
|
|
|
|
tipCls: '',
|
|
|
|
tipText: '',
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
const { tipCls, tipText } = this.options;
|
|
|
|
|
|
|
|
return {
|
|
|
|
type: BI.CenterAdaptLayout.xtype,
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: BI.VerticalLayout.xtype,
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: BI.HorizontalAutoLayout.xtype,
|
|
|
|
cls: tipCls,
|
|
|
|
bgap: 20,
|
|
|
|
items: [{
|
|
|
|
type: 'bi.icon',
|
|
|
|
width: 60,
|
|
|
|
height: 60,
|
|
|
|
}],
|
|
|
|
}, {
|
|
|
|
type: BI.Label.xtype,
|
|
|
|
height: 14,
|
|
|
|
text: tipText,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|