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.
Files changed (27) hide show
  1. package/dist/components/BitzConfigProvider/context.d.ts +7 -1
  2. package/dist/components/BitzTable/ActionCol/index.mjs +73 -73
  3. package/dist/components/BitzTable/Store/index.d.ts +30 -0
  4. package/dist/components/BitzTable/Store/index.mjs +246 -217
  5. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
  6. package/dist/components/BitzTable/Store/utils/index.mjs +12 -12
  7. package/dist/components/BitzTable/Table/index.d.ts +9 -1
  8. package/dist/components/BitzTable/Table/index.mjs +429 -398
  9. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +103 -95
  10. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -1
  11. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +243 -197
  12. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +141 -105
  13. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.d.ts +8 -0
  14. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +23 -0
  15. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +127 -74
  16. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +76 -25
  17. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +151 -96
  18. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +29 -27
  19. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -9
  20. package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +4 -0
  21. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +42 -14
  22. package/dist/components/BitzTable/index.d.ts +2 -0
  23. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +34 -37
  24. package/dist/style.css +1 -1
  25. package/package.json +1 -1
  26. package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useDebounceFn/index.mjs +0 -29
  27. package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/utils/lodash-polyfill.mjs +0 -7
@@ -1,6 +1,6 @@
1
1
  import { ColumnsConfigProps } from '../../';
2
2
  /** 删掉不应该显示的 */
3
- export declare const loopFilter: (columns: any[], columnsMap: any, finish: boolean) => any[];
3
+ export declare const loopFilter: (columns: any[], columnsMap: any) => any[];
4
4
  /**
5
5
  * 生成列唯一key
6
6
  *
@@ -1,5 +1,5 @@
1
- const h = (e, r, i) => ((n, o) => n.map((d) => {
2
- const a = u(d, d.index), s = o[a];
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: o, index: d } = i;
23
- if (t === "left" && o !== "left" || o === "right" && t !== "right")
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 (o === "left" && t !== "left" || t === "right" && o !== "right")
25
+ if (d === "left" && t !== "left" || t === "right" && d !== "right")
26
26
  return 2;
27
- const a = r.key || `${n}`, s = i.key || `${d}`;
28
- return (f = e[a]) != null && f.order || (l = e[s]) != null && l.order ? (((x = e[a]) == null ? void 0 : x.order) || 0) - (((y = e[s]) == null ? void 0 : y.order) || 0) : (r.index || 0) - (i.index || 0);
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 o = (d, a, s) => {
34
- for (const f in d)
35
- if (d.hasOwnProperty(f) && (typeof d[f] == "object" && d[f] !== null && (n = f, t[f] = { ...d[f] }, o(d[f], a, s)), f === a)) {
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
- [a]: s
39
+ [s]: a
40
40
  // [prop]: current.disabled || current.fixed ? true : val,
41
41
  }, n = "";
42
42
  }
43
43
  };
44
- return o(e, r, i), t;
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;