bitz-react-admin-ui 1.8.1 → 1.8.3
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/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzConfigProvider/context.d.ts +8 -1
- package/dist/components/BitzConfigProvider/index.mjs +26 -9
- 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/BitzHighlight/Highlight.mjs +19 -19
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTabbar/BitzTabbar.d.ts +2 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +33 -30
- package/dist/components/BitzTable/ActionCol/index.mjs +19 -18
- package/dist/components/BitzTable/Dropdown/index.d.ts +4 -0
- package/dist/components/BitzTable/Dropdown/index.mjs +21 -0
- package/dist/components/BitzTable/Dropdown/style.d.ts +4 -0
- package/dist/components/BitzTable/Dropdown/style.mjs +108 -0
- package/dist/components/BitzTable/Table/index.d.ts +2 -12
- package/dist/components/BitzTable/Table/index.mjs +221 -211
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +14 -13
- package/dist/config.d.ts +2 -0
- 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/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +2 -2
- package/dist/_virtual/dayjs.min2.mjs +0 -4
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as o } from "../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
3
|
-
var t = o();
|
|
4
|
-
const s = /* @__PURE__ */ r(t);
|
|
1
|
+
var a = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
a as __module
|
|
7
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useRef as O, useEffect as R } from "react";
|
|
3
3
|
import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
|
|
4
|
-
import N from "../../
|
|
4
|
+
import N from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
5
5
|
import B from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/weekOfYear.mjs";
|
|
6
6
|
import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
|
|
7
7
|
N.extend(B);
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type ToolEnum = 'export' | 'refresh' | 'size' | 'fullscreen' | 'colConfig';
|
|
3
|
-
/**
|
|
3
|
+
/** 控制table的全局行为 */
|
|
4
4
|
export interface TableComponentContextProps {
|
|
5
|
+
/** 根据从左到右方向排序,不在数组中则不显示 */
|
|
5
6
|
toolbar?: ToolEnum[];
|
|
7
|
+
/** 是否显示外边框和列边框 */
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
/** 是否开启斑马纹,填充偶数行背景色 */
|
|
10
|
+
fillEvenRow?: boolean;
|
|
11
|
+
/** 是否开启rowHover样式 */
|
|
12
|
+
rowHoverable?: boolean;
|
|
6
13
|
}
|
|
7
14
|
export interface BitzConfigProviderContextProps {
|
|
8
15
|
Table?: TableComponentContextProps;
|
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { ConfigProvider as u } from "antd";
|
|
3
|
+
import { useMemo as v } from "react";
|
|
4
|
+
import { BitzConfigContext as b } from "./context.mjs";
|
|
5
|
+
const w = ({
|
|
6
|
+
children: s,
|
|
7
|
+
context: r,
|
|
8
|
+
...o
|
|
9
|
+
}) => {
|
|
10
|
+
const m = v(() => {
|
|
11
|
+
var e, f;
|
|
12
|
+
let i = !0;
|
|
13
|
+
((e = r == null ? void 0 : r.Table) == null ? void 0 : e.fillEvenRow) === !1 && (i = !1);
|
|
14
|
+
let l = !0;
|
|
15
|
+
return ((f = r == null ? void 0 : r.Table) == null ? void 0 : f.rowHoverable) === !1 && (l = !1), {
|
|
16
|
+
...r,
|
|
17
|
+
Table: {
|
|
18
|
+
...r == null ? void 0 : r.Table,
|
|
19
|
+
fillEvenRow: i,
|
|
20
|
+
rowHoverable: l
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}, [r]);
|
|
24
|
+
return /* @__PURE__ */ a.jsx(u, { ...o, children: /* @__PURE__ */ a.jsx(b.Provider, { value: m, children: s }) });
|
|
25
|
+
};
|
|
9
26
|
export {
|
|
10
|
-
|
|
27
|
+
w as default
|
|
11
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
|
|
2
|
-
import o from "../../
|
|
2
|
+
import o from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
3
3
|
var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
|
|
4
4
|
const i = a((e, k) => ({
|
|
5
5
|
colHeight: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as y, useEffect as j, useMemo as D } from "react";
|
|
3
3
|
import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
|
|
4
|
-
import n from "../../
|
|
4
|
+
import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
5
5
|
import { useBitzFuiCalendarStore as S, CalendarTypeEnum as C } from "./BitzFuiCalendarStore.mjs";
|
|
6
6
|
import N from "./CalendarAgendumItem.mjs";
|
|
7
7
|
import x from "./CalendarAgendum.module.less.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as a } from "react";
|
|
3
3
|
import e from "./CalendarAgendum.module.less.mjs";
|
|
4
|
-
import l from "../../
|
|
4
|
+
import l from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
5
5
|
import { Button as c } from "antd";
|
|
6
6
|
const d = (_, s) => {
|
|
7
7
|
let t = s.diff(_, "minute"), m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { memo as m, useMemo as r } from "react";
|
|
3
|
-
import d from "../../
|
|
3
|
+
import d from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
4
4
|
import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
5
|
const n = (t) => {
|
|
6
6
|
const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { memo as C, useMemo as i } from "react";
|
|
3
3
|
import { Space as c, Button as o, DatePicker as b, Dropdown as h } from "antd";
|
|
4
4
|
import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import g from "../../
|
|
5
|
+
import g from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
6
6
|
import T from "../../node_modules/.store/@ant-design_icons@5.3.3/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
|
|
7
7
|
import v from "../../node_modules/.store/@ant-design_icons@5.3.3/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
|
|
8
8
|
import _ from "../../node_modules/.store/@ant-design_icons@5.3.3/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
|
|
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
|
|
|
4
4
|
import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import F from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
|
|
6
6
|
import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
|
|
7
|
-
import r from "../../
|
|
7
|
+
import r from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
8
8
|
import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
|
|
9
9
|
r.extend(M);
|
|
10
10
|
r.extend(F);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
autoEscape:
|
|
8
|
-
caseSensitive:
|
|
2
|
+
import E from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
3
|
+
import { useMemo as G } from "react";
|
|
4
|
+
import H from "./chunks.mjs";
|
|
5
|
+
import M from "./style.mjs";
|
|
6
|
+
const w = ({
|
|
7
|
+
autoEscape: m = !0,
|
|
8
|
+
caseSensitive: l = !1,
|
|
9
9
|
type: e = "primary",
|
|
10
10
|
sourceString: t,
|
|
11
|
-
keywords:
|
|
11
|
+
keywords: o,
|
|
12
12
|
tag: i = "div",
|
|
13
13
|
tagClass: c,
|
|
14
14
|
highlightTag: h = "span",
|
|
15
15
|
highlightClass: g,
|
|
16
|
-
unhighlightTag:
|
|
17
|
-
unhighlightClass:
|
|
16
|
+
unhighlightTag: u = "span",
|
|
17
|
+
unhighlightClass: p = ""
|
|
18
18
|
}) => {
|
|
19
19
|
const {
|
|
20
20
|
tagClassName: f,
|
|
21
21
|
secondaryClassName: d,
|
|
22
22
|
highlightClassName: N
|
|
23
|
-
} =
|
|
23
|
+
} = M({ tagClass: c, highlightClass: g }), x = G(() => E(f, {
|
|
24
24
|
[`${d}`]: e === "secondary"
|
|
25
|
-
}), [e]), s =
|
|
26
|
-
o,
|
|
25
|
+
}), [e]), s = H(
|
|
27
26
|
m,
|
|
28
27
|
l,
|
|
28
|
+
o,
|
|
29
29
|
t
|
|
30
|
-
), C =
|
|
31
|
-
const { start:
|
|
32
|
-
return
|
|
33
|
-
}) : t
|
|
34
|
-
return /* @__PURE__ */ a.jsx(
|
|
30
|
+
), C = () => s != null && s.length ? s.map((j, r) => {
|
|
31
|
+
const { start: y, end: T, highlight: v } = j, n = t.slice(y, T);
|
|
32
|
+
return v ? /* @__PURE__ */ a.jsx(h, { className: N, children: n }, r) : /* @__PURE__ */ a.jsx(u, { className: p, children: n }, r);
|
|
33
|
+
}) : t;
|
|
34
|
+
return /* @__PURE__ */ a.jsx(i, { className: x, children: C() });
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
w as default
|
|
38
38
|
};
|
|
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
|
|
|
3
3
|
import A from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import H from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
|
|
6
|
-
import e from "../../
|
|
6
|
+
import e from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
7
7
|
import "./index.less.mjs";
|
|
8
8
|
e.extend(A);
|
|
9
9
|
e.extend(H);
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { useMemo as d } from "react";
|
|
3
3
|
import p from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import T from "./BitzMeetingTimeItem.mjs";
|
|
5
|
-
import m from "../../
|
|
5
|
+
import m from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
7
|
m.extend(p);
|
|
8
8
|
const x = (a) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
/** Tabbar属性 */
|
|
4
4
|
export interface BitzTabbarProps {
|
|
@@ -22,5 +22,5 @@ export interface BitzTabbarProps {
|
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
}
|
|
24
24
|
/** Tabbar Componet */
|
|
25
|
-
declare const BitzTabbar:
|
|
25
|
+
declare const BitzTabbar: React.ForwardRefExoticComponent<BitzTabbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
export default BitzTabbar;
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
1
|
+
import { j as f } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import r from "react";
|
|
3
3
|
import "./index.less.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (a) {
|
|
19
|
-
const l = document.createElement("div");
|
|
20
|
-
let s = ((e = r.current) == null ? void 0 : e.offsetHeight) || 0;
|
|
21
|
-
t && (s += Number.parseInt(getComputedStyle(r.current).getPropertyValue("--safeArea-insetBottom") || "0")), l.style.height = `${s}px`, (u = (i = r.current) == null ? void 0 : i.parentElement) == null || u.appendChild(l);
|
|
22
|
-
}
|
|
23
|
-
}, [a, t]);
|
|
24
|
-
const k = {
|
|
25
|
-
...p ? {} : {},
|
|
26
|
-
currentName: m,
|
|
4
|
+
import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
+
const k = r.forwardRef((t, o) => {
|
|
6
|
+
const {
|
|
7
|
+
value: a,
|
|
8
|
+
zIndex: n = 1,
|
|
9
|
+
route: i,
|
|
10
|
+
fixed: s = !0,
|
|
11
|
+
border: c = !0,
|
|
12
|
+
safeAreaInsetBottom: l = !0,
|
|
13
|
+
onChange: b,
|
|
14
|
+
children: d
|
|
15
|
+
} = t, m = {
|
|
16
|
+
...i ? {} : {},
|
|
17
|
+
currentName: a,
|
|
27
18
|
onClick: (e) => {
|
|
28
|
-
|
|
19
|
+
b(e);
|
|
29
20
|
}
|
|
30
|
-
},
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
21
|
+
}, u = (e) => r.cloneElement(e, m);
|
|
22
|
+
return /* @__PURE__ */ f.jsx(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
ref: o,
|
|
26
|
+
className: p("bitzTabbarBlock", {
|
|
27
|
+
bitzTabbarFixedBlock: s,
|
|
28
|
+
bitzTabbarBlockBorder: c,
|
|
29
|
+
bitzTabbarBlockBottomSafe: l
|
|
30
|
+
}),
|
|
31
|
+
style: { zIndex: n },
|
|
32
|
+
children: r.Children.map(d, u)
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
});
|
|
33
36
|
export {
|
|
34
|
-
|
|
37
|
+
k as default
|
|
35
38
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import b from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Space as B, Skeleton as w } from "antd";
|
|
4
4
|
import { useRef as y, useMemo as C } from "react";
|
|
5
|
-
import
|
|
5
|
+
import p from "../../BitzButton/index.mjs";
|
|
6
6
|
import k from "./style.mjs";
|
|
7
|
+
import N from "../Dropdown/index.mjs";
|
|
7
8
|
const g = ({
|
|
8
9
|
skeletonCls: n,
|
|
9
10
|
...s
|
|
10
|
-
}) => /* @__PURE__ */ t.jsxs(
|
|
11
|
+
}) => /* @__PURE__ */ t.jsxs(p, { type: "text", ...s, children: [
|
|
11
12
|
/* @__PURE__ */ t.jsx("span", { children: s.children }),
|
|
12
13
|
/* @__PURE__ */ t.jsx(
|
|
13
14
|
w,
|
|
@@ -25,14 +26,14 @@ const g = ({
|
|
|
25
26
|
function z({
|
|
26
27
|
loading: n,
|
|
27
28
|
actionGroup: s,
|
|
28
|
-
refInstance:
|
|
29
|
+
refInstance: m
|
|
29
30
|
}) {
|
|
30
31
|
const {
|
|
31
|
-
gap:
|
|
32
|
+
gap: h,
|
|
32
33
|
primaryBtnClassName: i,
|
|
33
34
|
dangerBtnClassName: o,
|
|
34
35
|
dropdownBtnClassName: l,
|
|
35
|
-
maskClassName:
|
|
36
|
+
maskClassName: d,
|
|
36
37
|
skeletonBtnClassName: u,
|
|
37
38
|
skeletonClassName: x
|
|
38
39
|
} = k(), f = C(() => {
|
|
@@ -48,14 +49,14 @@ function z({
|
|
|
48
49
|
},
|
|
49
50
|
j
|
|
50
51
|
) : e.children ? /* @__PURE__ */ t.jsx(N, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
|
|
51
|
-
|
|
52
|
+
p,
|
|
52
53
|
{
|
|
53
54
|
type: "text",
|
|
54
55
|
className: e.danger ? o : i,
|
|
55
56
|
children: e == null ? void 0 : e.label
|
|
56
57
|
}
|
|
57
58
|
) }, j) : /* @__PURE__ */ t.jsx(
|
|
58
|
-
|
|
59
|
+
p,
|
|
59
60
|
{
|
|
60
61
|
type: "text",
|
|
61
62
|
className: e.danger ? o : i,
|
|
@@ -76,20 +77,20 @@ function z({
|
|
|
76
77
|
children: "更多"
|
|
77
78
|
},
|
|
78
79
|
5
|
|
79
|
-
) : /* @__PURE__ */ t.jsx(N, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(
|
|
80
|
+
) : /* @__PURE__ */ t.jsx(N, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(p, { type: "text", className: l, children: "更多" }) }, 5)
|
|
80
81
|
);
|
|
81
82
|
}
|
|
82
83
|
return c;
|
|
83
84
|
}, [n, s]);
|
|
84
85
|
return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
|
|
85
|
-
/* @__PURE__ */ t.jsx(B, { size:
|
|
86
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
86
|
+
/* @__PURE__ */ t.jsx(B, { size: h, ref: m, className: "actionGroup", children: f }),
|
|
87
|
+
/* @__PURE__ */ t.jsx("div", { className: d })
|
|
87
88
|
] });
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
const { actionGroup: s, loading:
|
|
90
|
+
function D(n) {
|
|
91
|
+
const { actionGroup: s, loading: m, ...h } = n, { gap: i } = k(), o = y(null), l = b(o), d = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
|
|
91
92
|
return C(() => ({
|
|
92
|
-
width: Math.floor(
|
|
93
|
+
width: Math.floor(d),
|
|
93
94
|
mobileHide: !0,
|
|
94
95
|
isOperationCol: !0,
|
|
95
96
|
title: "操作",
|
|
@@ -105,16 +106,16 @@ function T(n) {
|
|
|
105
106
|
return /* @__PURE__ */ t.jsx(
|
|
106
107
|
z,
|
|
107
108
|
{
|
|
108
|
-
loading:
|
|
109
|
+
loading: m,
|
|
109
110
|
actionGroup: a,
|
|
110
111
|
refInstance: o
|
|
111
112
|
}
|
|
112
113
|
);
|
|
113
114
|
},
|
|
114
|
-
...
|
|
115
|
-
}), [
|
|
115
|
+
...h
|
|
116
|
+
}), [d, o, m, s]);
|
|
116
117
|
}
|
|
117
118
|
export {
|
|
118
119
|
z as BitzTableAction,
|
|
119
|
-
|
|
120
|
+
D as default
|
|
120
121
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { j as a } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Dropdown as e } from "antd";
|
|
3
|
+
import { useMemo as d } from "react";
|
|
4
|
+
import c from "./style.mjs";
|
|
5
|
+
const p = (o, s) => o == null ? void 0 : o.map((t) => {
|
|
6
|
+
const r = { ...t };
|
|
7
|
+
return r != null && r.children && (r.children = p(r == null ? void 0 : r.children, s), r.popupClassName = s), r;
|
|
8
|
+
}), m = ({ menu: o, ...s }) => {
|
|
9
|
+
const { popupClassName: t } = c(), r = d(() => p(o == null ? void 0 : o.items, t), [o == null ? void 0 : o.items]);
|
|
10
|
+
return /* @__PURE__ */ a.jsx(
|
|
11
|
+
e,
|
|
12
|
+
{
|
|
13
|
+
...s,
|
|
14
|
+
menu: { ...o, items: r },
|
|
15
|
+
overlayClassName: t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
m as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { useContext as $, useMemo as g } from "react";
|
|
2
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
5
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs";
|
|
6
|
+
import "../../../node_modules/.store/rc-util@5.39.1/node_modules/rc-util/es/warning.mjs";
|
|
7
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs";
|
|
8
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
+
import C from "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
+
import { TableContext as y } from "../Store/index.mjs";
|
|
14
|
+
import B from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
+
import D from "../../BitzTheme/index.mjs";
|
|
16
|
+
const P = () => {
|
|
17
|
+
const { tableSize: t } = $(y), T = g(() => t ?? "lg", [t]), { theme: c, hashId: i, token: a } = D.useToken(), m = "OperationColDropdownBtn", o = "operationColDropdownBtn", w = (x, n, e) => {
|
|
18
|
+
var r, p, d, l, u, s, z, S, f, b;
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
[`.${x}`]: {
|
|
22
|
+
".ant-dropdown-menu": {
|
|
23
|
+
fontSize: "inherit",
|
|
24
|
+
// 普通菜单
|
|
25
|
+
".ant-dropdown-menu-submenu, .ant-dropdown-menu-item": {
|
|
26
|
+
fontSize: "inherit",
|
|
27
|
+
".ant-dropdown-menu-submenu-title": {
|
|
28
|
+
fontSize: "inherit",
|
|
29
|
+
// 下一级icon字号
|
|
30
|
+
".ant-dropdown-menu-submenu-expand-icon .anticon": {
|
|
31
|
+
fontSize: "inherit"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
// 危险菜单
|
|
36
|
+
".ant-dropdown-menu-item-danger": {
|
|
37
|
+
fontSize: "inherit"
|
|
38
|
+
},
|
|
39
|
+
// 自定义icon字号
|
|
40
|
+
".ant-dropdown-menu-item-icon": {
|
|
41
|
+
fontSize: "inherit"
|
|
42
|
+
},
|
|
43
|
+
// 文本字号
|
|
44
|
+
".ant-dropdown-menu-title-conntent": {
|
|
45
|
+
fontSize: "inherit"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
[`.xl${n}`]: {
|
|
52
|
+
fontSize: (r = e.Table.xlTable) == null ? void 0 : r.fontSize,
|
|
53
|
+
".ant-dropdown-menu-submenu-expand-icon": {
|
|
54
|
+
fontSize: (((p = e.Table.xlTable) == null ? void 0 : p.fontSize) || e.fontSize) - 2
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
[`.lg${n}`]: {
|
|
60
|
+
fontSize: (d = e.Table.lgTable) == null ? void 0 : d.fontSize,
|
|
61
|
+
".ant-dropdown-menu-submenu-expand-icon": {
|
|
62
|
+
fontSize: (((l = e.Table.lgTable) == null ? void 0 : l.fontSize) || e.fontSize) - 2
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
[`.md${n}`]: {
|
|
68
|
+
fontSize: (u = e.Table.mdTable) == null ? void 0 : u.fontSize,
|
|
69
|
+
".ant-dropdown-menu-submenu-expand-icon": {
|
|
70
|
+
fontSize: (((s = e.Table.mdTable) == null ? void 0 : s.fontSize) || e.fontSize) - 2
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
[`.sm${n}`]: {
|
|
76
|
+
fontSize: (z = e.Table.smTable) == null ? void 0 : z.fontSize,
|
|
77
|
+
".ant-dropdown-menu-submenu-expand-icon": {
|
|
78
|
+
fontSize: (((S = e.Table.smTable) == null ? void 0 : S.fontSize) || e.fontSize) - 2
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
[`.xs${n}`]: {
|
|
84
|
+
fontSize: (f = e.Table.xsTable) == null ? void 0 : f.fontSize,
|
|
85
|
+
".ant-dropdown-menu-submenu-expand-icon": {
|
|
86
|
+
fontSize: (((b = e.Table.xsTable) == null ? void 0 : b.fontSize) || e.fontSize) - 2
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
};
|
|
92
|
+
C(
|
|
93
|
+
{
|
|
94
|
+
theme: c,
|
|
95
|
+
token: a,
|
|
96
|
+
hashId: i,
|
|
97
|
+
path: [o]
|
|
98
|
+
},
|
|
99
|
+
() => [w(o, m, a)]
|
|
100
|
+
);
|
|
101
|
+
const h = `${T}${m}`;
|
|
102
|
+
return {
|
|
103
|
+
popupClassName: B(o, h, i)
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
P as default
|
|
108
|
+
};
|
|
@@ -10,14 +10,6 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
10
10
|
* PC端:是否显示分页
|
|
11
11
|
*/
|
|
12
12
|
showPagination?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* 是否对偶数行填充背景颜色
|
|
15
|
-
*/
|
|
16
|
-
fillEvenRow?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 偶数行背景颜色色值,默认为#f9f9f9
|
|
19
|
-
*/
|
|
20
|
-
evenRowBgColor?: string;
|
|
21
13
|
/**
|
|
22
14
|
* PC端:BitzTable组件的整体高度,由外部通过视口高度减去其他元素高度和间隙的结果
|
|
23
15
|
*/
|
|
@@ -122,13 +114,11 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
122
114
|
*/
|
|
123
115
|
showTableTool?: boolean;
|
|
124
116
|
/**
|
|
125
|
-
*
|
|
126
|
-
* 为空不会缓存
|
|
117
|
+
* 用于配置和存储表格密度,不传则不存储
|
|
127
118
|
*/
|
|
128
119
|
sizeState?: SizeStateType;
|
|
129
120
|
/**
|
|
130
|
-
*
|
|
131
|
-
* 为空不会缓存
|
|
121
|
+
* 用于配置和存储列配置,不传则不存储
|
|
132
122
|
*/
|
|
133
123
|
columnsState?: ColumnStateType;
|
|
134
124
|
/**
|