Text
文本输入框
API
ITextProps
| 参数 | 类型 | 说明 | 默认值 |
|---|---|---|---|
| prefix | string | 前缀 | - |
| suffix | string | 后缀 | - |
| style | React.CSSProperties | 自定义样式 | - |
| format | string | ((value: any) => string) | 自定义格式化 | - |
用法
<View title="Switch" version="2"> <Record key="person" model="trantor_doc_Person" />
<Form model="trantor_doc_Person" title="编辑态"> <Fields> <Field name="name"> <RenderType> <Text /> </RenderType> </Field> </Fields> </Form></View>注意:当前例子为0.17.x 版本