bitz-react-admin-ui 2.6.1 → 2.6.2
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/dist/components/BitzConfigProvider/context.d.ts +7 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +73 -73
- package/dist/components/BitzTable/Store/index.d.ts +30 -0
- package/dist/components/BitzTable/Store/index.mjs +246 -217
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +12 -12
- package/dist/components/BitzTable/Table/index.d.ts +9 -1
- package/dist/components/BitzTable/Table/index.mjs +429 -398
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +103 -95
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +243 -197
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +141 -105
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.d.ts +8 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +23 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +127 -74
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +76 -25
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +151 -96
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +29 -27
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -9
- package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +4 -0
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +42 -14
- package/dist/components/BitzTable/index.d.ts +2 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +34 -37
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useDebounceFn/index.mjs +0 -29
- package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/utils/lodash-polyfill.mjs +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const h = (e, r
|
|
2
|
-
const
|
|
1
|
+
const h = (e, r) => ((t, n) => t.map((d) => {
|
|
2
|
+
const o = u(d, d.index), s = n[o];
|
|
3
3
|
return s && s.show === !1 ? !1 : {
|
|
4
4
|
...d,
|
|
5
5
|
...s
|
|
@@ -19,29 +19,29 @@ const h = (e, r, i) => ((n, o) => n.map((d) => {
|
|
|
19
19
|
return e.forEach(i), r;
|
|
20
20
|
}, p = (e) => (r, i) => {
|
|
21
21
|
var f, l, x, y;
|
|
22
|
-
const { fixed: t, index: n } = r, { fixed:
|
|
23
|
-
if (t === "left" &&
|
|
22
|
+
const { fixed: t, index: n } = r, { fixed: d, index: o } = i;
|
|
23
|
+
if (t === "left" && d !== "left" || d === "right" && t !== "right")
|
|
24
24
|
return -2;
|
|
25
|
-
if (
|
|
25
|
+
if (d === "left" && t !== "left" || t === "right" && d !== "right")
|
|
26
26
|
return 2;
|
|
27
|
-
const
|
|
28
|
-
return (f = e[
|
|
27
|
+
const s = r.key || `${n}`, a = i.key || `${o}`;
|
|
28
|
+
return (f = e[s]) != null && f.order || (l = e[a]) != null && l.order ? (((x = e[s]) == null ? void 0 : x.order) || 0) - (((y = e[a]) == null ? void 0 : y.order) || 0) : (r.index || 0) - (i.index || 0);
|
|
29
29
|
};
|
|
30
30
|
function I(e, r, i) {
|
|
31
31
|
const t = {};
|
|
32
32
|
let n = "";
|
|
33
|
-
const
|
|
34
|
-
for (const f in
|
|
35
|
-
if (
|
|
33
|
+
const d = (o, s, a) => {
|
|
34
|
+
for (const f in o)
|
|
35
|
+
if (o.hasOwnProperty(f) && (typeof o[f] == "object" && o[f] !== null && (n = f, t[f] = { ...o[f] }, d(o[f], s, a)), f === s)) {
|
|
36
36
|
const l = t[n];
|
|
37
37
|
t[n] = {
|
|
38
38
|
...l,
|
|
39
|
-
[
|
|
39
|
+
[s]: a
|
|
40
40
|
// [prop]: current.disabled || current.fixed ? true : val,
|
|
41
41
|
}, n = "";
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
return
|
|
44
|
+
return d(e, r, i), t;
|
|
45
45
|
}
|
|
46
46
|
const c = (e, r) => {
|
|
47
47
|
let i = {};
|
|
@@ -3,7 +3,7 @@ import { TableProps } from 'antd';
|
|
|
3
3
|
import { SkeletonParagraphProps } from 'antd/es/skeleton/Paragraph';
|
|
4
4
|
import { AnyObject } from 'antd/es/_util/type';
|
|
5
5
|
import type { RowClassName } from 'rc-table/es/interface';
|
|
6
|
-
import { ColumnStateType, DensitySize, StylesStateType, ExportColumnStateType, BitzTablePaginationProps } from '../Store';
|
|
6
|
+
import { ColumnStateType, DensitySize, StylesStateType, ExportColumnStateType, BitzTablePaginationProps, OrderByType } from '../Store';
|
|
7
7
|
import { ActionsFunType, BitzTableColumnsType, SelelctionAlertProps } from '..';
|
|
8
8
|
import { BitzTableBorderedType } from '../../BitzConfigProvider/context';
|
|
9
9
|
import './index.less';
|
|
@@ -14,6 +14,10 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
14
14
|
zebra?: boolean;
|
|
15
15
|
/** PC端:border样式 */
|
|
16
16
|
bordered?: BitzTableBorderedType;
|
|
17
|
+
/** PC端:border样式 */
|
|
18
|
+
pageSize?: number;
|
|
19
|
+
/** PC端:border样式 */
|
|
20
|
+
orderBy?: OrderByType;
|
|
17
21
|
/** PC端:是否显示分页 */
|
|
18
22
|
showPagination?: boolean;
|
|
19
23
|
/** PC端:BitzTable组件的整体高度,由外部通过视口高度减去其他元素高度和间隙的结果 */
|
|
@@ -36,6 +40,10 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
36
40
|
size?: DensitySize;
|
|
37
41
|
/** 请求加载状态 */
|
|
38
42
|
loading?: boolean;
|
|
43
|
+
/** data属性 */
|
|
44
|
+
dataProps?: {
|
|
45
|
+
[propName: `data-${string}`]: any;
|
|
46
|
+
};
|
|
39
47
|
/** 骨架屏列表个数 */
|
|
40
48
|
skeletonNum?: {
|
|
41
49
|
pc?: number;
|