@ccs-ui/rc-pro 2.2.5-beta-1 → 2.2.5-beta-3
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/dialog/button.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
|
|
|
16
16
|
export type DialogButtonRef = {
|
|
17
17
|
onSetButtons: (e: React.ReactElement) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "
|
|
19
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onClose" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
20
20
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
21
21
|
formInitialValues: FormProps['initialValues'];
|
|
22
22
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/pro-table/table.js
CHANGED
|
@@ -212,7 +212,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
212
212
|
case 11:
|
|
213
213
|
requestResult = _context.sent;
|
|
214
214
|
if (!requestResult) {
|
|
215
|
-
_context.next =
|
|
215
|
+
_context.next = 24;
|
|
216
216
|
break;
|
|
217
217
|
}
|
|
218
218
|
// onSearchAfter 处理请求结果
|
|
@@ -222,10 +222,9 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
222
222
|
current = getDataFromFields(newReqResult, fieldNames.current);
|
|
223
223
|
total = getDataFromFields(newReqResult, fieldNames.total);
|
|
224
224
|
if (!(total === undefined || _pageSize === undefined || current === undefined || dataSource === undefined)) {
|
|
225
|
-
_context.next =
|
|
225
|
+
_context.next = 21;
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
|
-
CcsUtils.showLogWarning('分页返回对象,total,pageSize,current,dataSource不能为空');
|
|
229
228
|
setData({
|
|
230
229
|
dataSource: dataSource,
|
|
231
230
|
pageSize: _pageSize,
|
|
@@ -234,7 +233,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
234
233
|
loading: false
|
|
235
234
|
});
|
|
236
235
|
return _context.abrupt("return");
|
|
237
|
-
case
|
|
236
|
+
case 21:
|
|
238
237
|
// 当前页无数据,返回上一页
|
|
239
238
|
if (!dataSource.length && current !== 1 && current !== undefined) {
|
|
240
239
|
onRequest('reload', current - 1);
|
|
@@ -247,15 +246,15 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
247
246
|
total: total || 0
|
|
248
247
|
});
|
|
249
248
|
}
|
|
250
|
-
_context.next =
|
|
249
|
+
_context.next = 25;
|
|
251
250
|
break;
|
|
252
|
-
case
|
|
251
|
+
case 24:
|
|
253
252
|
setData(function (d) {
|
|
254
253
|
return _objectSpread(_objectSpread({}, d), {}, {
|
|
255
254
|
loading: false
|
|
256
255
|
});
|
|
257
256
|
});
|
|
258
|
-
case
|
|
257
|
+
case 25:
|
|
259
258
|
case "end":
|
|
260
259
|
return _context.stop();
|
|
261
260
|
}
|
package/es/virtual-list/index.js
CHANGED
|
@@ -98,7 +98,9 @@ var VirtualList = function VirtualList(_ref2) {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}, [rowCount]);
|
|
101
|
-
return rowCount === 0 ? /*#__PURE__*/_jsx(_Fragment, {
|
|
101
|
+
return rowCount === 0 ? /*#__PURE__*/_jsx(_Fragment, {
|
|
102
|
+
children: "\u6309\u9700\u52A0\u8F7D\u6D4B\u8BD5tttttt-tttt11--tt"
|
|
103
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
102
104
|
className: className,
|
|
103
105
|
style: _objectSpread({
|
|
104
106
|
height: height || '100%'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccs-ui/rc-pro",
|
|
3
|
-
"version": "2.2.5-beta-
|
|
3
|
+
"version": "2.2.5-beta-3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@ant-design/compatible": "^5.1.2",
|
|
77
77
|
"@ant-design/icons": "^5.1.4",
|
|
78
|
-
"@ccs-ui/utils": "^0.
|
|
78
|
+
"@ccs-ui/utils": "^0.1.3",
|
|
79
79
|
"@commitlint/cli": "^17.1.2",
|
|
80
80
|
"@commitlint/config-conventional": "^17.1.0",
|
|
81
81
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@ant-design/compatible": "^5.1.2",
|
|
118
118
|
"@ant-design/icons": "^5.1.4",
|
|
119
|
-
"@ccs-ui/utils": "^0.
|
|
119
|
+
"@ccs-ui/utils": "^0.1.3",
|
|
120
120
|
"ahooks": "^3.7.7",
|
|
121
121
|
"antd": "^5.22.0",
|
|
122
122
|
"classnames": "^2.3.2",
|