ra-element 0.1.88 → 0.1.90

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/docs/ra-select.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  | name | type | desc | default | required |
6
6
  | ---- | ---- | ---- | ------- | -------- |
7
- | options | Array as any | 每项独立配置 label,value | [] | |
8
- | props | Object | 原属性 | { label: 'label', value: 'value', options: 'options', disabled: 'disabled' } | |
7
+ | options | Array | 每项独立配置 label,value | [] | |
8
+ | props | Object | 原属性,保证label,value,options,disabled属性可以被替换 | { label: 'label', value: 'value', options: 'options', disabled: 'disabled' } | |
9
9
  | collapseTags | Boolean | 原属性,默认设置true | true | |
10
10
  | clearable | Boolean | 原属性,默认设置true | true | |
11
11
  | multiple | Boolean | 原属性,默认设置true | false | |
@@ -4,6 +4,12 @@
4
4
 
5
5
  | name | type | desc | default | required |
6
6
  | ---- | ---- | ---- | ------- | -------- |
7
- | options | Array as PropType<TreeSelectOptions[]> | 每项独立配置 label,value | [] | |
7
+ | options | Array | 每项独立配置 label,value | [] | |
8
+ | props | Object | 原属性,保证label,value,isLeaf,children,disabled属性可以被替换 | { label: 'label', value: 'value', isLeaf: 'isLeaf', children: 'children', disabled: 'disabled' } | |
8
9
  | collapseTags | Boolean | 原属性,默认设置true | true | |
9
10
  | clearable | Boolean | 原属性,默认设置true | true | |
11
+ | multiple | Boolean | 原属性,默认设置true | false | |
12
+ | checkStrictly | Boolean | 是否父子节点关联,默认设置false | false | |
13
+ | selectLevel | String | 多选是是否启动层级判断,默认是false | '0' | |
14
+
15
+ ## events
package/docs/ra-upload.md CHANGED
@@ -12,12 +12,14 @@
12
12
  | accept | String | 接受的文件类型 | '.jpg,.png,.doc,.docx,.xlsx' | |
13
13
  | drag | Boolean | 是否启用拖拽上传 | false | |
14
14
  | listType | String as PropType<'text' \| 'picture' | 'picture-card'> | 文件列表类型 | 'text' | |
15
+ | buttonType | String | 按钮类型 | 'primary' | |
15
16
  | buttonText | String | 按钮文本 | '点击上传' | |
16
17
  | dragText | String | 拖拽区域文本 | '点击或拖拽文件到这里上传' | |
17
18
  | tipText | String | 提示文本 | '' | |
18
19
  | autoUpload | Boolean | 是否自动上传 | false | |
19
20
  | showFileList | Boolean | 是否显示文件列表 | true | |
20
- | maxSize | Number | 最大文件大小(MB) | 10 | |
21
+ | showMaxSize | Boolean | 是否显示文件大小信息 | true | |
22
+ | maxSize | Number | 单个文件大小(MB) | 10 | |
21
23
  | showDownload | Boolean | 展示下载按钮 | false | |
22
24
 
23
25
  ## events