@cloudbase/weda-ui 3.6.8 → 3.6.9
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.
|
@@ -1373,10 +1373,8 @@ export const FORM_ITEM_DATA = {
|
|
|
1373
1373
|
type: 'number',
|
|
1374
1374
|
title: '单个文件最大限制(M)',
|
|
1375
1375
|
'x-runtime-default': X_RUNTIME_DEFAULT.maxSize,
|
|
1376
|
-
maximum: 500,
|
|
1377
1376
|
'x-index': 103,
|
|
1378
1377
|
'x-category': X_CATEGORY.VERIFY,
|
|
1379
|
-
description: '最大支持500M',
|
|
1380
1378
|
}),
|
|
1381
1379
|
single: Type.Boolean({
|
|
1382
1380
|
type: 'boolean',
|
|
@@ -49,7 +49,7 @@ events = emptyObject, defaultValue, uploadPath = 'weda-uploader', single = true,
|
|
|
49
49
|
// 两次默认值不同, 需要刷新
|
|
50
50
|
const prevDefaultRef = React.useRef([]);
|
|
51
51
|
const fileRef = React.useRef(fileIDList);
|
|
52
|
-
const maxSizeLimit = maxSize
|
|
52
|
+
const maxSizeLimit = maxSize;
|
|
53
53
|
const formType = ((_a = getParentForm($node)) === null || _a === void 0 ? void 0 : _a.formType) || 'create';
|
|
54
54
|
const changeTypeRef = React.useRef('');
|
|
55
55
|
React.useEffect(() => {
|
|
@@ -51,7 +51,7 @@ acceptTypes = emptyArray, downloadVisible = true, deleteVisible = true, uploadPa
|
|
|
51
51
|
// 两次默认值不同, 需要刷新
|
|
52
52
|
const prevDefaultRef = React.useRef([]);
|
|
53
53
|
const fileRef = React.useRef(fileIDList);
|
|
54
|
-
const maxSizeLimit = maxSize
|
|
54
|
+
const maxSizeLimit = maxSize;
|
|
55
55
|
const formType = ((_a = getParentForm($node)) === null || _a === void 0 ? void 0 : _a.formType) || 'create';
|
|
56
56
|
const changeTypeRef = React.useRef(''); // 判断当前更新来自手动还是value变化
|
|
57
57
|
React.useEffect(() => {
|