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, }, ], }, ], }; } }