@flatbiz/antd 5.2.6 → 5.2.8
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/dist/content-CXmBn9B0.js +297 -0
- package/dist/content-CXmBn9B0.js.map +1 -0
- package/dist/content-DnpCk2LR.js +556 -0
- package/dist/content-DnpCk2LR.js.map +1 -0
- package/dist/{drag-DUY7Olcc.js → drag-D3i6_WRS.js} +2 -2
- package/dist/{drag-DUY7Olcc.js.map → drag-D3i6_WRS.js.map} +1 -1
- package/dist/drag-editable-table/index.css +1 -1
- package/dist/drag-editable-table/index.d.ts +3 -0
- package/dist/drag-editable-table/index.js +3 -4
- package/dist/editable-table/index.css +1 -1
- package/dist/editable-table/index.d.ts +3 -0
- package/dist/editable-table/index.js +2 -3
- package/dist/{editable-table-DYR12TJM.js → editable-table-BaKnBuHT.js} +2 -2
- package/dist/{editable-table-DYR12TJM.js.map → editable-table-BaKnBuHT.js.map} +1 -1
- package/dist/index.d.ts +46 -3
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor/index.css +1 -0
- package/dist/markdown-editor/index.d.ts +7 -2
- package/dist/markdown-editor/index.js +53 -2
- package/dist/markdown-editor/index.js.map +1 -1
- package/dist/pre-defined-class-name/index.css +1 -1
- package/dist/upload-multi-type/index.css +1 -0
- package/dist/upload-multi-type/index.d.ts +37 -0
- package/dist/upload-multi-type/index.js +44 -0
- package/dist/upload-multi-type/index.js.map +1 -0
- package/dist/upload-wrapper/index.css +1 -1
- package/dist/upload-wrapper/index.d.ts +4 -1
- package/dist/upload-wrapper/index.js +1 -2
- package/dist/{upload-wrapper-BovR_RV6.js → upload-wrapper-DmZglNR4.js} +29 -13
- package/dist/upload-wrapper-DmZglNR4.js.map +1 -0
- package/package.json +5 -1
- package/dist/content-DQTZHavT.js +0 -404
- package/dist/content-DQTZHavT.js.map +0 -1
- package/dist/upload-wrapper-BovR_RV6.js.map +0 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
import './../box-grid/index.css';
|
|
3
|
+
import './../fba-hooks/index.css';
|
|
4
|
+
import './../pre-defined-class-name/index.css';
|
|
2
5
|
import './index.css';
|
|
3
6
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
4
7
|
|
|
5
|
-
export { M as MarkdownEditor } from '../content-
|
|
8
|
+
export { M as MarkdownEditor } from '../content-DnpCk2LR.js';
|
|
6
9
|
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
7
10
|
import '@ant-design/icons/es/icons/CloseCircleFilled.js';
|
|
8
11
|
import 'react';
|
|
@@ -10,6 +13,54 @@ import 'antd';
|
|
|
10
13
|
import '@flatbiz/utils';
|
|
11
14
|
import '@dimjs/utils/class-names/class-names';
|
|
12
15
|
import 'ahooks';
|
|
13
|
-
import '
|
|
16
|
+
import '../card-layout-P-Qb5pCT.js';
|
|
17
|
+
import '@dimjs/lang/is-array';
|
|
18
|
+
import '@dimjs/utils/extend/extend';
|
|
19
|
+
import '../layout-2woF_D6T.js';
|
|
14
20
|
import 'react/jsx-runtime';
|
|
21
|
+
import '../code-Dbu2QlhZ.js';
|
|
22
|
+
import '../index-C6y8q2MK.js';
|
|
23
|
+
import '../_commonjsHelpers-a3yINl_6.js';
|
|
24
|
+
import '../dialog-modal-CGMNBSgq.js';
|
|
25
|
+
import '@dimjs/lang/is-string';
|
|
26
|
+
import '@dimjs/lang/is-promise';
|
|
27
|
+
import 'react-dom/client';
|
|
28
|
+
import '../button-wrapper-BGjkUPpk.js';
|
|
29
|
+
import '@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
30
|
+
import '../config-provider-wrapper-Bxh9JdL4.js';
|
|
31
|
+
import 'antd/es/locale/en_US.js';
|
|
32
|
+
import 'antd/es/locale/zh_CN.js';
|
|
33
|
+
import 'dayjs';
|
|
34
|
+
import 'dayjs/plugin/advancedFormat.js';
|
|
35
|
+
import 'dayjs/plugin/customParseFormat.js';
|
|
36
|
+
import 'dayjs/plugin/localeData.js';
|
|
37
|
+
import 'dayjs/plugin/utc.js';
|
|
38
|
+
import 'dayjs/plugin/weekday.js';
|
|
39
|
+
import 'dayjs/plugin/weekOfYear.js';
|
|
40
|
+
import 'dayjs/plugin/weekYear.js';
|
|
41
|
+
import '../fba-hooks/index.js';
|
|
42
|
+
import '../use-responsive-point-Bp3D3lZT.js';
|
|
43
|
+
import '../fba-utils-CusZeveq.js';
|
|
44
|
+
import 'dayjs/locale/en.js';
|
|
45
|
+
import 'dayjs/locale/zh-cn.js';
|
|
46
|
+
import '../flex-layout-BGtMe7zr.js';
|
|
47
|
+
import 'rehype-rewrite';
|
|
48
|
+
import '@dimjs/lang/is-object';
|
|
49
|
+
import '../alert-DGRFbqqK.js';
|
|
50
|
+
import '../form-ByFljQr9.js';
|
|
51
|
+
import '../box-grid/index.js';
|
|
52
|
+
import '@dimjs/lang/is-number';
|
|
53
|
+
import '../form-wrapper-DBDMN0mN.js';
|
|
54
|
+
import '../pre-defined-class-name/index.js';
|
|
55
|
+
import '../form-item-hidden-BtQvJEx7.js';
|
|
56
|
+
import '../form-item-wrapper-Ci7-5IKi.js';
|
|
57
|
+
import '../gap-5v_ndf2v.js';
|
|
58
|
+
import '../content-CXmBn9B0.js';
|
|
59
|
+
import '../preview-image-BGEPfC0y.js';
|
|
60
|
+
import '../upload-wrapper-DmZglNR4.js';
|
|
61
|
+
import '@ant-design/icons/es/icons/PlusOutlined.js';
|
|
62
|
+
import '@dimjs/lang/is-plain-object';
|
|
63
|
+
import 'react-dom';
|
|
64
|
+
import '@ant-design/icons/es/icons/DeleteOutlined.js';
|
|
65
|
+
import '@ant-design/icons/es/icons/EyeOutlined.js';
|
|
15
66
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item-label-70.ant-form-item .ant-form-item-label{min-width:70px}.form-item-label-80.ant-form-item .ant-form-item-label{min-width:80px}.form-item-label-90.ant-form-item .ant-form-item-label{min-width:90px}.form-item-label-100.ant-form-item .ant-form-item-label{min-width:100px}.form-item-label-110.ant-form-item .ant-form-item-label{min-width:110px}.form-item-label-120.ant-form-item .ant-form-item-label{min-width:120px}.form-item-label-130.ant-form-item .ant-form-item-label{min-width:130px}.form-item-label-140.ant-form-item .ant-form-item-label{min-width:140px}.form-item-label-150.ant-form-item .ant-form-item-label{min-width:150px}.form-item-label-160.ant-form-item .ant-form-item-label{min-width:160px}.form-item-label-170.ant-form-item .ant-form-item-label{min-width:170px}.form-item-label-180.ant-form-item .ant-form-item-label{min-width:180px}.form-item-label-190.ant-form-item .ant-form-item-label{min-width:190px}.form-item-label-200.ant-form-item .ant-form-item-label{min-width:200px}.form-item-label-auto.ant-form-item .ant-form-item-row{flex-direction:row!important}.form-item-label-auto.ant-form-item .ant-form-item-label{width:auto!important}.form-item-label-auto.ant-form-item .ant-form-item-control{flex:1}.form-item-label-align-left.ant-form-item .ant-form-item-label{text-align:left}.form-item-label-align-right.ant-form-item .ant-form-item-label{text-align:right}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row{flex-direction:column}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-label{text-align:left;width:100%}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-control{flex:initial}.form-label-70 .ant-form-item-label{min-width:70px}.form-label-80 .ant-form-item-label{min-width:80px}.form-label-90 .ant-form-item-label{min-width:90px}.form-label-100 .ant-form-item-label{min-width:100px}.form-label-110 .ant-form-item-label{min-width:110px}.form-label-120 .ant-form-item-label{min-width:120px}.form-label-130 .ant-form-item-label{min-width:130px}.form-label-140 .ant-form-item-label{min-width:140px}.form-label-150 .ant-form-item-label{min-width:150px}.form-label-160 .ant-form-item-label{min-width:160px}.form-label-170 .ant-form-item-label{min-width:170px}.form-label-180 .ant-form-item-label{min-width:180px}.form-label-190 .ant-form-item-label{min-width:190px}.form-label-200 .ant-form-item-label{min-width:200px}.form-label-auto .ant-form-item-label{min-width:auto}.form-label-align-left .ant-form-item-label{text-align:left}.form-label-align-right .ant-form-item-label{text-align:right}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-row{flex-direction:column}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-label{text-align:left;width:100%}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-control{flex:initial}.form-formitem-gap-24 .ant-form-item{margin-bottom:24px}.form-formitem-gap-15 .ant-form-item{margin-bottom:15px}.form-formitem-gap-8 .ant-form-item{margin-bottom:8px}.form-formitem-gap-5 .ant-form-item{margin-bottom:5px}.form-formitem-gap-0 .ant-form-item{margin-bottom:0}
|
|
1
|
+
.form-item-label-70.ant-form-item .ant-form-item-label{min-width:70px}.form-item-label-80.ant-form-item .ant-form-item-label{min-width:80px}.form-item-label-90.ant-form-item .ant-form-item-label{min-width:90px}.form-item-label-100.ant-form-item .ant-form-item-label{min-width:100px}.form-item-label-110.ant-form-item .ant-form-item-label{min-width:110px}.form-item-label-120.ant-form-item .ant-form-item-label{min-width:120px}.form-item-label-130.ant-form-item .ant-form-item-label{min-width:130px}.form-item-label-140.ant-form-item .ant-form-item-label{min-width:140px}.form-item-label-150.ant-form-item .ant-form-item-label{min-width:150px}.form-item-label-160.ant-form-item .ant-form-item-label{min-width:160px}.form-item-label-170.ant-form-item .ant-form-item-label{min-width:170px}.form-item-label-180.ant-form-item .ant-form-item-label{min-width:180px}.form-item-label-190.ant-form-item .ant-form-item-label{min-width:190px}.form-item-label-200.ant-form-item .ant-form-item-label{min-width:200px}.form-item-label-auto.ant-form-item .ant-form-item-row{flex-direction:row!important}.form-item-label-auto.ant-form-item .ant-form-item-label{min-width:auto!important;width:auto!important}.form-item-label-auto.ant-form-item .ant-form-item-control{flex:1}.form-item-label-align-left.ant-form-item .ant-form-item-label{text-align:left}.form-item-label-align-right.ant-form-item .ant-form-item-label{text-align:right}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row{flex-direction:column}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-label{text-align:left;width:100%}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-control{flex:initial}.form-label-70 .ant-form-item-label{min-width:70px}.form-label-80 .ant-form-item-label{min-width:80px}.form-label-90 .ant-form-item-label{min-width:90px}.form-label-100 .ant-form-item-label{min-width:100px}.form-label-110 .ant-form-item-label{min-width:110px}.form-label-120 .ant-form-item-label{min-width:120px}.form-label-130 .ant-form-item-label{min-width:130px}.form-label-140 .ant-form-item-label{min-width:140px}.form-label-150 .ant-form-item-label{min-width:150px}.form-label-160 .ant-form-item-label{min-width:160px}.form-label-170 .ant-form-item-label{min-width:170px}.form-label-180 .ant-form-item-label{min-width:180px}.form-label-190 .ant-form-item-label{min-width:190px}.form-label-200 .ant-form-item-label{min-width:200px}.form-label-auto .ant-form-item-label{min-width:auto}.form-label-align-left .ant-form-item-label{text-align:left}.form-label-align-right .ant-form-item-label{text-align:right}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-row{flex-direction:column}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-label{text-align:left;width:100%}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-control{flex:initial}.form-formitem-gap-24 .ant-form-item{margin-bottom:24px}.form-formitem-gap-15 .ant-form-item{margin-bottom:15px}.form-formitem-gap-8 .ant-form-item{margin-bottom:8px}.form-formitem-gap-5 .ant-form-item{margin-bottom:5px}.form-formitem-gap-0 .ant-form-item{margin-bottom:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.bw-center-loading{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.ant-btn.button-remove-gap{height:auto;line-height:normal;margin:0;min-height:auto;padding:0}.upload-image-paste-zone{align-items:center;border:1px dashed #d9d9d9;border-radius:6px;cursor:text;display:flex;justify-content:center;min-height:80px;outline:none;padding:16px;transition:border-color .2s}.upload-image-paste-zone:focus{border-color:#1677ff}.upload-image-paste-zone .upload-image-paste-tip{color:#8c8c8c;font-size:13px}.upload-image-paste-zone .upload-image-paste-tip.success{color:#52c41a}.upload-multi-type-file-list{background:#fafafa;border:1px solid #f0f0f0;border-radius:6px;list-style:none;margin:12px 0 0;padding:0}.upload-multi-type-file-list .upload-multi-type-file-item{align-items:center;border-bottom:1px solid #f0f0f0;display:flex;font-size:10px;justify-content:space-between;padding:3px 12px}.upload-multi-type-file-list .upload-multi-type-file-item:last-child{border-bottom:none}.upload-multi-type-file-list .upload-multi-type-file-name{color:rgba(0,0,0,.88);flex:1;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-multi-type-file-list .upload-multi-type-file-actions{align-items:center;display:flex;flex-shrink:0;gap:0;margin-left:8px}.upload-multi-type-file-list .upload-multi-type-action-btn{color:#8c8c8c;padding:4px}.upload-multi-type-file-list .upload-multi-type-action-btn:hover{color:#1677ff}.upload-multi-type-file-list .upload-multi-type-action-btn.upload-multi-type-action-btn-danger:hover{color:#ff4d4f}.upload-multi-type-file-name-image{color:#1677ff;cursor:pointer}.v-upload-multi-type{background:#e0e0e0;border-radius:6px;padding:10px}.v-upload-multi-type .v-upload-multi-type-inner{background:#fff;border-radius:6px;padding:0 15px 15px}.v-file-upload .ant-upload-span{cursor:pointer}.ant-upload-list-picture .v-upload-list-item-extra-actions .ant-btn-icon,.ant-upload-list-text .v-upload-list-item-extra-actions .ant-btn-icon{color:rgba(0,0,0,.45)}.ant-upload-list-picture .v-upload-list-item-extra-actions .ant-btn,.ant-upload-list-text .v-upload-list-item-extra-actions .ant-btn{height:20px;margin:0 0 0 5px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions,.ant-upload-list-text .v-upload-list-item-extra-actions{opacity:0;transition:opacity .3s}.ant-upload-list-picture-card .ant-upload-list-item:hover .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .ant-upload-list-item:hover .v-upload-list-item-extra-actions,.ant-upload-list-text .ant-upload-list-item:hover .v-upload-list-item-extra-actions{opacity:1}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .ant-upload-list-item-actions{inset-inline-start:auto!important;width:auto!important}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions{position:absolute;z-index:10}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions .ant-btn-icon,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions .ant-btn-icon{color:#fff}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-1 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-1 .ant-upload-list-item-actions{right:38px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-1 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-1 .v-upload-list-item-extra-actions{right:15px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .ant-upload-list-item-actions{left:15px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions{right:8px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions .ant-btn,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions .ant-btn{width:20px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-1 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-1 .ant-upload-list-item-actions{right:47px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-1 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-1 .v-upload-list-item-extra-actions{right:20px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-2 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-2 .ant-upload-list-item-actions{right:60px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-2 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-2 .v-upload-list-item-extra-actions{right:14px}.v-upload-dragger .ant-upload-drag{align-items:center;display:flex;min-height:80px}.v-upload-dragger .v-upload-dragger-content{align-items:center;color:#8c8c8c;display:flex;flex-direction:column;font-size:13px;justify-content:center}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type UploadMultiTypeFileItem = {
|
|
2
|
+
name?: string;
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type UploadMultiTypeProps = {
|
|
6
|
+
value?: string[] | UploadMultiTypeFileItem[];
|
|
7
|
+
onChange?: (v: any) => void;
|
|
8
|
+
/** 上传文件 */
|
|
9
|
+
onUploadFile: (file: File) => Promise<UploadMultiTypeFileItem>;
|
|
10
|
+
/** 最大上传数量 */
|
|
11
|
+
maxCount?: number;
|
|
12
|
+
/** 上传文件类型,例如:image/*, video/*, audio/* */
|
|
13
|
+
accept?: string;
|
|
14
|
+
/** 只上传图片,默认:false;设置accept时,此配置无效 */
|
|
15
|
+
onlyUploadImage?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 上传组件,同时支持多种上传方式,支持【点击&拖拽上传】、【粘贴上传】
|
|
20
|
+
* ```
|
|
21
|
+
* @example
|
|
22
|
+
* const onUploadFile = useMemoizedFn(async (file: File) => {
|
|
23
|
+
* const formData = new FormData();
|
|
24
|
+
* formData.append('file', file);
|
|
25
|
+
* const respData = await serviceHandle.upload<{
|
|
26
|
+
* url: string;
|
|
27
|
+
* name?: string;
|
|
28
|
+
* }>('https://pubtest.hnapay.com/api/file/upload', formData);
|
|
29
|
+
* return respData;
|
|
30
|
+
* });
|
|
31
|
+
*
|
|
32
|
+
* <UploadMultiType onUploadFile={onUploadFile} maxCount={1} />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const UploadMultiType: (props: UploadMultiTypeProps) => import("react").JSX.Element | null;
|
|
36
|
+
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import './../fba-hooks/index.css';
|
|
3
|
+
import './index.css';
|
|
4
|
+
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
5
|
+
|
|
6
|
+
export { U as UploadMultiType } from '../content-CXmBn9B0.js';
|
|
7
|
+
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import 'ahooks';
|
|
10
|
+
import 'antd';
|
|
11
|
+
import '../preview-image-BGEPfC0y.js';
|
|
12
|
+
import '@dimjs/lang/is-string';
|
|
13
|
+
import 'react-dom/client';
|
|
14
|
+
import '@flatbiz/utils';
|
|
15
|
+
import '../fba-hooks/index.js';
|
|
16
|
+
import '../use-responsive-point-Bp3D3lZT.js';
|
|
17
|
+
import 'react/jsx-runtime';
|
|
18
|
+
import '../upload-wrapper-DmZglNR4.js';
|
|
19
|
+
import '@ant-design/icons/es/icons/PlusOutlined.js';
|
|
20
|
+
import '@dimjs/utils/class-names/class-names';
|
|
21
|
+
import '@dimjs/lang/is-plain-object';
|
|
22
|
+
import '@dimjs/utils/extend/extend';
|
|
23
|
+
import 'react-dom';
|
|
24
|
+
import '../button-wrapper-BGjkUPpk.js';
|
|
25
|
+
import '@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
26
|
+
import '@dimjs/lang/is-promise';
|
|
27
|
+
import '../config-provider-wrapper-Bxh9JdL4.js';
|
|
28
|
+
import 'antd/es/locale/en_US.js';
|
|
29
|
+
import 'antd/es/locale/zh_CN.js';
|
|
30
|
+
import 'dayjs';
|
|
31
|
+
import 'dayjs/plugin/advancedFormat.js';
|
|
32
|
+
import 'dayjs/plugin/customParseFormat.js';
|
|
33
|
+
import 'dayjs/plugin/localeData.js';
|
|
34
|
+
import 'dayjs/plugin/utc.js';
|
|
35
|
+
import 'dayjs/plugin/weekday.js';
|
|
36
|
+
import 'dayjs/plugin/weekOfYear.js';
|
|
37
|
+
import 'dayjs/plugin/weekYear.js';
|
|
38
|
+
import '../fba-utils-CusZeveq.js';
|
|
39
|
+
import '@dimjs/lang/is-array';
|
|
40
|
+
import 'dayjs/locale/en.js';
|
|
41
|
+
import 'dayjs/locale/zh-cn.js';
|
|
42
|
+
import '@ant-design/icons/es/icons/DeleteOutlined.js';
|
|
43
|
+
import '@ant-design/icons/es/icons/EyeOutlined.js';
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-file-upload .ant-upload-span{cursor:pointer}.ant-upload-list-picture .v-upload-list-item-extra-actions .ant-btn-icon,.ant-upload-list-text .v-upload-list-item-extra-actions .ant-btn-icon{color:rgba(0,0,0,.45)}.ant-upload-list-picture .v-upload-list-item-extra-actions .ant-btn,.ant-upload-list-text .v-upload-list-item-extra-actions .ant-btn{height:20px;margin:0 0 0 5px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions,.ant-upload-list-text .v-upload-list-item-extra-actions{opacity:0;transition:opacity .3s}.ant-upload-list-picture-card .ant-upload-list-item:hover .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .ant-upload-list-item:hover .v-upload-list-item-extra-actions,.ant-upload-list-text .ant-upload-list-item:hover .v-upload-list-item-extra-actions{opacity:1}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .ant-upload-list-item-actions{inset-inline-start:auto!important;width:auto!important}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions{position:absolute;z-index:10}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions .ant-btn-icon,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions .ant-btn-icon{color:#fff}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-1 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-1 .ant-upload-list-item-actions{right:38px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-1 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-1 .v-upload-list-item-extra-actions{right:15px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .ant-upload-list-item-actions{left:15px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions{right:8px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions .ant-btn,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions .ant-btn{width:20px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-1 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-1 .ant-upload-list-item-actions{right:47px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-1 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-1 .v-upload-list-item-extra-actions{right:20px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-2 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-2 .ant-upload-list-item-actions{right:60px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-2 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-2 .v-upload-list-item-extra-actions{right:14px}
|
|
1
|
+
.bw-center-loading{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.ant-btn.button-remove-gap{height:auto;line-height:normal;margin:0;min-height:auto;padding:0}.v-file-upload .ant-upload-span{cursor:pointer}.ant-upload-list-picture .v-upload-list-item-extra-actions .ant-btn-icon,.ant-upload-list-text .v-upload-list-item-extra-actions .ant-btn-icon{color:rgba(0,0,0,.45)}.ant-upload-list-picture .v-upload-list-item-extra-actions .ant-btn,.ant-upload-list-text .v-upload-list-item-extra-actions .ant-btn{height:20px;margin:0 0 0 5px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions,.ant-upload-list-text .v-upload-list-item-extra-actions{opacity:0;transition:opacity .3s}.ant-upload-list-picture-card .ant-upload-list-item:hover .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .ant-upload-list-item:hover .v-upload-list-item-extra-actions,.ant-upload-list-text .ant-upload-list-item:hover .v-upload-list-item-extra-actions{opacity:1}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .ant-upload-list-item-actions{inset-inline-start:auto!important;width:auto!important}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions{position:absolute;z-index:10}.ant-upload-list-picture-card .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions .ant-btn-icon,.ant-upload-list-picture-circle .v-upload-list-item-actions-wrapper .v-upload-list-item-extra-actions .ant-btn-icon{color:#fff}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-1 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-1 .ant-upload-list-item-actions{right:38px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-1 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-1 .v-upload-list-item-extra-actions{right:15px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .ant-upload-list-item-actions{left:15px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions{right:8px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions .ant-btn,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-2-2 .v-upload-list-item-extra-actions .ant-btn{width:20px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-1 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-1 .ant-upload-list-item-actions{right:47px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-1 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-1 .v-upload-list-item-extra-actions{right:20px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-2 .ant-upload-list-item-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-2 .ant-upload-list-item-actions{right:60px}.ant-upload-list-picture-card .v-upload-list-item-extra-actions-1-2 .v-upload-list-item-extra-actions,.ant-upload-list-picture-circle .v-upload-list-item-extra-actions-1-2 .v-upload-list-item-extra-actions{right:14px}.v-upload-dragger .ant-upload-drag{align-items:center;display:flex;min-height:80px}.v-upload-dragger .v-upload-dragger-content{align-items:center;color:#8c8c8c;display:flex;flex-direction:column;font-size:13px;justify-content:center}
|
|
@@ -35,6 +35,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
35
35
|
* 自动提交,默认:true
|
|
36
36
|
* ```
|
|
37
37
|
* 1. 自定义beforeUpload配置后 autoSubmit 失效
|
|
38
|
+
* 2. 设置为 false 时,在onChange中获取File对象数组
|
|
38
39
|
* ```
|
|
39
40
|
*/
|
|
40
41
|
autoSubmit?: boolean;
|
|
@@ -52,9 +53,11 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
52
53
|
icon: ReactElement;
|
|
53
54
|
onClick: (file: UploadFile, fileList: UploadFile[], e: any) => void;
|
|
54
55
|
}[];
|
|
56
|
+
/** 是否使用拖拽上传 */
|
|
57
|
+
isDragger?: boolean;
|
|
55
58
|
} & Omit<UploadProps, "onChange" | "fileList">;
|
|
56
59
|
/**
|
|
57
|
-
*
|
|
60
|
+
* 文件上传,支持拖拽上传
|
|
58
61
|
* ```
|
|
59
62
|
* demo: https://fex.qa.tcshuke.com/docs/admin/main/file/upload
|
|
60
63
|
* 1. 可通过配置children替换默认上传触发布局
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import './../button-wrapper/index.css';
|
|
3
2
|
import './../fba-hooks/index.css';
|
|
4
3
|
import './index.css';
|
|
5
4
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
6
5
|
|
|
7
|
-
export { U as UploadWrapper } from '../upload-wrapper-
|
|
6
|
+
export { U as UploadWrapper } from '../upload-wrapper-DmZglNR4.js';
|
|
8
7
|
import '@ant-design/icons/es/icons/PlusOutlined.js';
|
|
9
8
|
import '@dimjs/utils/class-names/class-names';
|
|
10
9
|
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
@@ -12,7 +12,7 @@ import { message, Upload, Image, Button } from 'antd';
|
|
|
12
12
|
import { isUndefinedOrNull, toArray, openNewWindow } from '@flatbiz/utils';
|
|
13
13
|
import { B as ButtonWrapper } from './button-wrapper-BGjkUPpk.js';
|
|
14
14
|
import { fbaHooks } from './fba-hooks/index.js';
|
|
15
|
-
import {
|
|
15
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
var getBase64 = function getBase64(file) {
|
|
18
18
|
return new Promise(function (resolve, reject) {
|
|
@@ -29,7 +29,7 @@ var getBase64 = function getBase64(file) {
|
|
|
29
29
|
|
|
30
30
|
var _excluded = ["onChange", "onUploadError", "value", "triggerText", "limitHidden", "autoSubmit", "imagePreviewSwitch", "imagePreviewAccept", "extraOperate"];
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* 文件上传,支持拖拽上传
|
|
33
33
|
* ```
|
|
34
34
|
* demo: https://fex.qa.tcshuke.com/docs/admin/main/file/upload
|
|
35
35
|
* 1. 可通过配置children替换默认上传触发布局
|
|
@@ -272,8 +272,31 @@ var UploadWrapper = function UploadWrapper(props) {
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
|
+
var UploadComponent = props.isDragger ? Upload.Dragger : Upload;
|
|
276
|
+
var UploadComponentChildren = useMemo(function () {
|
|
277
|
+
if (props.children) return props.children;
|
|
278
|
+
if (otherProps.disabled || hiddenEmtry) {
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
if (props.isDragger) {
|
|
282
|
+
return /*#__PURE__*/jsx("div", {
|
|
283
|
+
className: "v-upload-dragger-content",
|
|
284
|
+
children: /*#__PURE__*/jsx("p", {
|
|
285
|
+
className: "v-upload-dragger-hint",
|
|
286
|
+
children: "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"
|
|
287
|
+
})
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
return /*#__PURE__*/jsx(UploadTrigger, {
|
|
291
|
+
triggerText: triggerText,
|
|
292
|
+
listType: otherProps.listType
|
|
293
|
+
});
|
|
294
|
+
}, [props.children, props.isDragger, otherProps.disabled, otherProps.listType, hiddenEmtry, triggerText]);
|
|
295
|
+
var className = classNames('v-upload-wrapper', otherProps.className, {
|
|
296
|
+
'v-upload-dragger': props.isDragger
|
|
297
|
+
});
|
|
275
298
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
276
|
-
children: [/*#__PURE__*/jsx(
|
|
299
|
+
children: [/*#__PURE__*/jsx(UploadComponent, _objectSpread2(_objectSpread2({
|
|
277
300
|
beforeUpload: beforeUpload,
|
|
278
301
|
onPreview: imagePreviewSwitch ? handlePreview : undefined,
|
|
279
302
|
showUploadList: true,
|
|
@@ -303,12 +326,8 @@ var UploadWrapper = function UploadWrapper(props) {
|
|
|
303
326
|
}, otherProps), {}, {
|
|
304
327
|
onChange: onUploadChange,
|
|
305
328
|
fileList: uploadList,
|
|
306
|
-
className:
|
|
307
|
-
children:
|
|
308
|
-
triggerText: triggerText,
|
|
309
|
-
listType: otherProps.listType,
|
|
310
|
-
children: props.children
|
|
311
|
-
})
|
|
329
|
+
className: className,
|
|
330
|
+
children: UploadComponentChildren
|
|
312
331
|
})), previewImage ? /*#__PURE__*/jsx(Image, {
|
|
313
332
|
wrapperStyle: {
|
|
314
333
|
display: 'none'
|
|
@@ -327,9 +346,6 @@ var UploadWrapper = function UploadWrapper(props) {
|
|
|
327
346
|
});
|
|
328
347
|
};
|
|
329
348
|
var UploadTrigger = function UploadTrigger(props) {
|
|
330
|
-
if (props.children) return /*#__PURE__*/jsx(Fragment, {
|
|
331
|
-
children: props.children
|
|
332
|
-
});
|
|
333
349
|
if (props.listType === 'picture-card') {
|
|
334
350
|
return /*#__PURE__*/jsxs("div", {
|
|
335
351
|
children: [/*#__PURE__*/jsx(_PlusOutlined, {}), /*#__PURE__*/jsx("div", {
|
|
@@ -355,4 +371,4 @@ var UploadTrigger = function UploadTrigger(props) {
|
|
|
355
371
|
};
|
|
356
372
|
|
|
357
373
|
export { UploadWrapper as U };
|
|
358
|
-
//# sourceMappingURL=upload-wrapper-
|
|
374
|
+
//# sourceMappingURL=upload-wrapper-DmZglNR4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-wrapper-DmZglNR4.js","sources":["@flatbiz/antd/src/upload-wrapper/utils.ts","@flatbiz/antd/src/upload-wrapper/upload-wrapper.tsx"],"sourcesContent":["export const getBase64 = (file): Promise<string> =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result as string);\n reader.onerror = (error) => reject(error);\n });\n","import type { ReactElement } from 'react';\nimport { cloneElement, Fragment, useMemo, useState } from 'react';\nimport { flushSync } from 'react-dom';\nimport { useMemoizedFn } from 'ahooks';\nimport type { UploadFile, UploadProps } from 'antd';\nimport { Button, Image, message, Upload } from 'antd';\nimport type { UploadChangeParam } from 'antd/lib/upload/index.js';\nimport type { UploadListType } from 'antd/lib/upload/interface.js';\nimport { PlusOutlined } from '@ant-design/icons';\nimport { isPlainObject } from '@dimjs/lang';\nimport { classNames, extend } from '@dimjs/utils';\nimport type { TAny, TPlainObject } from '@flatbiz/utils';\nimport { isUndefinedOrNull, openNewWindow, toArray } from '@flatbiz/utils';\nimport { ButtonWrapper } from '../button-wrapper/button-wrapper.jsx';\nimport { fbaHooks } from '../fba-hooks/index.js';\nimport { getBase64 } from './utils.js';\nimport './style.less';\n\nexport type UploadWrapperFileItem = {\n uid: string;\n name: string;\n url?: string;\n};\n\nexport type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {\n value?: T[] | T;\n onChange?: (value?: T[]) => void;\n onUploadError?: (message?: string) => void;\n onUploadChange?: (info: UploadChangeParam<UploadFile>) => void;\n /**\n * 属性取值映射\n */\n fieldNames?: {\n uid: string;\n name?: string;\n url?: string;\n /** 文件大小 */\n size?: string | number;\n };\n /**\n * 接口响应数据适配器,如果配置了fieldNames,适配器返回值会再进过fieldNames转换\n */\n onRequestResultAdapter?: (respData: TAny) => TPlainObject;\n /** 操作触发显示文本 */\n triggerText?: string;\n /** 超过maxCount 隐藏上传入口 */\n limitHidden?: boolean;\n /**\n * 自动提交,默认:true\n * ```\n * 1. 自定义beforeUpload配置后 autoSubmit 失效\n * 2. 设置为 false 时,在onChange中获取File对象数组\n * ```\n */\n autoSubmit?: boolean;\n /** 图片预览开关, 重写 onPreview 方法后失效 */\n imagePreviewSwitch?: boolean;\n /** 图片预览文件类型,默认:['png', 'jpg', 'jpeg', 'gif', 'heic', 'heif'] */\n imagePreviewAccept?: string[];\n /**\n * 配置文件额外操作\n * ```\n * 额外操作超过两项后,listType为 picture-card、picture-circle 时会出现显示异常,需要自行修改覆盖样式\n * ```\n */\n extraOperate?: {\n icon: ReactElement;\n onClick: (file: UploadFile, fileList: UploadFile[], e) => void;\n }[];\n /** 是否使用拖拽上传 */\n isDragger?: boolean;\n} & Omit<UploadProps, 'onChange' | 'fileList'>;\n\n/**\n * 文件上传,支持拖拽上传\n * ```\n * demo: https://fex.qa.tcshuke.com/docs/admin/main/file/upload\n * 1. 可通过配置children替换默认上传触发布局\n * 2. 接口返回结构:\n * formData上传接口返回值\n * {\n * code: '0000',\n * data: {\n * uid: '唯一值,可使用fileKey值'\n * name: '文件名称'\n * url: '预览地址'\n * }\n * }\n * 3. 如果接口返回的不是上面的字段名称,可通过fieldNames配置接口返回字段名称映射\n *\n * 4. 最佳使用方式,与Form结合使用\n * <Form.Item name=\"attachmentList\" label=\"附件\">\n * <UploadWrapper action={uploadUrl} />\n * </Form.Item>\n *\n * 5. 回填数据结构\n * [{\n * uid: '唯一值',\n * name(非必填): 'image.png',\n * url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',\n * }]\n * 1. 其中 uid、name、url 可为其他命名,通过 fieldNames 进行映射即可,\n * 2. 其他需要的字段可在对象中添加 responseData 对象\n * 例如:\n * [{\n * uid: '唯一值',\n * name(非必填): 'image.png',\n * url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',\n * responseData: { 'xx':'xxx' }\n * }]\n * ```\n *\n */\nexport const UploadWrapper = (props: UploadWrapperProps) => {\n const {\n onChange,\n onUploadError,\n value,\n triggerText,\n limitHidden,\n autoSubmit,\n imagePreviewSwitch,\n imagePreviewAccept,\n extraOperate,\n ...otherProps\n } = props;\n const imagePreviewAcceptFt = isUndefinedOrNull(imagePreviewAccept)\n ? ['png', 'jpg', 'jpeg', 'gif', 'heic', 'heif']\n : imagePreviewAccept;\n const [previewImage, setPreviewImage] = useState<string>();\n const [uploadList, setUploadList] = useState<UploadWrapperFileItem[]>();\n const fieldNames = extend(\n {\n uid: 'uid',\n name: 'name',\n url: 'url',\n size: 'size',\n },\n props.fieldNames\n );\n\n const valueList = useMemo(\n () => (isUndefinedOrNull(value) ? undefined : toArray<TPlainObject>(value)),\n [value]\n );\n\n fbaHooks.useEffectCustom(() => {\n const errorList =\n uploadList?.filter((item) => item['status'] === 'error') || [];\n let newList = [] as TAny[];\n valueList?.forEach((item) => {\n // 判断item 为 File类型\n if (item['lastModified']) {\n newList.push(item);\n } else {\n newList.push({\n uid: item[fieldNames.uid],\n name: item[fieldNames.name],\n url: item[fieldNames.url],\n size: item[fieldNames.size],\n responseData: item['responseData'],\n status: 'done',\n isOriginal: true,\n });\n }\n });\n if (errorList.length > 0) {\n const newErrorList = errorList.map((item) => {\n return {\n uid: item.uid,\n name: item.name,\n status: 'error',\n isOriginal: true,\n response: item['response'],\n };\n }) as TAny[];\n newList = newList.concat(newErrorList);\n }\n setUploadList(newList);\n }, [fieldNames.name, fieldNames.uid, fieldNames.url, valueList]);\n\n const handleResponse = (fileList: UploadFile<TAny>[]) => {\n const newFileList: TAny[] = [];\n let hasError = false;\n fileList.forEach((item) => {\n if (item['isOriginal']) {\n if (item['status'] !== 'error') {\n const target: TPlainObject = {\n [fieldNames.uid]: item.uid,\n [fieldNames.name]: item.name,\n [fieldNames.url]: item.url,\n };\n if (!isUndefinedOrNull(item.size)) {\n target[fieldNames.size] = item.size;\n }\n if (item['responseData']) {\n target.responseData = item['responseData'];\n }\n newFileList.push(target);\n }\n } else if (isPlainObject(item.response)) {\n if (item.response.code === '0000') {\n const respData = item.response.data;\n const result = (props.onRequestResultAdapter?.(respData) ||\n respData) as TPlainObject;\n const target: TPlainObject = {\n [fieldNames.uid]: result[fieldNames.uid] || item.uid,\n [fieldNames.name]: result[fieldNames.name] || item.name,\n [fieldNames.url]: result[fieldNames.url],\n };\n if (!isUndefinedOrNull(result[fieldNames.size])) {\n target[fieldNames.size] = result[fieldNames.size];\n }\n newFileList.push({\n ...target,\n responseData: respData,\n });\n } else {\n const errorMsg = item.response.message || '上传失败';\n hasError = true;\n item.status = 'error';\n item.response = item.response.message || '上传失败';\n if (onUploadError) {\n onUploadError?.(errorMsg);\n } else {\n void message.error('上传操作失败...');\n }\n }\n }\n });\n if (hasError) {\n setUploadList([...fileList] as UploadWrapperFileItem[]);\n }\n onChange?.(newFileList);\n };\n\n const onUploadChange = useMemoizedFn((info) => {\n const fileList = info.fileList as TPlainObject[];\n if (info.file.status === 'done') {\n const newFileList = [...info.fileList];\n const donwList = newFileList.filter(\n (item) => item.status === 'done' || item['isOriginal']\n );\n\n const allDone = donwList.length === newFileList.length;\n if (allDone) {\n handleResponse(newFileList);\n }\n flushSync(() => setUploadList(newFileList));\n return;\n } else if (info.file.status === 'removed') {\n const uid = info.file.uid;\n const targetList = valueList !== undefined ? [...valueList] : [];\n const targetIndex = targetList.findIndex((item) => {\n const tempUid = item[fieldNames.uid] || item.uid;\n return tempUid === uid;\n });\n if (targetIndex >= 0) {\n targetList.splice(targetIndex, 1);\n }\n onChange?.(targetList);\n } else if (info.file.status === 'error') {\n if (onUploadError) {\n onUploadError();\n } else {\n void message.error('上传操作失败...');\n }\n }\n // https://github.com/ant-design/ant-design/issues/2423\n setUploadList([...fileList] as UploadWrapperFileItem[]);\n props.onUploadChange?.(info);\n });\n\n const hiddenEmtry = useMemo(() => {\n if (otherProps.maxCount === undefined || !limitHidden) return false;\n if (otherProps.maxCount === 0) return true;\n if (uploadList && uploadList.length >= otherProps.maxCount) return true;\n return false;\n }, [limitHidden, otherProps.maxCount, uploadList]);\n\n const beforeUpload = (_file, fileList) => {\n if (autoSubmit === false) {\n const maxCount = otherProps.maxCount;\n let mergeList = [...(valueList || []), ...fileList];\n let uploadListMerge = [...(uploadList || []), ...fileList];\n if (maxCount !== undefined && maxCount !== null) {\n if (mergeList.length > maxCount) {\n mergeList = mergeList.slice(mergeList.length - maxCount);\n uploadListMerge = uploadListMerge.slice(\n uploadListMerge.length - maxCount\n );\n }\n }\n setUploadList(uploadListMerge);\n props.onChange?.(mergeList);\n return false;\n }\n return true;\n };\n\n const handlePreview = async (file: UploadFile) => {\n const name = (file.name || '') as string;\n const extension = name.slice(name.lastIndexOf('.') + 1);\n const acceptTarget = imagePreviewAcceptFt?.find((item) => {\n return item.toLocaleLowerCase() === extension.toLocaleLowerCase();\n });\n if (acceptTarget) {\n if (!file.url && !file.preview) {\n file.preview = await getBase64(file.originFileObj);\n }\n setPreviewImage(file.url || (file.preview as string));\n } else {\n openNewWindow(file.url as string);\n }\n };\n\n const UploadComponent = props.isDragger ? Upload.Dragger : Upload;\n\n const UploadComponentChildren = useMemo(() => {\n if (props.children) return props.children;\n if (otherProps.disabled || hiddenEmtry) {\n return null;\n }\n if (props.isDragger) {\n return (\n <div className=\"v-upload-dragger-content\">\n {/* <span className=\"v-upload-dragger-icon\">\n <InboxOutlined />\n </span> */}\n <p className=\"v-upload-dragger-hint\">点击或拖拽文件到此区域上传</p>\n </div>\n );\n }\n return (\n <UploadTrigger\n triggerText={triggerText}\n listType={otherProps.listType}\n ></UploadTrigger>\n );\n }, [\n props.children,\n props.isDragger,\n otherProps.disabled,\n otherProps.listType,\n hiddenEmtry,\n triggerText,\n ]);\n\n const className = classNames('v-upload-wrapper', otherProps.className, {\n 'v-upload-dragger': props.isDragger,\n });\n\n return (\n <Fragment>\n <UploadComponent\n beforeUpload={beforeUpload}\n onPreview={imagePreviewSwitch ? handlePreview : undefined}\n showUploadList\n itemRender={(originNode, file, fileList) => {\n if (!extraOperate || !extraOperate.length) return originNode;\n const countSign = `${otherProps.disabled ? 1 : 2}-${extraOperate.length}`;\n return (\n <div\n className={classNames(\n 'v-upload-list-item-actions-wrapper',\n `v-upload-list-item-extra-actions-${countSign}`\n )}\n style={{ height: '100%' }}\n >\n {cloneElement(originNode, {\n children: [\n originNode.props.children,\n <div\n key=\"extra-actions\"\n className=\"v-upload-list-item-extra-actions\"\n >\n {extraOperate.map((item, index) => {\n return (\n <ButtonWrapper\n key={index}\n size=\"small\"\n type=\"text\"\n icon={item.icon}\n onClick={item.onClick.bind(null, file, fileList)}\n />\n );\n })}\n </div>,\n ].filter(Boolean),\n })}\n </div>\n );\n }}\n {...otherProps}\n onChange={onUploadChange}\n fileList={uploadList}\n className={className}\n >\n {UploadComponentChildren}\n </UploadComponent>\n {previewImage ? (\n <Image\n wrapperStyle={{ display: 'none' }}\n preview={{\n visible: !!previewImage,\n onVisibleChange: () => setPreviewImage(undefined),\n afterOpenChange: (visible) => !visible && setPreviewImage(''),\n }}\n src={previewImage}\n />\n ) : null}\n </Fragment>\n );\n};\n\nconst UploadTrigger = (props: {\n listType?: UploadListType;\n triggerText?: string;\n}) => {\n if (props.listType === 'picture-card') {\n return (\n <div>\n <PlusOutlined />\n <div style={{ marginTop: 8 }}>{props.triggerText || '上传图片'}</div>\n </div>\n );\n }\n if (props.listType === 'picture') {\n return (\n <Button type=\"primary\" ghost>\n {props.triggerText || '选择图片上传'}\n </Button>\n );\n }\n return (\n <Button type=\"primary\" ghost>\n {props.triggerText || '选择文件上传'}\n </Button>\n );\n};\n"],"names":["getBase64","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","result","onerror","error","UploadWrapper","props","onChange","onUploadError","value","triggerText","limitHidden","autoSubmit","imagePreviewSwitch","imagePreviewAccept","extraOperate","otherProps","_objectWithoutProperties","_excluded","imagePreviewAcceptFt","isUndefinedOrNull","_useState","useState","_useState2","_slicedToArray","previewImage","setPreviewImage","_useState3","_useState4","uploadList","setUploadList","fieldNames","_extend","uid","name","url","size","valueList","useMemo","undefined","toArray","fbaHooks","useEffectCustom","errorList","filter","item","newList","forEach","push","responseData","status","isOriginal","length","newErrorList","map","response","concat","handleResponse","fileList","newFileList","hasError","target","_defineProperty","_isPlainObject","code","_props$onRequestResul","respData","data","onRequestResultAdapter","call","_objectSpread","errorMsg","message","_toConsumableArray","onUploadChange","useMemoizedFn","info","_props$onUploadChange","donwList","allDone","flushSync","targetList","targetIndex","findIndex","tempUid","splice","hiddenEmtry","maxCount","beforeUpload","_file","_props$onChange","mergeList","uploadListMerge","slice","handlePreview","$return","$error","extension","acceptTarget","lastIndexOf","find","toLocaleLowerCase","preview","originFileObj","then","$await_3","$If_2","$boundEx","bind","$If_1","openNewWindow","UploadComponent","isDragger","Upload","Dragger","UploadComponentChildren","children","disabled","_jsx","className","UploadTrigger","listType","_classNames","_jsxs","Fragment","onPreview","showUploadList","itemRender","originNode","countSign","style","height","cloneElement","index","ButtonWrapper","type","icon","onClick","Boolean","Image","wrapperStyle","display","visible","onVisibleChange","afterOpenChange","src","_PlusOutlined","marginTop","Button","ghost"],"mappings":";;;;;;;;;;;;;;;;AAAO,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAAI,EAAA;AAAA,EAAA,OAC5B,IAAIC,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;AAC/B,IAAA,IAAMC,MAAM,GAAG,I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AM,CAAC;AAAA,KAC9D,CAAC;AAEV,EAAA;AACA,EAAA,IAAIJ,KAAK,CAACmH,QAAQ,KAAK,SAAS,EAAE;IAChC,oBACEH,GAAA,CAAC8B,MAAM,EAAA;AAACb,MAAAA,IAAI,EAAC,SAAS;MAACc,KAAK,EAAA,IAAA;AAAAjC,MAAAA,QAAA,EACzB9G,KAAK,CAACI,WAAW,IAAI;AAAQ,KACxB,CAAC;AAEb,EAAA;EACA,oBACE4G,GAAA,CAAC8B,MAAM,EAAA;AAACb,IAAAA,IAAI,EAAC,SAAS;IAACc,KAAK,EAAA,IAAA;AAAAjC,IAAAA,QAAA,EACzB9G,KAAK,CAACI,WAAW,IAAI;AAAQ,GACxB,CAAC;AAEb,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.8",
|
|
4
4
|
"homepage": "https://gitlab.itcjf.com/flatjs/flat-biz/packages/antd",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -534,6 +534,10 @@
|
|
|
534
534
|
"types": "./dist/upload-wrapper/index.d.ts",
|
|
535
535
|
"import": "./dist/upload-wrapper/index.js"
|
|
536
536
|
},
|
|
537
|
+
"./upload-multi-type": {
|
|
538
|
+
"types": "./dist/upload-multi-type/index.d.ts",
|
|
539
|
+
"import": "./dist/upload-multi-type/index.js"
|
|
540
|
+
},
|
|
537
541
|
"./x-mind-preview": {
|
|
538
542
|
"types": "./dist/x-mind-preview/index.d.ts",
|
|
539
543
|
"import": "./dist/x-mind-preview/index.js"
|