@ccs-ui/rc-pro 1.1.21-beta-4 → 1.1.21-beta-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.
- package/es/dialog/HookModal.d.ts +1 -1
- package/es/pro-table/table.d.ts +2 -0
- package/es/pro-table/table.js +2 -1
- package/es/table/index.d.ts +2 -2
- package/es/table/index.js +10 -0
- package/package.json +2 -2
package/es/dialog/HookModal.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FormProps } from 'antd';
|
|
3
3
|
import { DialogFormRef } from './form';
|
|
4
4
|
import { CcsDialogModal, CcsDialogModalProps } from './hook';
|
|
5
|
-
export declare const DialogSelfButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "
|
|
5
|
+
export declare const DialogSelfButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "request" | "auth" | "onRequestBefore" | "onCancel"> & {
|
|
6
6
|
formRef: React.RefObject<DialogFormRef>;
|
|
7
7
|
formInitialValues: FormProps['initialValues'];
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/es/pro-table/table.d.ts
CHANGED
package/es/pro-table/table.js
CHANGED
|
@@ -466,7 +466,8 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
466
466
|
}, table), {}, {
|
|
467
467
|
columns: columns,
|
|
468
468
|
showSorterTooltip: true,
|
|
469
|
-
loading: table.loading || data.loading || false
|
|
469
|
+
loading: table.loading || data.loading || false,
|
|
470
|
+
showNumber: props.showNumber
|
|
470
471
|
}));
|
|
471
472
|
};
|
|
472
473
|
var isDark = token._appTheme === 'dark';
|
package/es/table/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CcsTableProps } from '../pro-table/table';
|
|
1
|
+
import { CcsProTableProps, CcsTableProps } from '../pro-table/table';
|
|
2
2
|
import './index.less';
|
|
3
|
-
type TableProps<T> = Omit<CcsTableProps<T>, 'request' | 'requestParam'>;
|
|
3
|
+
type TableProps<T> = Omit<CcsTableProps<T>, 'request' | 'requestParam'> & Pick<CcsProTableProps<T>, 'showNumber'>;
|
|
4
4
|
declare const CustomTable: <T extends object = any>(props: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default CustomTable;
|
package/es/table/index.js
CHANGED
|
@@ -161,6 +161,16 @@ var CustomTable = function CustomTable(props) {
|
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
163
|
});
|
|
164
|
+
if (restProps.showNumber) {
|
|
165
|
+
cls === null || cls === void 0 ? void 0 : cls.unshift({
|
|
166
|
+
title: '序号',
|
|
167
|
+
ellipsis: true,
|
|
168
|
+
width: 60,
|
|
169
|
+
render: function render(_value, _record, index) {
|
|
170
|
+
return (index + 1) * (pageNo || 1);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
164
174
|
return cls;
|
|
165
175
|
};
|
|
166
176
|
var _theme$useToken = theme.useToken(),
|
package/package.json
CHANGED