ronds-metadata 1.2.95 → 1.2.97
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ import _Input from "antd/es/input";
|
|
16
16
|
/*
|
17
17
|
* @Author: wangxian
|
18
18
|
* @Date: 2021-09-18 14:15:04
|
19
|
-
* @LastEditTime: 2023-
|
19
|
+
* @LastEditTime: 2023-08-14 19:17:56
|
20
20
|
*/
|
21
21
|
import React from 'react';
|
22
22
|
import { UploadOutlined } from '@ant-design/icons';
|
@@ -114,7 +114,14 @@ function Index(props) {
|
|
114
114
|
})
|
115
115
|
);
|
116
116
|
case 'upload':
|
117
|
-
return /*#__PURE__*/React.createElement(_Upload,
|
117
|
+
return /*#__PURE__*/React.createElement(_Upload, {
|
118
|
+
customRequest: function customRequest(options) {
|
119
|
+
// 模拟上传过程
|
120
|
+
setTimeout(function () {
|
121
|
+
options.onSuccess();
|
122
|
+
}, 1000);
|
123
|
+
}
|
124
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
118
125
|
disabled: (_extraInfo$disabled5 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled5 !== void 0 ? _extraInfo$disabled5 : disabled,
|
119
126
|
icon: /*#__PURE__*/React.createElement(UploadOutlined, null)
|
120
127
|
}, "\u4E0A\u4F20"));
|
@@ -37,7 +37,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
37
37
|
/*
|
38
38
|
* @Author:wangxian
|
39
39
|
* @Date: 2021-09-18 14:15:04
|
40
|
-
* @LastEditTime: 2023-08-
|
40
|
+
* @LastEditTime: 2023-08-19 11:12:38
|
41
41
|
*/
|
42
42
|
import React from 'react';
|
43
43
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -294,21 +294,19 @@ function Index(props) {
|
|
294
294
|
}
|
295
295
|
return _context2.abrupt("return", res);
|
296
296
|
case 9:
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
setTreeData(_toConsumableArray(_enum));
|
297
|
+
// 目前是更具那么的id判断的,暂未考虑重名问题
|
298
|
+
if (initEnumValue[id]) {
|
299
|
+
_enum = deepClone(initEnumValue[id]);
|
300
|
+
if (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$http6 = extraInfo.http) === null || _extraInfo$http6 === void 0 ? void 0 : _extraInfo$http6.isCascader) {
|
301
|
+
setCascaderOption(_toConsumableArray(_enum));
|
302
|
+
}
|
303
|
+
if (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$http7 = extraInfo.http) === null || _extraInfo$http7 === void 0 ? void 0 : _extraInfo$http7.isTreeSelect) {
|
304
|
+
setTreeData(_toConsumableArray(_enum));
|
305
|
+
}
|
307
306
|
}
|
308
|
-
|
309
|
-
case 14:
|
307
|
+
case 10:
|
310
308
|
return _context2.abrupt("return", []);
|
311
|
-
case
|
309
|
+
case 11:
|
312
310
|
case "end":
|
313
311
|
return _context2.stop();
|
314
312
|
}
|