@luck-design-biz/luckda 0.0.26-3 → 0.0.26-4
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/es/upload/Form/gridForm.js +14 -0
- package/es/upload/Form/index.js +11 -0
- package/es/utils/form.js +0 -1
- package/lib/upload/Form/gridForm.js +14 -0
- package/lib/upload/Form/index.js +11 -0
- package/lib/utils/form.js +0 -1
- package/package.json +1 -1
|
@@ -382,6 +382,20 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
382
382
|
supportUploadTypes: supportUploadTypes,
|
|
383
383
|
beforeUpload: _beforeUpload
|
|
384
384
|
});
|
|
385
|
+
},
|
|
386
|
+
customRequest: function customRequest(_ref2) {
|
|
387
|
+
var file = _ref2.file,
|
|
388
|
+
onProgress = _ref2.onProgress,
|
|
389
|
+
onSuccess = _ref2.onSuccess;
|
|
390
|
+
return new Promise(function (resolve) {
|
|
391
|
+
setTimeout(function () {
|
|
392
|
+
onProgress({
|
|
393
|
+
percent: 100
|
|
394
|
+
});
|
|
395
|
+
onSuccess(file);
|
|
396
|
+
resolve();
|
|
397
|
+
}, 1000);
|
|
398
|
+
});
|
|
385
399
|
}
|
|
386
400
|
})
|
|
387
401
|
}), /*#__PURE__*/React.createElement(BasicFormItem, {
|
package/es/upload/Form/index.js
CHANGED
package/es/utils/form.js
CHANGED
|
@@ -43,7 +43,6 @@ export function getFormItem() {
|
|
|
43
43
|
translateProps, formatCustomProps(customProps)),
|
|
44
44
|
type = _merge.type,
|
|
45
45
|
_props = _objectWithoutProperties(_merge, _excluded3);
|
|
46
|
-
console.log('getFormItem', translateProps, _props);
|
|
47
46
|
if (customProps.renderBasicFormItem) {
|
|
48
47
|
var com = customProps.renderBasicFormItem(_props);
|
|
49
48
|
var comProps = merge(_props, com.props);
|
|
@@ -390,6 +390,20 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
390
390
|
supportUploadTypes: supportUploadTypes,
|
|
391
391
|
beforeUpload: _beforeUpload
|
|
392
392
|
});
|
|
393
|
+
},
|
|
394
|
+
customRequest: function customRequest(_ref2) {
|
|
395
|
+
var file = _ref2.file,
|
|
396
|
+
onProgress = _ref2.onProgress,
|
|
397
|
+
onSuccess = _ref2.onSuccess;
|
|
398
|
+
return new Promise(function (resolve) {
|
|
399
|
+
setTimeout(function () {
|
|
400
|
+
onProgress({
|
|
401
|
+
percent: 100
|
|
402
|
+
});
|
|
403
|
+
onSuccess(file);
|
|
404
|
+
resolve();
|
|
405
|
+
}, 1000);
|
|
406
|
+
});
|
|
393
407
|
}
|
|
394
408
|
})
|
|
395
409
|
}), /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, {
|
package/lib/upload/Form/index.js
CHANGED
|
@@ -93,6 +93,17 @@ function buildComponent(props) {
|
|
|
93
93
|
})
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
+
},
|
|
97
|
+
onUpdate: {
|
|
98
|
+
api: function api() {
|
|
99
|
+
return new Promise(function (resolve) {
|
|
100
|
+
return resolve({
|
|
101
|
+
code: 1,
|
|
102
|
+
list: [],
|
|
103
|
+
detail: []
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
96
107
|
}
|
|
97
108
|
}));
|
|
98
109
|
}
|
package/lib/utils/form.js
CHANGED
|
@@ -52,7 +52,6 @@ function getFormItem() {
|
|
|
52
52
|
translateProps, (0, _form.formatCustomProps)(customProps)),
|
|
53
53
|
type = _merge.type,
|
|
54
54
|
_props = (0, _objectWithoutProperties2.default)(_merge, _excluded3);
|
|
55
|
-
console.log('getFormItem', translateProps, _props);
|
|
56
55
|
if (customProps.renderBasicFormItem) {
|
|
57
56
|
var com = customProps.renderBasicFormItem(_props);
|
|
58
57
|
var comProps = (0, _lodash.merge)(_props, com.props);
|
package/package.json
CHANGED