Skip to content

Commit eb39bd0

Browse files
committed
some test json changes
1 parent 605a2d2 commit eb39bd0

File tree

4 files changed

+32
-54
lines changed

4 files changed

+32
-54
lines changed

docs/demo/json/test.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/demo/json/test2.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"schema": {
3+
"type": "object",
4+
"properties": {
5+
"inputName": {
6+
"title": "简单输入框",
7+
"type": "string"
8+
},
9+
"numberName": {
10+
"title": "数字",
11+
"description": "数字输入框",
12+
"type": "number"
13+
}
14+
},
15+
"required": []
16+
},
17+
"formData": {}
18+
}

docs/demo/new-feature/test.json

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
{
2-
"schema": {
2+
"propsSchema": {
33
"type": "object",
44
"properties": {
5-
"number": {
6-
"title": "数字",
7-
"description": "数字输入框",
8-
"type": "number"
5+
"string": {
6+
"title": "字符串",
7+
"type": "string"
98
},
10-
"list": {
11-
"title": "对象数组",
12-
"description": "对象数组嵌套功能",
13-
"type": "array",
14-
"minItems": 1,
15-
"maxItems": 3,
16-
"items": {
17-
"type": "object",
18-
"properties": {
19-
"input": {
20-
"title": "简单输入框",
21-
"type": "string"
22-
},
23-
"required": ["input"]
24-
}
25-
}
9+
"string22": {
10+
"title": "测试效验",
11+
"type": "string",
12+
"ui:hidden": "{{formData.string!=='2'}}"
2613
}
27-
}
14+
},
15+
"required": ["string22"]
16+
},
17+
"formData": {
18+
"string": "2",
19+
"string22": ""
2820
}
2921
}

docs/guide/new-feature.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ toc: menu
99

1010
# 新功能
1111

12-
<!--
13-
```jsx
14-
import React from 'react';
15-
import FR from '../demo/FR2/index.jsx';
16-
import json from '../demo/new-feature/expression.json';
17-
18-
export default () => <FR schema={json} />;
19-
``` -->
20-
2112
## 0.8.1
2213

2314
现在所有组件库的属性都可以通过 `ui:options` 支持

0 commit comments

Comments
 (0)