@tidbcloud/uikit 2.0.0-beta.33 → 2.0.0-beta.34
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,7 @@ const Box = require("../../../node_modules/.pnpm/@mantine_core@5.10.4_patch_hash
|
|
|
10
10
|
const ProTable = ({
|
|
11
11
|
mantineTableProps = {},
|
|
12
12
|
mantinePaperProps = {},
|
|
13
|
+
mantineTableContainerProps = {},
|
|
13
14
|
mantineTableBodyProps,
|
|
14
15
|
mantineBottomToolbarProps = {},
|
|
15
16
|
wrapperProps = {},
|
|
@@ -86,6 +87,14 @@ const ProTable = ({
|
|
|
86
87
|
},
|
|
87
88
|
mantineTableProps
|
|
88
89
|
);
|
|
90
|
+
const mTableContainerProps = helpers.mergeMProps(
|
|
91
|
+
() => ({
|
|
92
|
+
sx: {
|
|
93
|
+
overflow: "unset"
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
mantineTableContainerProps
|
|
97
|
+
);
|
|
89
98
|
const mTableBodyProps = helpers.mergeMProps((args) => {
|
|
90
99
|
var _a, _b, _c;
|
|
91
100
|
if (!(data == null ? void 0 : data.length)) {
|
|
@@ -124,6 +133,7 @@ const ProTable = ({
|
|
|
124
133
|
mantinePaperProps: mPaperProps,
|
|
125
134
|
mantineTableProps: mTableProps,
|
|
126
135
|
mantineTableBodyProps: mTableBodyProps,
|
|
136
|
+
mantineTableContainerProps: mTableContainerProps,
|
|
127
137
|
mantineBottomToolbarProps: mBottomToolbarProps,
|
|
128
138
|
mantinePaginationProps: {},
|
|
129
139
|
data,
|
|
@@ -140,7 +150,7 @@ const ProTable = ({
|
|
|
140
150
|
...rest
|
|
141
151
|
}
|
|
142
152
|
),
|
|
143
|
-
!!pagination && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TablePagination.TablePagination, { size: "sm", position: "
|
|
153
|
+
!!pagination && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TablePagination.TablePagination, { size: "sm", position: "center", mt: 16, ...pagination })
|
|
144
154
|
] });
|
|
145
155
|
};
|
|
146
156
|
exports.ProTable = ProTable;
|
|
@@ -10,4 +10,4 @@ export interface ProTableProps<TData extends Record<string, any> = {}> extends M
|
|
|
10
10
|
pagination?: TablePaginationProps;
|
|
11
11
|
wrapperProps?: BoxProps;
|
|
12
12
|
}
|
|
13
|
-
export declare const ProTable: <T extends Record<string, any> = {}>({ mantineTableProps, mantinePaperProps, mantineTableBodyProps, mantineBottomToolbarProps, wrapperProps, pagination, withBorder, loading, enableStickyHeader, enablePagination, enableBottomToolbar, enableSorting, emptyMessage, errorMessage, data, localization, state, ...rest }: ProTableProps<T>) => import("react/jsx-runtime.js").JSX.Element;
|
|
13
|
+
export declare const ProTable: <T extends Record<string, any> = {}>({ mantineTableProps, mantinePaperProps, mantineTableContainerProps, mantineTableBodyProps, mantineBottomToolbarProps, wrapperProps, pagination, withBorder, loading, enableStickyHeader, enablePagination, enableBottomToolbar, enableSorting, emptyMessage, errorMessage, data, localization, state, ...rest }: ProTableProps<T>) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -10,4 +10,4 @@ export interface ProTableProps<TData extends Record<string, any> = {}> extends M
|
|
|
10
10
|
pagination?: TablePaginationProps;
|
|
11
11
|
wrapperProps?: BoxProps;
|
|
12
12
|
}
|
|
13
|
-
export declare const ProTable: <T extends Record<string, any> = {}>({ mantineTableProps, mantinePaperProps, mantineTableBodyProps, mantineBottomToolbarProps, wrapperProps, pagination, withBorder, loading, enableStickyHeader, enablePagination, enableBottomToolbar, enableSorting, emptyMessage, errorMessage, data, localization, state, ...rest }: ProTableProps<T>) => import("react/jsx-runtime.js").JSX.Element;
|
|
13
|
+
export declare const ProTable: <T extends Record<string, any> = {}>({ mantineTableProps, mantinePaperProps, mantineTableContainerProps, mantineTableBodyProps, mantineBottomToolbarProps, wrapperProps, pagination, withBorder, loading, enableStickyHeader, enablePagination, enableBottomToolbar, enableSorting, emptyMessage, errorMessage, data, localization, state, ...rest }: ProTableProps<T>) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -8,6 +8,7 @@ import { Box } from "../../../node_modules/.pnpm/@mantine_core@5.10.4_patch_hash
|
|
|
8
8
|
const ProTable = ({
|
|
9
9
|
mantineTableProps = {},
|
|
10
10
|
mantinePaperProps = {},
|
|
11
|
+
mantineTableContainerProps = {},
|
|
11
12
|
mantineTableBodyProps,
|
|
12
13
|
mantineBottomToolbarProps = {},
|
|
13
14
|
wrapperProps = {},
|
|
@@ -84,6 +85,14 @@ const ProTable = ({
|
|
|
84
85
|
},
|
|
85
86
|
mantineTableProps
|
|
86
87
|
);
|
|
88
|
+
const mTableContainerProps = mergeMProps(
|
|
89
|
+
() => ({
|
|
90
|
+
sx: {
|
|
91
|
+
overflow: "unset"
|
|
92
|
+
}
|
|
93
|
+
}),
|
|
94
|
+
mantineTableContainerProps
|
|
95
|
+
);
|
|
87
96
|
const mTableBodyProps = mergeMProps((args) => {
|
|
88
97
|
var _a, _b, _c;
|
|
89
98
|
if (!(data == null ? void 0 : data.length)) {
|
|
@@ -122,6 +131,7 @@ const ProTable = ({
|
|
|
122
131
|
mantinePaperProps: mPaperProps,
|
|
123
132
|
mantineTableProps: mTableProps,
|
|
124
133
|
mantineTableBodyProps: mTableBodyProps,
|
|
134
|
+
mantineTableContainerProps: mTableContainerProps,
|
|
125
135
|
mantineBottomToolbarProps: mBottomToolbarProps,
|
|
126
136
|
mantinePaginationProps: {},
|
|
127
137
|
data,
|
|
@@ -138,7 +148,7 @@ const ProTable = ({
|
|
|
138
148
|
...rest
|
|
139
149
|
}
|
|
140
150
|
),
|
|
141
|
-
!!pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(TablePagination, { size: "sm", position: "
|
|
151
|
+
!!pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(TablePagination, { size: "sm", position: "center", mt: 16, ...pagination })
|
|
142
152
|
] });
|
|
143
153
|
};
|
|
144
154
|
export {
|