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.
39 lines
1.1 KiB
39 lines
1.1 KiB
6 years ago
|
import { shortcut } from '@core/core';
|
||
|
import { Vertical, HorizotalAuto, CenterAdapt, Label } from 'ui';
|
||
|
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: CenterAdapt,
|
||
|
items: [
|
||
|
{
|
||
|
type: Vertical,
|
||
|
items: [
|
||
|
{
|
||
|
type: HorizotalAuto,
|
||
|
cls: tipCls,
|
||
|
bgap: 20,
|
||
|
items: [{
|
||
|
type: 'bi.icon',
|
||
|
width: 96,
|
||
|
height: 96,
|
||
|
}],
|
||
|
}, {
|
||
|
type: Label,
|
||
|
height: 14,
|
||
|
text: tipText,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
}
|
||
|
}
|