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.
Files changed (31) hide show
  1. package/dist/_virtual/dayjs.min.mjs +2 -5
  2. package/dist/components/BitzCalendar/index.mjs +1 -1
  3. package/dist/components/BitzConfigProvider/context.d.ts +8 -1
  4. package/dist/components/BitzConfigProvider/index.mjs +26 -9
  5. package/dist/components/BitzDayJs/index.mjs +1 -1
  6. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  12. package/dist/components/BitzHighlight/Highlight.mjs +19 -19
  13. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  15. package/dist/components/BitzTabbar/BitzTabbar.d.ts +2 -2
  16. package/dist/components/BitzTabbar/BitzTabbar.mjs +33 -30
  17. package/dist/components/BitzTable/ActionCol/index.mjs +19 -18
  18. package/dist/components/BitzTable/Dropdown/index.d.ts +4 -0
  19. package/dist/components/BitzTable/Dropdown/index.mjs +21 -0
  20. package/dist/components/BitzTable/Dropdown/style.d.ts +4 -0
  21. package/dist/components/BitzTable/Dropdown/style.mjs +108 -0
  22. package/dist/components/BitzTable/Table/index.d.ts +2 -12
  23. package/dist/components/BitzTable/Table/index.mjs +221 -211
  24. package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +14 -13
  25. package/dist/config.d.ts +2 -0
  26. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  27. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  28. package/dist/style.css +1 -1
  29. package/dist/utils/time.mjs +1 -1
  30. package/package.json +2 -2
  31. package/dist/_virtual/dayjs.min2.mjs +0 -4
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
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
- s as default
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 "../../_virtual/dayjs.min.mjs";
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 r } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { ConfigProvider as e } from "antd";
3
- import { BitzConfigContext as n } from "./context.mjs";
4
- const x = ({
5
- children: o,
6
- context: i,
7
- ...t
8
- }) => /* @__PURE__ */ r.jsx(e, { ...t, children: /* @__PURE__ */ r.jsx(n.Provider, { value: i ?? {}, children: o }) });
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
- x as default
27
+ w as default
11
28
  };
@@ -1,4 +1,4 @@
1
- import t from "../../_virtual/dayjs.min.mjs";
1
+ import t from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -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 "../../_virtual/dayjs.min.mjs";
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 "../../_virtual/dayjs.min.mjs";
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 "../../_virtual/dayjs.min.mjs";
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 "../../_virtual/dayjs.min.mjs";
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 "../../_virtual/dayjs.min.mjs";
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 "../../_virtual/dayjs.min.mjs";
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 M from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
3
- import { useMemo as R } from "react";
4
- import U from "./chunks.mjs";
5
- import $ from "./style.mjs";
6
- const A = ({
7
- autoEscape: o = !0,
8
- caseSensitive: m = !1,
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: l,
11
+ keywords: o,
12
12
  tag: i = "div",
13
13
  tagClass: c,
14
14
  highlightTag: h = "span",
15
15
  highlightClass: g,
16
- unhighlightTag: p = "span",
17
- unhighlightClass: u = ""
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
- } = $({ tagClass: c, highlightClass: g }), x = R(() => M(f, {
23
+ } = M({ tagClass: c, highlightClass: g }), x = G(() => E(f, {
24
24
  [`${d}`]: e === "secondary"
25
- }), [e]), s = U(
26
- o,
25
+ }), [e]), s = H(
27
26
  m,
28
27
  l,
28
+ o,
29
29
  t
30
- ), C = h, j = p, y = () => s != null && s.length ? s.map((H, r) => {
31
- const { start: v, end: E, highlight: G } = H, n = t.slice(v, E);
32
- return G ? /* @__PURE__ */ a.jsx(C, { className: N, children: n }, r) : /* @__PURE__ */ a.jsx(j, { className: u, children: n }, r);
33
- }) : t, T = i;
34
- return /* @__PURE__ */ a.jsx(T, { className: x, children: y() });
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
- A as default
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 "../../_virtual/dayjs.min.mjs";
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 "../../_virtual/dayjs.min.mjs";
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, { FC } from '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: FC<BitzTabbarProps>;
25
+ declare const BitzTabbar: React.ForwardRefExoticComponent<BitzTabbarProps & React.RefAttributes<HTMLDivElement>>;
26
26
  export default BitzTabbar;
@@ -1,35 +1,38 @@
1
- import { j as C } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import b, { useMemo as o, useRef as E, useEffect as T } from "react";
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
- const j = ({
5
- value: m,
6
- zIndex: d = 1,
7
- route: p,
8
- fixed: n = !0,
9
- border: c = !0,
10
- safeAreaInsetBottom: t = !0,
11
- placeholder: a = !0,
12
- onChange: f,
13
- children: h
14
- }) => {
15
- const B = o(() => c ? " bitzTabbarBlockBorder" : "", [c]), x = o(() => n ? " bitzTabbarFixedBlock" : "", [n]), g = o(() => t ? " bitzTabbarBlockBottomSafe" : "", [t]), r = E(null);
16
- T(() => {
17
- var e, i, u;
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
- f(e);
19
+ b(e);
29
20
  }
30
- }, z = (e) => b.cloneElement(e, k);
31
- return /* @__PURE__ */ C.jsx("div", { ref: r, className: `bitzTabbarBlock${x}${B}${g}`, style: { zIndex: d }, children: b.Children.map(h, z) });
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
- j as default
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 { Dropdown as N, Space as B, Skeleton as w } from "antd";
3
+ import { Space as B, Skeleton as w } from "antd";
4
4
  import { useRef as y, useMemo as C } from "react";
5
- import h from "../../BitzButton/index.mjs";
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(h, { type: "text", ...s, children: [
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: d
29
+ refInstance: m
29
30
  }) {
30
31
  const {
31
- gap: p,
32
+ gap: h,
32
33
  primaryBtnClassName: i,
33
34
  dangerBtnClassName: o,
34
35
  dropdownBtnClassName: l,
35
- maskClassName: m,
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
- h,
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
- h,
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(h, { type: "text", className: l, children: "更多" }) }, 5)
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: p, ref: d, className: "actionGroup", children: f }),
86
- /* @__PURE__ */ t.jsx("div", { className: m })
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 T(n) {
90
- const { actionGroup: s, loading: d, ...p } = n, { gap: i } = k(), o = y(null), l = b(o), m = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
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(m),
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: d,
109
+ loading: m,
109
110
  actionGroup: a,
110
111
  refInstance: o
111
112
  }
112
113
  );
113
114
  },
114
- ...p
115
- }), [m, o, d, s]);
115
+ ...h
116
+ }), [d, o, m, s]);
116
117
  }
117
118
  export {
118
119
  z as BitzTableAction,
119
- T as default
120
+ D as default
120
121
  };
@@ -0,0 +1,4 @@
1
+ import { DropdownProps } from 'antd';
2
+ import { FC } from 'react';
3
+ declare const Dropdown: FC<DropdownProps>;
4
+ export default Dropdown;
@@ -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,4 @@
1
+ declare const useGenStyle: () => {
2
+ popupClassName: string;
3
+ };
4
+ export default useGenStyle;
@@ -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
  /**