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
654 B
30 lines
654 B
6 years ago
|
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;
|