import {WidgetType, Htape, Label} from '@ui/index'; const className = 'fr.shared.component.form.item'; const Widget: WidgetType = { render() { const {text, form, hint, height} = this.options; return { type: Htape, cls: 'both-side', height:height ? height : 24, items: [{ el: { type: Label, cls: 'left', textAlign: 'left', text, }, width: 115, }, form, { type: Label, cls: 'hint', textAlign: 'left', text: hint, }], }; }, }; BI.shortcut(className, BI.inherit(BI.Widget, Widget)); export default className;