Merge pull request #42 from alibaba/dev

解决文件名大小写的问题
This commit is contained in:
侑夕
2019-12-24 16:57:02 +08:00
committed by GitHub
8 changed files with 20 additions and 16 deletions

View File

@@ -1,5 +1,9 @@
# Change Log
### 0.4.3
- [!] 修复了一个文件名在 macOS 大小写不敏感造成的 bug
### 0.4.2
- [!] 优化 checkbox 等 boolean 类组件的摆位

View File

@@ -106,17 +106,17 @@ ReactDOM.render(<App />, rootElement);
### API
| Prop | Type | Required | Default | Description |
| ----------------- | :--------: | :------: | :------: | :-----------------------------------------------------------------: |
| **`name`** | `String` | `Y` | `$form` | 表单的名称 |
| **`propsSchema`** | `Object` | `Y` | `{}` | 表单属性配置 json |
| **`uiSchema`** | `Object` | `N` | `{}` | 表单 UI 配置 json |
| **`formData`** | `Object` | `N` | `{}` | 配置数据 |
| **`onChange`** | `Function` | `Y` | `()=>{}` | 数据更改回调函数 |
| **`onValidate`** | `Function` | `N` | `()=>{}` | 表单输入校验回调 |
| **`displayType`** | `String` | `N` | `column` | 设置表单横向排列或者纵向排序`column`/ `row` |
| **`readOnly`** | `Boolean` | `N` | `false` | 预览模式/可编辑模式 |
| **`labelWidth`** | `Number` | `N` | `3` | label 的长度,可使用 1 到 12 的数字,默认 3 代表全长的 25% 3/12 |
| Prop | Type | Required | Default | Description |
| ----------------- | :--------: | :------: | :------: | :---------------------------------------------: |
| **`name`** | `String` | `Y` | `$form` | 表单的名称 |
| **`propsSchema`** | `Object` | `Y` | `{}` | 表单属性配置 json |
| **`uiSchema`** | `Object` | `N` | `{}` | 表单 UI 配置 json |
| **`formData`** | `Object` | `N` | `{}` | 配置数据 |
| **`onChange`** | `Function` | `Y` | `()=>{}` | 数据更改回调函数 |
| **`onValidate`** | `Function` | `N` | `()=>{}` | 表单输入校验回调 |
| **`displayType`** | `String` | `N` | `column` | 设置表单横向排列或者纵向排序`column`/ `row` |
| **`readOnly`** | `Boolean` | `N` | `false` | 预览模式/可编辑模式 |
| **`labelWidth`** | `Number` | `N` | `120` | label 的长度,指明 label 的长度px默认 120 |
**注 1** 设置表单 `displayType` 为 row 时候,请设置 `showDescIcon``true`,隐藏说明,效果会更好
**注 2** **onChange** 方法会用于初始化表单 data如果不写会造成没有初始值的表单元素无法渲染出现不报错也不显示的情况

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "form-render",
"version": "0.4.2",
"version": "0.4.3",
"description": "通过 JSON Schema 生成标准 Form常用于自定义搭建配置界面生成",
"repository": {
"type": "git",

View File

@@ -12,7 +12,7 @@ import {
arrayMove,
} from 'react-sortable-hoc';
import FoldIcon from './foldIcon';
import DescriptionList, { getDescription } from './descriptionList';
import DescriptionList, { getDescription } from './descriptionList1';
const DragHandle = SortableHandle(() => (
<span className="fr-move-icon">:::</span>