@jzwd/vnd-design 0.0.0-stage → 0.2.0
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 +259 -2
- package/dist/file-center/api/endpoints.d.ts +42 -0
- package/dist/file-center/api/endpoints.js +45 -0
- package/dist/file-center/api/error.d.ts +6 -0
- package/dist/file-center/api/error.js +34 -0
- package/dist/file-center/api/index.d.ts +64 -0
- package/dist/file-center/api/index.js +238 -0
- package/dist/file-center/api/request.d.ts +28 -0
- package/dist/file-center/api/request.js +170 -0
- package/dist/file-center/api/token.d.ts +10 -0
- package/dist/file-center/api/token.js +122 -0
- package/dist/file-center/components/FcFileList/index.d.ts +39 -0
- package/dist/file-center/components/FcFileList/index.js +804 -0
- package/dist/file-center/components/FcFileList/style.css +106 -0
- package/dist/file-center/components/FcImage/index.d.ts +30 -0
- package/dist/file-center/components/FcImage/index.js +144 -0
- package/dist/file-center/components/FcImage/style.css +14 -0
- package/dist/file-center/components/FcUpload/index.d.ts +5 -0
- package/dist/file-center/components/FcUpload/index.js +642 -0
- package/dist/file-center/components/FcUpload/interface.d.ts +65 -0
- package/dist/file-center/components/FcUpload/interface.js +1 -0
- package/dist/file-center/components/FcUpload/style.css +279 -0
- package/dist/file-center/context.d.ts +22 -0
- package/dist/file-center/context.js +22 -0
- package/dist/file-center/index.d.ts +26 -0
- package/dist/file-center/index.js +21 -0
- package/dist/file-center/types.d.ts +144 -0
- package/dist/file-center/types.js +1 -0
- package/dist/file-center/upload.d.ts +35 -0
- package/dist/file-center/upload.js +295 -0
- package/dist/file-center/utils/common.d.ts +10 -0
- package/dist/file-center/utils/common.js +165 -0
- package/dist/file-center/utils/compress.d.ts +18 -0
- package/dist/file-center/utils/compress.js +108 -0
- package/dist/file-center/utils/md5.d.ts +5 -0
- package/dist/file-center/utils/md5.js +41 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +15 -0
- package/dist/mobile/FcImage/index.d.ts +26 -0
- package/dist/mobile/FcImage/index.js +114 -0
- package/dist/mobile/FcImage/style.css +11 -0
- package/dist/mobile/FcUpload/index.d.ts +74 -0
- package/dist/mobile/FcUpload/index.js +539 -0
- package/dist/mobile/FcUpload/style.css +233 -0
- package/dist/mobile/index.d.ts +13 -0
- package/dist/mobile/index.js +9 -0
- package/package.json +70 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FcComponentConfigProps } from '../../context';
|
|
3
|
+
import type { FcFileInfo } from '../../types';
|
|
4
|
+
import './style.css';
|
|
5
|
+
export interface FcFileListProps extends FcComponentConfigProps {
|
|
6
|
+
/** 默认视图模式,默认 table */
|
|
7
|
+
defaultView?: 'table' | 'grid';
|
|
8
|
+
/** 是否显示视图切换按钮,默认 true */
|
|
9
|
+
showViewSwitch?: boolean;
|
|
10
|
+
/** 默认每页条数,默认 20 */
|
|
11
|
+
defaultPageSize?: number;
|
|
12
|
+
/** 业务标签筛选项(不传则不展示该筛选框) */
|
|
13
|
+
bizTypes?: Array<{
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}>;
|
|
17
|
+
/** 是否显示筛选栏,默认 true */
|
|
18
|
+
showFilters?: boolean;
|
|
19
|
+
/** 行操作删除成功回调 */
|
|
20
|
+
onDeleted?: (file: FcFileInfo) => void;
|
|
21
|
+
/** 行操作预览回调;不传则用内置预览(图片灯箱/视频/PDF/新窗口) */
|
|
22
|
+
onPreview?: (file: FcFileInfo) => void;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 文件中心文件列表组件(对应需求 3.2.3 核心页面)
|
|
28
|
+
*
|
|
29
|
+
* - 查询本项目文件(OPEN-7),支持名称模糊、业务标签、类型、时间范围筛选;
|
|
30
|
+
* - 表格 / 图片宫格两种视图切换;
|
|
31
|
+
* - 行操作:复制 URL、预览、下载、刷新签名(私有文件)、删除;
|
|
32
|
+
* - 删除时展示全部业务引用(OPEN-14),勾选确认后才能删除(OPEN-10)。
|
|
33
|
+
*
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <FcFileList bizTypes={[{ label: '商品图', value: 'goodsImage' }]} />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function FcFileList(props: FcFileListProps): React.JSX.Element;
|
|
39
|
+
export default FcFileList;
|