antd-form-document 5.0.8 → 5.0.10

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Antd-Form-Document
1
+ ****# Antd-Form-Document
2
2
 
3
3
  基于[ant-design](https://ant.design/) [cn](https://ant-design.gitee.io/) 表单设计
4
4
 
@@ -6,65 +6,66 @@
6
6
 
7
7
  <!-- code_chunk_output -->
8
8
 
9
- - [Antd-Form-Document](#antd-form-document)
10
- - [一、安装](#一-安装)
11
- - [二、示例](#二-示例)
12
- - [XML Document 格式](#xml-document-格式)
13
- - [三、XML 文档说明](#三-xml-文档说明)
14
- - [表单](#表单)
15
- - [Form](#form)
16
- - [容器](#容器)
17
- - [Row](#row)
18
- - [Col](#col)
19
- - [Divider](#divider)
20
- - [Steps](#steps)
21
- - [Step](#step)
22
- - [Content](#content)
23
- - [Collapse](#collapse)
24
- - [Tabs](#tabs)
25
- - [Card](#card)
26
- - [组件](#组件)
27
- - [Label](#label)
28
- - [Tooltip](#tooltip)
29
- - [Text](#text)
30
- - [TextArea](#textarea)
31
- - [Number](#number)
32
- - [Editor](#editor)
33
- - [Select](#select)
34
- - [Checkbox](#checkbox)
35
- - [Radio](#radio)
36
- - [Switch](#switch)
37
- - [Duration](#duration)
38
- - [DatePicker](#datepicker)
39
- - [TimePicker](#timepicker)
40
- - [RangePicker](#rangepicker)
41
- - [Rate](#rate)
42
- - [Upload](#upload)
43
- - [Photo](#photo)
44
- - [SuperUpload](#superupload)
45
- - [Table](#table)
46
- - [Columns](#columns)
47
- - [Column](#column)
48
- - [FormList](#formlist)
49
- - [Columns](#columns-1)
50
- - [Column](#column-1)
51
- - [注:](#注)
52
- - [控件](#控件)
53
- - [Validates](#validates)
54
- - [Validate](#validate)
55
- - [Conditions](#conditions)
56
- - [Condition](#condition)
57
- - [Collection](#collection)
58
- - [Compute](#compute)
59
- - [Options](#options)
60
- - [Option](#option)
61
- - [四、应用](#四-应用)
62
- - [FormDocument标签](#formdocument标签)
63
- - [Config配置](#config配置)
64
- - [自定义组件](#自定义组件)
65
- - [Department](#department)
66
- - [UploadList](#uploadlist)
67
- - [Sign](#sign)
9
+ - [一、安装](#一-安装)
10
+ - [二、示例](#二-示例)
11
+ - [XML Document 格式](#xml-document-格式)
12
+ - [三、XML 文档说明](#三-xml-文档说明)
13
+ - [表单](#表单)
14
+ - [Form](#form)
15
+ - [容器](#容器)
16
+ - [Row](#row)
17
+ - [Col](#col)
18
+ - [Divider](#divider)
19
+ - [Steps](#steps)
20
+ - [Step](#step)
21
+ - [Content](#content)
22
+ - [Collapse](#collapse)
23
+ - [Tabs](#tabs)
24
+ - [Card](#card)
25
+ - [组件](#组件)
26
+ - [Label](#label)
27
+ - [Tooltip](#tooltip)
28
+ - [Text](#text)
29
+ - [TextArea](#textarea)
30
+ - [Number](#number)
31
+ - [Editor](#editor)
32
+ - [Select](#select)
33
+ - [Checkbox](#checkbox)
34
+ - [Radio](#radio)
35
+ - [Switch](#switch)
36
+ - [Duration](#duration)
37
+ - [DatePicker](#datepicker)
38
+ - [TimePicker](#timepicker)
39
+ - [RangePicker](#rangepicker)
40
+ - [Rate](#rate)
41
+ - [Upload](#upload)
42
+ - [Photo](#photo)
43
+ - [Audio](#audio)
44
+ - [Video](#video)
45
+ - [SuperUpload](#superupload)
46
+ - [Table](#table)
47
+ - [Columns](#columns)
48
+ - [Column](#column)
49
+ - [FormList](#formlist)
50
+ - [Columns](#columns-1)
51
+ - [Column](#column-1)
52
+ - [注:](#注)
53
+ - [控件](#控件)
54
+ - [Validates](#validates)
55
+ - [Validate](#validate)
56
+ - [Conditions](#conditions)
57
+ - [Condition](#condition)
58
+ - [Collection](#collection)
59
+ - [Compute](#compute)
60
+ - [Options](#options)
61
+ - [Option](#option)
62
+ - [四、应用](#四-应用)
63
+ - [FormDocument标签](#formdocument标签)
64
+ - [Config配置](#config配置)
65
+ - [自定义组件](#自定义组件)
66
+ - [Department](#department)
67
+ - [UploadList](#uploadlist)
68
+ - [Sign](#sign)
68
69
 
69
70
  <!-- /code_chunk_output -->
70
71
 
@@ -779,6 +780,7 @@ const App = () => {
779
780
  | title | 字段标题 | string | - | ✓ |
780
781
  | defaultValue | 默认时长`value` | string | 000:00:00 | - |
781
782
  | defaultHide | 默认是否隐藏 | boolean | false | - |
783
+ | format | 格式化显示 | string | H小时M分S秒 | |
782
784
  | tips | 字段提示 | string | - | |
783
785
  | hideClear | 是否在控件隐藏时清除数据 | boolean | false | - |
784
786
  | hidden | 是否隐藏 | boolean | false | - |
@@ -946,7 +948,7 @@ const App = () => {
946
948
 
947
949
  #### Photo
948
950
 
949
- 上传
951
+ 上传图片
950
952
 
951
953
  | 参数 | 说明 | 类型 | 默认值 | 必填项 |
952
954
  | --------------- | ------------------------------------------------------------------------------------------------------ | ------- | ------ | ------ |
@@ -975,6 +977,76 @@ const App = () => {
975
977
  </Photo>
976
978
  ```
977
979
 
980
+ #### Audio
981
+
982
+ 上传
983
+
984
+ | 参数 | 说明 | 类型 | 默认值 | 必填项 |
985
+ | --------------- | ------------------------------------------------------------------------------------------------------ | ------- | ------ | ------ |
986
+ | code | 字段编号全局唯一 | string | - | ✓ |
987
+ | title | 字段标题 | string | - | ✓ |
988
+ | maxCount | 最大上传文件个数 | number | - | ✓ |
989
+ | fileSize | 单个文件最大字节;`1B`、`1KB`、`1MB`、`1GB`、`1TB`、`1PB` | string | - | |
990
+ | fileWidth | 文件宽度比 | number | 100 | |
991
+ | fileHeight | 文件高度比 | number | 100 | |
992
+ | defaultHide | 默认是否隐藏 | boolean | false | - |
993
+ | tips | 字段提示 | string | - | |
994
+ | autoplay | 是否自动播放 | booolean | false | |
995
+ | muted | 是否静音 | booolean | false | |
996
+ | loop | 是否循环播放 | booolean | false | |
997
+ | preload | 预加载方式 | string | `auto`丨`metadata`丨`none` | |
998
+ | hideClear | 是否在控件隐藏时清除数据 | boolean | false | - |
999
+ | hidden | 是否隐藏 | boolean | false | - |
1000
+ | readonly | 是否只读 | boolean | false | - |
1001
+ | labelCol | `title`布局,与同 `<Col>` 组件设置 | number | - | |
1002
+ | wrapperCol | 组件布局,同 `<Col>` 组件设置 | number | - | |
1003
+ | style | 组件样式 | string | - | |
1004
+ | labelStyle | 标签样式 | string | - | |
1005
+ | itemStyle | 表单样式 | string | - | |
1006
+
1007
+ **例:**
1008
+
1009
+ ```xml
1010
+ <Audio code="mp3" title="音频" maxCount="2" fileSize="20MB" fileWidth="390" fileHeight="567" tips="按照要求上传音频!" preload="metadata">
1011
+ XXX子控件
1012
+ </Audio>
1013
+ ```
1014
+
1015
+ #### Video
1016
+
1017
+ 上传视频
1018
+
1019
+ | 参数 | 说明 | 类型 | 默认值 | 必填项 |
1020
+ | --------------- | ------------------------------------------------------------------------------------------------------ | ------- | ------ | ------ |
1021
+ | code | 字段编号全局唯一 | string | - | ✓ |
1022
+ | title | 字段标题 | string | - | ✓ |
1023
+ | maxCount | 最大上传文件个数 | number | - | ✓ |
1024
+ | fileSize | 单个文件最大字节;`1B`、`1KB`、`1MB`、`1GB`、`1TB`、`1PB` | string | - | |
1025
+ | fileWidth | 文件宽度比 | number | 100 | |
1026
+ | fileHeight | 文件高度比 | number | 100 | |
1027
+ | defaultHide | 默认是否隐藏 | boolean | false | - |
1028
+ | tips | 字段提示 | string | - | |
1029
+ | controls | 是否显示播放控件 | booolean | true | |
1030
+ | autoplay | 是否自动播放 | booolean | false | |
1031
+ | muted | 是否静音 | booolean | false | |
1032
+ | loop | 是否循环播放 | booolean | false | |
1033
+ | preload | 预加载方式 | string | `auto`丨`metadata`丨`none` | |
1034
+ | hideClear | 是否在控件隐藏时清除数据 | boolean | false | - |
1035
+ | hidden | 是否隐藏 | boolean | false | - |
1036
+ | readonly | 是否只读 | boolean | false | - |
1037
+ | labelCol | `title`布局,与同 `<Col>` 组件设置 | number | - | |
1038
+ | wrapperCol | 组件布局,同 `<Col>` 组件设置 | number | - | |
1039
+ | style | 组件样式 | string | - | |
1040
+ | labelStyle | 标签样式 | string | - | |
1041
+ | itemStyle | 表单样式 | string | - | |
1042
+
1043
+ **例:**
1044
+
1045
+ ```xml
1046
+ <Video code="mp4" title="视频" maxCount="2" fileSize="200MB" fileWidth="390" fileHeight="567" tips="按照要求上传视频!" controls="true">
1047
+ XXX子控件
1048
+ </Video>
1049
+ ```
978
1050
 
979
1051
 
980
1052
  #### SuperUpload
@@ -1096,6 +1168,9 @@ const App = () => {
1096
1168
  | 参数 | 说明 | 类型 | 默认值 | 必填项 |
1097
1169
  | ----------- | ------------------------------- | ------ | ------ | ------ |
1098
1170
  | title | 表列标题 | string | undefined | |
1171
+ | text | 列显示内容 | string | - | - |
1172
+ | type | 类型 `text`、`url` | string | `text` | - |
1173
+ | ellipsis | 超过宽度将自动省略 | boolean | false | - |
1099
1174
  | dataIndex | 数据编号 `index`、from表单对应code | string | - | ✓ |
1100
1175
 
1101
1176
  **例:**