@kne/react-form-antd 2.1.39 → 2.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +35 -35
- package/dist/index.js +127 -260
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +95 -216
- package/dist/index.modern.js.map +1 -1
- package/package.json +91 -91
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 kne-union
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 kne-union
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# react-form
|
|
2
|
-
用于表单验证的react组件
|
|
3
|
-
|
|
4
|
-
### demo
|
|
5
|
-
``
|
|
6
|
-
|
|
7
|
-
<Avatar editor={{open: true, width: 250, height: 250, borderRadius: 1}}
|
|
8
|
-
beforeUpload={(file) => {}}/>
|
|
9
|
-
|
|
10
|
-
<Input realtime debounce={1000} name="name" label="姓名" rule="REQ TEL EXIT"/>
|
|
11
|
-
{isShow ? <Input name="rname" label="姓名哈哈哈" rule="REQ TEL EXIT"/> : null}
|
|
12
|
-
<Select name="select" label="选项" rule="REQ">
|
|
13
|
-
<Select.Option value="1">选项一</Select.Option>
|
|
14
|
-
<Select.Option value="2">选项二</Select.Option>
|
|
15
|
-
<Select.Option value="3">选项三</Select.Option>
|
|
16
|
-
</Select>
|
|
17
|
-
<DatePicker name="date" label="日期" rule="REQ" format="" YYYY-MM-DD/>
|
|
18
|
-
<RadioGroup name="radio" label="单选" rule="REQ">
|
|
19
|
-
<RadioGroup.Radio value="1">选项一</RadioGroup.Radio>
|
|
20
|
-
<RadioGroup.Radio value="2">选项二</RadioGroup.Radio>
|
|
21
|
-
<RadioGroup.Radio value="3">选项三</RadioGroup.Radio>
|
|
22
|
-
</RadioGroup>
|
|
23
|
-
|
|
24
|
-
``
|
|
25
|
-
|
|
26
|
-
# Change Log
|
|
27
|
-
|
|
28
|
-
20200430 v0.1.13 添加了SelectFetch和SelectSearch控件
|
|
29
|
-
20200430 v0.1.14 修改Select组件样式的默认宽度为100%
|
|
30
|
-
20200508 v0.1.16 删除field last-child 样式 margin-bottom 为0
|
|
31
|
-
20200509 v0.1.17 修改导出文件结构,增加fields导出所有field组件
|
|
32
|
-
20200522 v0.1.20 添加头像上传组件
|
|
33
|
-
20200525 v0.1.22 更新@kne/react-fetch以支持setData方法
|
|
34
|
-
20200529 v0.1.23 添加头像上传组件field Avatar
|
|
35
|
-
20200603 v0.1.24 修正Switch的值转换bug
|
|
1
|
+
# react-form
|
|
2
|
+
用于表单验证的react组件
|
|
3
|
+
|
|
4
|
+
### demo
|
|
5
|
+
``
|
|
6
|
+
|
|
7
|
+
<Avatar editor={{open: true, width: 250, height: 250, borderRadius: 1}}
|
|
8
|
+
beforeUpload={(file) => {}}/>
|
|
9
|
+
|
|
10
|
+
<Input realtime debounce={1000} name="name" label="姓名" rule="REQ TEL EXIT"/>
|
|
11
|
+
{isShow ? <Input name="rname" label="姓名哈哈哈" rule="REQ TEL EXIT"/> : null}
|
|
12
|
+
<Select name="select" label="选项" rule="REQ">
|
|
13
|
+
<Select.Option value="1">选项一</Select.Option>
|
|
14
|
+
<Select.Option value="2">选项二</Select.Option>
|
|
15
|
+
<Select.Option value="3">选项三</Select.Option>
|
|
16
|
+
</Select>
|
|
17
|
+
<DatePicker name="date" label="日期" rule="REQ" format="" YYYY-MM-DD/>
|
|
18
|
+
<RadioGroup name="radio" label="单选" rule="REQ">
|
|
19
|
+
<RadioGroup.Radio value="1">选项一</RadioGroup.Radio>
|
|
20
|
+
<RadioGroup.Radio value="2">选项二</RadioGroup.Radio>
|
|
21
|
+
<RadioGroup.Radio value="3">选项三</RadioGroup.Radio>
|
|
22
|
+
</RadioGroup>
|
|
23
|
+
|
|
24
|
+
``
|
|
25
|
+
|
|
26
|
+
# Change Log
|
|
27
|
+
|
|
28
|
+
20200430 v0.1.13 添加了SelectFetch和SelectSearch控件
|
|
29
|
+
20200430 v0.1.14 修改Select组件样式的默认宽度为100%
|
|
30
|
+
20200508 v0.1.16 删除field last-child 样式 margin-bottom 为0
|
|
31
|
+
20200509 v0.1.17 修改导出文件结构,增加fields导出所有field组件
|
|
32
|
+
20200522 v0.1.20 添加头像上传组件
|
|
33
|
+
20200525 v0.1.22 更新@kne/react-fetch以支持setData方法
|
|
34
|
+
20200529 v0.1.23 添加头像上传组件field Avatar
|
|
35
|
+
20200603 v0.1.24 修正Switch的值转换bug
|