ztxkui 2.4.6 → 2.4.7
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.
|
@@ -24,6 +24,7 @@ export interface IFooterDom extends Partial<IPagination & IBtn & IDropdown> {
|
|
|
24
24
|
interface IProps {
|
|
25
25
|
footerDom?: IFooterDom[] | null;
|
|
26
26
|
style?: React.CSSProperties;
|
|
27
|
+
className?: string;
|
|
27
28
|
}
|
|
28
29
|
declare const _default: React.NamedExoticComponent<IProps>;
|
|
29
30
|
export default _default;
|
|
@@ -3,8 +3,8 @@ import { Pagination, Button, Layout, Dropdown } from '../../../index';
|
|
|
3
3
|
var pageSizeOptions = ['10', '20', '30', '100'];
|
|
4
4
|
var ZtFooter = Layout.Footer;
|
|
5
5
|
var Footer = function (_a) {
|
|
6
|
-
var footerDom = _a.footerDom, style = _a.style;
|
|
7
|
-
return (React.createElement(ZtFooter, { className: "footer", style: style }, footerDom ? (React.createElement("div", { className: "footer__btn-group" }, footerDom.map(function (item, index) {
|
|
6
|
+
var footerDom = _a.footerDom, style = _a.style, className = _a.className;
|
|
7
|
+
return (React.createElement(ZtFooter, { className: className ? "footer " + className : 'footer', style: style }, footerDom ? (React.createElement("div", { className: "footer__btn-group" }, footerDom.map(function (item, index) {
|
|
8
8
|
if (item.DOMType === 'button') {
|
|
9
9
|
var type = item.type, loading = item.loading, disabled = item.disabled, onClick = item.onClick;
|
|
10
10
|
return (React.createElement(Button, { key: index, type: type, loading: loading, disabled: disabled, onClick: onClick }, item.text));
|