帆软决策平台数据连接界面库
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.

30 lines
663 B

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