gzkx-package 0.1.54 → 0.1.55

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.
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface FileItem {
4
+ url: string;
5
+ fileName: string;
6
+ }
7
+ interface FileUploadProps {
8
+ value?: FileItem[];
9
+ onChange?: (files: FileItem[]) => void;
10
+ accept?: string;
11
+ maxCount?: number;
12
+ disabled?: boolean;
13
+ buttonText?: string;
14
+ }
15
+ declare const FileFoldComponent: React.FC<FileUploadProps>;
16
+ export default FileFoldComponent;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { UploadProps } from 'antd/es/upload/interface';
3
+
4
+ export interface FileItem {
5
+ url: string;
6
+ fileName: string;
7
+ }
8
+ interface FileUploadProps {
9
+ value?: FileItem[];
10
+ onChange?: (files: FileItem[]) => void;
11
+ accept?: string;
12
+ listType?: UploadProps['listType'];
13
+ maxCount?: number;
14
+ disabled?: boolean;
15
+ showFileType?: boolean;
16
+ }
17
+ declare const ImageVideoComponent: React.FC<FileUploadProps>;
18
+ export default ImageVideoComponent;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  export interface AddItemConfig {
4
- type: 'input' | 'inputoption' | 'inputnumberoption' | 'select' | 'rangePicker' | 'datePicker' | 'password' | 'InputNumber' | 'Radio' | 'Checkbox' | 'upload' | 'textarea' | 'area' | 'treeSelect' | 'richText' | 'doubleValue' | 'file' | 'deptSelect' | 'orgSelect' | 'InputNumberOption' | 'uploadByte' | 'custom';
4
+ type: 'input' | 'inputoption' | 'inputnumberoption' | 'select' | 'rangePicker' | 'datePicker' | 'password' | 'InputNumber' | 'Radio' | 'Checkbox' | 'upload' | 'textarea' | 'area' | 'treeSelect' | 'richText' | 'doubleValue' | 'file' | 'deptSelect' | 'orgSelect' | 'InputNumberOption' | 'uploadByte' | 'custom' | 'imageVideo' | 'filefold';
5
5
  label: string;
6
6
  name: string;
7
7
  placeholder?: string;