@quansitech/antd-admin 1.2.3 → 1.2.5
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.
|
@@ -50,7 +50,7 @@ var DraggableUploadListItem = function DraggableUploadListItem(_ref) {
|
|
|
50
50
|
}, attributes, listeners), file.status === 'error' && isDragging ? originNode.props.children : originNode);
|
|
51
51
|
};
|
|
52
52
|
export default function (props) {
|
|
53
|
-
var _props$fieldProps4, _props$fieldProps5, _props$fieldProps6, _props$fieldProps7;
|
|
53
|
+
var _props$fieldProps4, _props$fieldProps5, _props$fieldProps6, _props$fieldProps7, _props$fieldProps8, _props$fieldProps9;
|
|
54
54
|
var _useState = useState(true),
|
|
55
55
|
_useState2 = _slicedToArray(_useState, 2),
|
|
56
56
|
loading = _useState2[0],
|
|
@@ -175,6 +175,7 @@ export default function (props) {
|
|
|
175
175
|
file: file
|
|
176
176
|
});
|
|
177
177
|
},
|
|
178
|
+
multiple: ((_props$fieldProps7 = props.fieldProps) === null || _props$fieldProps7 === void 0 ? void 0 : _props$fieldProps7.multiple) || ((_props$fieldProps8 = props.fieldProps) === null || _props$fieldProps8 === void 0 ? void 0 : _props$fieldProps8.maxCount) > 1,
|
|
178
179
|
onPreview: props.onPreview || handlePreview,
|
|
179
180
|
onChange: function onChange(_ref4) {
|
|
180
181
|
var fileList = _ref4.fileList;
|
|
@@ -185,7 +186,7 @@ export default function (props) {
|
|
|
185
186
|
},
|
|
186
187
|
customRequest: customRequest
|
|
187
188
|
}), props.uploadButton ? props.uploadButton(fileList) : uploadButton);
|
|
188
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, (_props$
|
|
189
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (_props$fieldProps9 = props.fieldProps) !== null && _props$fieldProps9 !== void 0 && _props$fieldProps9.uploadRequest ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spin, {
|
|
189
190
|
spinning: loading
|
|
190
191
|
}, /*#__PURE__*/React.createElement(DndContext, {
|
|
191
192
|
sensors: [sensor],
|
package/dist/components/Table.js
CHANGED
|
@@ -297,14 +297,7 @@ export default function (props) {
|
|
|
297
297
|
|
|
298
298
|
// 搜索
|
|
299
299
|
if (!searchUrl) {
|
|
300
|
-
|
|
301
|
-
s = s.replace(/page=\d+&?/, '');
|
|
302
|
-
realColumns.filter(function (c) {
|
|
303
|
-
return c.search !== false;
|
|
304
|
-
}).map(function (c) {
|
|
305
|
-
s = s.replace(new RegExp("".concat(c.dataIndex, "=[^&]*&?")), '');
|
|
306
|
-
});
|
|
307
|
-
setSearchUrl(s);
|
|
300
|
+
setSearchUrl(window.location.href);
|
|
308
301
|
}
|
|
309
302
|
setDataSource(postData(props.dataSource || []));
|
|
310
303
|
if (!modalContext.inModal) {
|