@cloudbase/weda-ui 3.7.9 → 3.7.10
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.
|
@@ -1444,10 +1444,9 @@ export const FORM_ITEM_DATA = {
|
|
|
1444
1444
|
type: 'number',
|
|
1445
1445
|
title: '单个文件最大限制(M)',
|
|
1446
1446
|
'x-runtime-default': X_RUNTIME_DEFAULT.maxSize,
|
|
1447
|
-
maximum: 500,
|
|
1447
|
+
// maximum: 500,
|
|
1448
1448
|
'x-index': 103,
|
|
1449
1449
|
'x-category': X_CATEGORY.VERIFY,
|
|
1450
|
-
description: '最大支持500M',
|
|
1451
1450
|
}),
|
|
1452
1451
|
single: Type.Boolean({
|
|
1453
1452
|
type: 'boolean',
|
|
@@ -48,7 +48,7 @@ events = emptyObject, defaultValue, uploadPath = 'weda-uploader', single = true,
|
|
|
48
48
|
// 两次默认值不同, 需要刷新
|
|
49
49
|
const prevDefaultRef = React.useRef([]);
|
|
50
50
|
const fileRef = React.useRef(fileIDList);
|
|
51
|
-
const maxSizeLimit = maxSize
|
|
51
|
+
const maxSizeLimit = maxSize;
|
|
52
52
|
const formType = ((_a = getParentForm($node)) === null || _a === void 0 ? void 0 : _a.formType) || 'create';
|
|
53
53
|
const changeTypeRef = React.useRef('');
|
|
54
54
|
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(() => {
|