bitz-react-admin-ui 2.1.5 → 2.1.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.
- package/dist/_virtual/dayjs.min.mjs +2 -5
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Dropdown/index.mjs +16 -15
- package/dist/components/BitzTable/Store/index.d.ts +11 -2
- package/dist/components/BitzTable/Store/index.mjs +121 -114
- package/dist/components/BitzTable/Store/utils/index.mjs +24 -24
- package/dist/components/BitzTable/Table/index.d.ts +3 -1
- package/dist/components/BitzTable/Table/index.mjs +226 -229
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +4 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +116 -106
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +24 -25
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +10 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +58 -50
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +0 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +45 -28
- package/dist/components/BitzTable/ToolBar/index.d.ts +6 -3
- package/dist/components/BitzTable/index.d.ts +2 -2
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
- package/dist/_virtual/dayjs.min2.mjs +0 -4
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
let
|
|
1
|
+
const y = (n, f) => {
|
|
2
|
+
let d = 0, t = 0;
|
|
3
3
|
return {
|
|
4
|
-
filterColumns: ((o, l) => o.map((
|
|
5
|
-
const
|
|
6
|
-
return s && s.show === !1 ? (
|
|
7
|
-
}))(
|
|
8
|
-
width:
|
|
4
|
+
filterColumns: ((o, l) => o.map((e) => {
|
|
5
|
+
const r = h((e == null ? void 0 : e.key) || (e == null ? void 0 : e.dataIndex), e.index), s = l[r];
|
|
6
|
+
return s && s.show === !1 ? (typeof e.width == "number" ? d += e.width : t += 1, !1) : { ...e, ...s };
|
|
7
|
+
}))(n, f).filter(Boolean),
|
|
8
|
+
width: d,
|
|
9
9
|
autoWidthColLength: t
|
|
10
10
|
};
|
|
11
|
-
}, h = (
|
|
12
|
-
var
|
|
13
|
-
const { fixed: t, index:
|
|
11
|
+
}, h = (n, f) => n ? Array.isArray(n) ? n.join("-") : n.toString() : `${f}`, a = (n) => (f, d) => {
|
|
12
|
+
var r, s, c, x;
|
|
13
|
+
const { fixed: t, index: u } = f, { fixed: i, index: o } = d;
|
|
14
14
|
if (t === "left" && i !== "left" || i === "right" && t !== "right")
|
|
15
15
|
return -2;
|
|
16
16
|
if (i === "left" && t !== "left" || t === "right" && i !== "right")
|
|
17
17
|
return 2;
|
|
18
|
-
const l =
|
|
19
|
-
return (
|
|
18
|
+
const l = f.key || `${u}`, e = d.key || `${o}`;
|
|
19
|
+
return (r = n[l]) != null && r.order || (s = n[e]) != null && s.order ? (((c = n[l]) == null ? void 0 : c.order) || 0) - (((x = n[e]) == null ? void 0 : x.order) || 0) : (f.index || 0) - (d.index || 0);
|
|
20
20
|
};
|
|
21
|
-
function g(
|
|
21
|
+
function g(n, f, d) {
|
|
22
22
|
const t = {};
|
|
23
|
-
let
|
|
24
|
-
const i = (o, l,
|
|
25
|
-
for (const
|
|
26
|
-
if (o.hasOwnProperty(
|
|
27
|
-
const s = t[
|
|
28
|
-
t[
|
|
23
|
+
let u = "";
|
|
24
|
+
const i = (o, l, e) => {
|
|
25
|
+
for (const r in o)
|
|
26
|
+
if (o.hasOwnProperty(r) && (typeof o[r] == "object" && o[r] !== null && (u = r, t[r] = { ...o[r] }, i(o[r], l, e)), r === l)) {
|
|
27
|
+
const s = t[u];
|
|
28
|
+
t[u] = {
|
|
29
29
|
...s,
|
|
30
|
-
[l]:
|
|
30
|
+
[l]: e
|
|
31
31
|
// [prop]: current.disabled || current.fixed ? true : val,
|
|
32
|
-
},
|
|
32
|
+
}, u = "";
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
return i(
|
|
35
|
+
return i(n, f, d), t;
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
a as columnSort,
|
|
39
39
|
h as genColumnKey,
|
|
40
|
-
|
|
40
|
+
y as loopFilter,
|
|
41
41
|
g as updateNestedObject
|
|
42
42
|
};
|
|
@@ -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 } from '../Store';
|
|
6
|
+
import { ColumnStateType, DensitySize, StylesStateType, ExportColumnStateType } from '../Store';
|
|
7
7
|
import { ActionsFunType, BitzTableColumnsType } from '..';
|
|
8
8
|
import { BitzTableBorderedType } from '@/components/BitzConfigProvider/context';
|
|
9
9
|
import './index.less';
|
|
@@ -80,6 +80,8 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
80
80
|
stylesConfigState?: StylesStateType;
|
|
81
81
|
/** 用于配置和存储列配置,不传则不存储 */
|
|
82
82
|
columnsState?: ColumnStateType;
|
|
83
|
+
/** 用于配置和存储导出列配置,不传则不存储 */
|
|
84
|
+
exportConfigState?: ExportColumnStateType;
|
|
83
85
|
/** 自定义行类名 */
|
|
84
86
|
rowClassName?: RowClassName<RecordType>;
|
|
85
87
|
/** 重置分页的page为1 */
|