@cloudbase/weda-ui 3.7.8 → 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.
- package/dist/configs/components/wd-image.d.ts +1 -0
- package/dist/configs/components/wd-image.js +1 -0
- package/dist/configs/index.d.ts +2 -0
- package/dist/configs/type-utils/type-form.js +4 -5
- package/dist/style/index.scss +1 -1
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +1 -1
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +1 -1
- package/dist/web/components/wd-form-obj/base-form-obj.js +1 -1
- package/package.json +1 -1
|
@@ -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(() => {
|
|
@@ -124,7 +124,7 @@ export const BaseFormObj = forwardRef(function BaseFormObj(props, ref) {
|
|
|
124
124
|
value = deepClone(objValue);
|
|
125
125
|
// 触发添加操作,则增加一个undefined值
|
|
126
126
|
if (params.type === 'add') {
|
|
127
|
-
value.push(
|
|
127
|
+
value.push(undefined);
|
|
128
128
|
}
|
|
129
129
|
// 触发删除操作,则删除对应索引的值
|
|
130
130
|
if (params.type === 'remove') {
|