File tree Expand file tree Collapse file tree 4 files changed +32
-54
lines changed
Expand file tree Collapse file tree 4 files changed +32
-54
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff 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 ` 支持
You can’t perform that action at this time.
0 commit comments