bitz-react-admin-ui 2.4.1 → 2.4.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.
@@ -5,8 +5,9 @@ import ActionBar from './ActionBar';
5
5
  import ToolBar from './ToolBar/Wrapper';
6
6
  import ActionCol from './ActionCol';
7
7
  import SelectionBar from './SelectionBar';
8
- import { ReactNode, Ref } from 'react';
8
+ import { Key, ReactNode } from 'react';
9
9
  import { TableColumnType } from 'antd';
10
+ import { ButtonProps } from 'antd/lib';
10
11
  /** 操作按钮属性 */
11
12
  interface Action<T> {
12
13
  key?: string;
@@ -17,20 +18,34 @@ interface Action<T> {
17
18
  onClick?: () => void;
18
19
  children?: Action<T>[];
19
20
  }
21
+ interface CustomAction extends Omit<ButtonProps, 'type' | 'children' | 'className'> {
22
+ label: string;
23
+ key?: Key;
24
+ type?: 'primary' | 'secondary' | 'detail';
25
+ onClick?: () => void;
26
+ render?: (button: ReactNode, index: number) => ReactNode;
27
+ }
28
+ type CustomActionsFunType<T> = (record: T, index: number) => CustomAction[];
20
29
  /** 按钮操作列属性 */
21
- interface BitzTableActionProps<T> {
30
+ interface BitzTableActionProps<T = any> {
22
31
  loading?: boolean;
23
32
  /**
24
33
  * 操作按钮组,主要操作、次要操作、下拉列表(含危险操作)
25
34
  * @次要操作 次要操作以下拉菜单显示,如果actionGroup的长度大于3,从第4个开始直到最后的所有按钮都为次要操作按钮
26
35
  */
27
36
  actionGroup: Action<T>[];
28
- refInstance?: Ref<HTMLDivElement>;
37
+ customActions: CustomAction[];
29
38
  }
30
- type ActionsFunType<T> = (record: T, index: number) => Action<T>[];
39
+ type ActionGroupFunType<T> = (record: T, index: number) => Action<T>[];
40
+ type CustomActionsProps<T> = {
41
+ custom: CustomActionsFunType<T>;
42
+ request?: (record: T, index: number) => Promise<CustomAction[]>;
43
+ };
44
+ type ActionsFunType<T> = ActionGroupFunType<T> | CustomActionsProps<T>;
31
45
  /** ActionCol hook参数 */
32
46
  interface BitzTableActionColProps<T> extends Pick<BitzTableActionProps<T>, 'loading'>, Omit<BitzTableColumnType<T>, 'width' | 'render'> {
33
- actionGroup: ActionsFunType<T>;
47
+ actionGroup?: ActionGroupFunType<T>;
48
+ customActions?: CustomActionsFunType<T>;
34
49
  }
35
50
  /** 列的排序和显隐控制 */
36
51
  interface ColumnsConfigProps {
@@ -75,6 +90,6 @@ type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableProps> & {
75
90
  SORTER_COLUMN: typeof SORTER_COLUMN;
76
91
  };
77
92
  declare const BitzTable: CompoundedComponent;
78
- export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, ExportColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, SelelctionAlertProps, ActionsFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
93
+ export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, ExportColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, SelelctionAlertProps, ActionsFunType, CustomAction, CustomActionsFunType, ActionGroupFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
79
94
  export { BitzTableProvider, BitzTableContext };
80
95
  export default BitzTable;
@@ -5,5 +5,5 @@ export interface SelectProps<T extends BaseOptionType> extends Omit<BitzTableSel
5
5
  onChange?: (value: Key[], options: T[]) => void;
6
6
  }
7
7
  /** 下拉表格组件 */
8
- declare function TableSelect<T extends BaseOptionType>({ value, options: dataRows, columns, tableData, total, loading, loadingFailed, loadAgain, page, onPageChange, searchInput, showToolTagSelect, toolTags, onToolTagChange, lrLayout, parentRender, mode, placeholder, fieldNames, onChange, ...rest }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
8
+ declare function TableSelect<T extends BaseOptionType>({ value, options: dataRows, columns, tableData, total, loading, loadingFailed, loadAgain, page, onPageChange, searchInput, showToolTagSelect, toolTags, onToolTagChange, lrLayout, parentRender, mode, placeholder, fieldNames, onChange, onOpenChange, ...rest }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
9
9
  export default TableSelect;
@@ -1,93 +1,94 @@
1
- import { j as S } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useState as i, useEffect as b } from "react";
3
- import { Select as J } from "antd";
4
- import K from "../SelectPopup/index.mjs";
5
- function W({
1
+ import { j as b } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { useState as o, useEffect as x } from "react";
3
+ import { Select as M } from "antd";
4
+ import Q from "../SelectPopup/index.mjs";
5
+ function Z({
6
6
  value: s,
7
7
  options: t,
8
- columns: a,
9
- tableData: n,
10
- total: x,
11
- loading: V,
12
- loadingFailed: j,
13
- loadAgain: w,
14
- page: T,
15
- onPageChange: k,
16
- searchInput: y,
17
- showToolTagSelect: E,
18
- toolTags: A,
19
- onToolTagChange: B,
20
- lrLayout: D,
21
- parentRender: P,
22
- mode: d = "multiple",
23
- placeholder: v = "请选择",
24
- fieldNames: f,
8
+ columns: V,
9
+ tableData: j,
10
+ total: w,
11
+ loading: T,
12
+ loadingFailed: a,
13
+ loadAgain: k,
14
+ page: y,
15
+ onPageChange: E,
16
+ searchInput: A,
17
+ showToolTagSelect: B,
18
+ toolTags: D,
19
+ onToolTagChange: P,
20
+ lrLayout: d,
21
+ parentRender: v,
22
+ mode: F = "multiple",
23
+ placeholder: N = "请选择",
24
+ fieldNames: p,
25
25
  onChange: e,
26
- ...F
26
+ onOpenChange: c,
27
+ ...$
27
28
  }) {
28
- const [m, N] = i([]), [u, o] = i([]), [c, p] = i(!1), [O, $] = i(!1), q = () => {
29
- o([]), e == null || e([], []);
30
- }, z = (l, r, I) => {
31
- I === "confirm" ? p(!1) : (o([...r]), e == null || e([...l], [...r]));
32
- }, G = (l, r) => {
33
- o(r), e == null || e(l, r);
34
- }, H = (l) => {
35
- !c && l && p(!0), !O && !l && c && p(!1);
29
+ const [u, q] = o([]), [S, i] = o([]), [f, m] = o(!1), [z, G] = o(!1), H = () => {
30
+ i([]), e == null || e([], []);
31
+ }, I = (l, r, L) => {
32
+ L === "confirm" ? m(!1) : (i([...r]), e == null || e([...l], [...r]));
33
+ }, J = (l, r) => {
34
+ i(r), e == null || e(l, r);
35
+ }, K = (l) => {
36
+ !f && l && m(!0), !z && !l && f && m(!1), c == null || c(l);
36
37
  };
37
- return b(() => {
38
+ return x(() => {
38
39
  if (s && !Array.isArray(s))
39
40
  throw new Error(
40
41
  `form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
41
42
  );
42
- N(s ?? []);
43
- }, [s]), b(() => {
44
- t != null && t.length && o(t);
45
- }, [t]), /* @__PURE__ */ S.jsx(
46
- J,
43
+ q(s ?? []);
44
+ }, [s]), x(() => {
45
+ t != null && t.length && i(t);
46
+ }, [t]), /* @__PURE__ */ b.jsx(
47
+ M,
47
48
  {
48
49
  allowClear: !0,
49
50
  className: "tableSelectBlock",
50
51
  mode: "multiple",
51
52
  maxTagCount: "responsive",
52
- value: m,
53
- options: u,
54
- fieldNames: f,
53
+ value: u,
54
+ options: S,
55
+ fieldNames: p,
55
56
  showSearch: !1,
56
- open: c,
57
- placeholder: v,
57
+ open: f,
58
+ placeholder: N,
58
59
  popupClassName: "tableSelectPopupBlock",
59
- dropdownRender: () => /* @__PURE__ */ S.jsx(
60
- K,
60
+ dropdownRender: () => /* @__PURE__ */ b.jsx(
61
+ Q,
61
62
  {
62
- columns: a,
63
- tableData: n,
64
- total: x,
65
- page: T,
66
- onPageChange: k,
67
- searchInput: y,
68
- loading: V,
69
- loadingFailed: j,
70
- loadAgain: w,
71
- keys: m,
72
- rows: u,
73
- fieldNames: f,
74
- onChange: z,
75
- onDropdownVisibleChange: $,
76
- showToolTagSelect: E,
77
- toolTags: A,
78
- onToolTagChange: B,
79
- lrLayout: D,
80
- parentRender: P,
81
- mode: d
63
+ columns: V,
64
+ tableData: j,
65
+ total: w,
66
+ page: y,
67
+ onPageChange: E,
68
+ searchInput: A,
69
+ loading: T,
70
+ loadingFailed: a,
71
+ loadAgain: k,
72
+ keys: u,
73
+ rows: S,
74
+ fieldNames: p,
75
+ onChange: I,
76
+ onDropdownVisibleChange: G,
77
+ showToolTagSelect: B,
78
+ toolTags: D,
79
+ onToolTagChange: P,
80
+ lrLayout: d,
81
+ parentRender: v,
82
+ mode: F
82
83
  }
83
84
  ),
84
- onClear: q,
85
- onDropdownVisibleChange: H,
86
- onChange: G,
87
- ...F
85
+ onClear: H,
86
+ onDropdownVisibleChange: K,
87
+ onChange: J,
88
+ ...$
88
89
  }
89
90
  );
90
91
  }
91
92
  export {
92
- W as default
93
+ Z as default
93
94
  };
@@ -1,208 +1,206 @@
1
1
  import { j as e } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useRef as ce, useContext as ne, useState as w, useCallback as ie, useMemo as F, useEffect as ae } from "react";
3
- import { Row as b, Col as a, Space as K, Form as m, Select as O, Spin as pe, Typography as ue, Flex as de, Empty as G } from "antd";
4
- import xe from "../../BitzPagination/index.mjs";
5
- import he from "../../BitzTable/index.mjs";
6
- import H from "../../BitzButton/index.mjs";
7
- import { getColumns as me, getExpandable as je, getLayoutConfig as Se } from "./getData.mjs";
8
- import fe from "../TextBlock/index.mjs";
9
- import be from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
10
- import ye from "../../BitzTheme/index.mjs";
11
- import ge from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
12
- import { BitzConfigContext as Te } from "../../BitzConfigProvider/context.mjs";
2
+ import { useRef as re, useContext as ce, useState as B, useCallback as ne, useMemo as A, useEffect as ie } from "react";
3
+ import { Row as y, Col as p, Space as F, Form as j, Select as H, Spin as ae, Typography as pe, Flex as ue, Empty as O } from "antd";
4
+ import de from "../../BitzPagination/index.mjs";
5
+ import xe from "../../BitzTable/index.mjs";
6
+ import G from "../../BitzButton/index.mjs";
7
+ import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
8
+ import Se from "../TextBlock/index.mjs";
9
+ import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
10
+ import be from "../../BitzTheme/index.mjs";
11
+ import ye from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
12
+ import { BitzConfigContext as ge } from "../../BitzConfigProvider/context.mjs";
13
+ import we from "../../BitzHighlight/index.mjs";
13
14
  import "./index.less.mjs";
14
- import ve from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
15
- import we from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
16
- function He({
17
- columns: W,
18
- tableData: y,
19
- total: $,
20
- loading: p,
21
- loadingFailed: j,
22
- loadAgain: q,
23
- page: B,
24
- onPageChange: J,
25
- searchInput: L,
15
+ import Te from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
16
+ import ve from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
17
+ function Ge({
18
+ columns: q,
19
+ tableData: g,
20
+ total: J,
21
+ loading: u,
22
+ loadingFailed: f,
23
+ loadAgain: L,
24
+ page: z,
25
+ onPageChange: Q,
26
+ searchInput: U,
26
27
  showToolTagSelect: P,
27
- toolTags: Q,
28
- onToolTagChange: g,
28
+ toolTags: W,
29
+ onToolTagChange: w,
29
30
  lrLayout: T,
30
- parentRender: z,
31
- keys: E,
31
+ parentRender: E,
32
+ keys: R,
32
33
  rows: I,
33
- fieldNames: l,
34
- mode: R,
35
- onChange: u,
36
- onDropdownVisibleChange: S
34
+ fieldNames: t,
35
+ mode: k,
36
+ onChange: d,
37
+ onDropdownVisibleChange: b
37
38
  }) {
38
- var M, _, A;
39
- const k = ce(null), v = be(k), { token: c } = ye.useToken(), C = ((M = c == null ? void 0 : c.BitzTableSelect) == null ? void 0 : M.tableSpaceBetweenPage) ?? 10, U = ((_ = ne(Te).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [s, X] = w([]), [r, Y] = w([]), [Z, D] = w(void 0), V = (t, o) => {
40
- D(t), g == null || g(t, o), t || (S(!0), setTimeout(() => {
41
- S(!1);
39
+ var K, _, $;
40
+ const C = re(null), v = fe(C), { token: n } = be.useToken(), M = ((K = n == null ? void 0 : n.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, X = ((_ = ce(ge).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [i, Y] = B([]), [c, Z] = B([]), [D, V] = B(void 0), N = (o, s) => {
41
+ V(o), w == null || w(o, s), o || (b(!0), setTimeout(() => {
42
+ b(!1);
42
43
  }, 0));
43
- }, N = me(W, y, B), ee = {
44
- type: R === "single" ? "radio" : "checkbox",
45
- selectedRowKeys: s,
46
- ...R === "single" ? {
47
- onChange(t, o) {
48
- s.length = 0, r.length = 0, s.push(...t), r.push(...o), u(t, o);
44
+ }, ee = me(q, g, z), te = {
45
+ type: k === "single" ? "radio" : "checkbox",
46
+ selectedRowKeys: i,
47
+ ...k === "single" ? {
48
+ onChange(o, s) {
49
+ d(o, s);
49
50
  }
50
51
  } : {
51
- onSelect: (t, o) => {
52
- if (o)
53
- s.push(t[l.value]), r.push(t), u(s, r);
54
- else {
55
- const d = r.filter(
56
- (x) => x[l.value] !== t[l.value]
52
+ onSelect: (o, s) => {
53
+ if (s) {
54
+ const l = i.concat([o[t.value]]), r = c.concat([o]);
55
+ d(l, r);
56
+ } else {
57
+ const l = c.filter(
58
+ (r) => r[t.value] !== o[t.value]
57
59
  );
58
- u(
59
- d.map((x) => x[l.value]),
60
- d
60
+ d(
61
+ l.map((r) => r[t.value]),
62
+ l
61
63
  );
62
64
  }
63
65
  },
64
- onSelectAll: (t, o, d) => {
65
- const x = d.map((i) => i[l.value]);
66
- if (t) {
67
- const i = s.concat(x), f = r.concat(d);
68
- u(i, f);
66
+ onSelectAll: (o, s, l) => {
67
+ const r = l.map((x) => x[t.value]);
68
+ if (o) {
69
+ const x = i.concat(r), m = c.concat(l);
70
+ d(x, m);
69
71
  } else {
70
- const i = s == null ? void 0 : s.filter((h) => !x.includes(h)), f = /* @__PURE__ */ new Map();
71
- d.forEach((h) => {
72
- f.set(h[l.value], h);
72
+ const x = i == null ? void 0 : i.filter((h) => !r.includes(h)), m = /* @__PURE__ */ new Map();
73
+ l.forEach((h) => {
74
+ m.set(h[t.value], h);
73
75
  });
74
- const se = r == null ? void 0 : r.filter(
75
- (h) => !f.has(h[l.value])
76
+ const S = c == null ? void 0 : c.filter(
77
+ (h) => !m.has(h[t.value])
76
78
  );
77
- u(i, se);
79
+ d(x, S);
78
80
  }
79
81
  }
80
82
  }
81
- }, te = ie(() => je(l.items, p), [l.items, p]), le = (t, o) => /* @__PURE__ */ e.jsxs("span", { style: { color: c.colorText }, children: [
82
- t[0],
83
- " ",
84
- /* @__PURE__ */ e.jsx("span", { style: { color: c.colorPrimary, fontWeight: 600 }, children: o }),
85
- " ",
86
- t[1]
87
- ] }), re = () => {
88
- const t = (o) => {
89
- const d = r.findIndex(
90
- (i) => i[l.value] === o[l.value]
91
- ), x = s.findIndex(
92
- (i) => i === o[l.value]
83
+ }, oe = ne(() => he(t.items, u), [t.items, u]), se = () => {
84
+ const o = (s) => {
85
+ const l = [...i], r = [...c], x = l.findIndex((S) => S === s[t.value]), m = r.findIndex(
86
+ (S) => S[t.value] === s[t.value]
93
87
  );
94
- r.splice(d, 1), s.splice(x, 1), u(s, r);
88
+ r.splice(m, 1), l.splice(x, 1), d(l, r);
95
89
  };
96
90
  return /* @__PURE__ */ e.jsxs(
97
- K,
91
+ F,
98
92
  {
99
93
  direction: "vertical",
100
94
  style: {
101
95
  width: "calc(100% - 5px)",
102
96
  paddingRight: 5,
103
- maxHeight: r.length ? 220 : "auto",
97
+ maxHeight: c.length ? 220 : "auto",
104
98
  overflow: "hidden auto"
105
99
  },
106
100
  children: [
107
- r.map((o) => /* @__PURE__ */ e.jsxs(
108
- de,
101
+ c.map((s) => /* @__PURE__ */ e.jsxs(
102
+ ue,
109
103
  {
110
104
  justify: "space-between",
111
105
  style: {
112
106
  padding: "4px 8px",
113
- border: `1px solid ${c.colorBorder}`,
107
+ border: `1px solid ${n.colorBorder}`,
114
108
  backgroundColor: "#f5f5f5",
115
- borderRadius: c.borderRadiusSM,
109
+ borderRadius: n.borderRadiusSM,
116
110
  overflow: "hidden"
117
111
  },
118
112
  children: [
119
- /* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(fe, { value: o[l.label] }) }),
113
+ /* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: s[t.label] }) }),
120
114
  /* @__PURE__ */ e.jsx(
121
- we,
115
+ ve,
122
116
  {
123
117
  style: {
124
- color: c.colorError,
118
+ color: n.colorError,
125
119
  fontSize: 13,
126
120
  cursor: "pointer"
127
121
  },
128
- onClick: () => t(o)
122
+ onClick: () => o(s)
129
123
  }
130
124
  )
131
125
  ]
132
126
  },
133
- o[l.value]
127
+ s[t.value]
134
128
  )),
135
- !r.length && /* @__PURE__ */ e.jsx(G, { image: G.PRESENTED_IMAGE_SIMPLE })
129
+ !c.length && /* @__PURE__ */ e.jsx(O, { image: O.PRESENTED_IMAGE_SIMPLE })
136
130
  ]
137
131
  }
138
132
  );
139
- }, n = F(() => Se(T, P), [T, P]), oe = F(() => ge(
140
- { loadingTable: p },
141
- { loadingFailedTable: j },
133
+ }, a = A(() => je(T, P), [T, P]), le = A(() => ye(
134
+ { loadingTable: u },
135
+ { loadingFailedTable: f },
142
136
  "bitzSelectTable"
143
- ), [j, p]);
144
- return ae(() => {
145
- X(E ?? []), Y(I ?? []);
146
- }, [E, I]), /* @__PURE__ */ e.jsxs(b, { gutter: n.gutter, children: [
147
- /* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && z && z(C, v == null ? void 0 : v.height) }),
148
- /* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(K, { direction: "vertical", size: C, style: { width: "100%" }, children: [
149
- /* @__PURE__ */ e.jsx(m, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(b, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(b, { justify: "space-between", gutter: [16, 16], children: [
150
- /* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(m.Item, { children: L }) }),
151
- /* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(b, { justify: "end", gutter: 8, children: [
152
- /* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(m.Item, { children: /* @__PURE__ */ e.jsx(
153
- O,
137
+ ), [f, u]);
138
+ return ie(() => {
139
+ Y(R ?? []), Z(I ?? []);
140
+ }, [R, I]), /* @__PURE__ */ e.jsxs(y, { gutter: a.gutter, children: [
141
+ /* @__PURE__ */ e.jsx(p, { span: a.left.span, children: T && E && E(M, v == null ? void 0 : v.height) }),
142
+ /* @__PURE__ */ e.jsx(p, { span: a.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
143
+ /* @__PURE__ */ e.jsx(j, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(y, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(p, { span: 24, children: /* @__PURE__ */ e.jsxs(y, { justify: "space-between", gutter: [16, 16], children: [
144
+ /* @__PURE__ */ e.jsx(p, { span: a.right.search, children: /* @__PURE__ */ e.jsx(j.Item, { children: U }) }),
145
+ /* @__PURE__ */ e.jsx(p, { span: a.right.operation, children: /* @__PURE__ */ e.jsxs(y, { justify: "end", gutter: 8, children: [
146
+ /* @__PURE__ */ e.jsx(p, { span: a.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(j.Item, { children: /* @__PURE__ */ e.jsx(
147
+ H,
154
148
  {
155
149
  allowClear: !0,
156
150
  className: "tableSelectPopupToolTagSelect",
157
151
  style: {
158
152
  width: "100%",
159
- "--toolTagSelect-color": p ? c.colorTextDisabled : c.colorText
153
+ "--toolTagSelect-color": u ? n.colorTextDisabled : n.colorText
160
154
  },
161
155
  placeholder: "常用标签",
162
156
  showSearch: !1,
163
- disabled: p,
164
- options: Q,
165
- value: Z,
166
- onChange: V,
167
- onDropdownVisibleChange: S
157
+ disabled: u,
158
+ options: W,
159
+ value: D,
160
+ onChange: N,
161
+ onDropdownVisibleChange: b
168
162
  }
169
163
  ) }) }),
170
- /* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(m.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
164
+ /* @__PURE__ */ e.jsx(p, { span: a.right.totalSelect, children: /* @__PURE__ */ e.jsx(j.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
171
165
  /* @__PURE__ */ e.jsx(
172
- O,
166
+ H,
173
167
  {
174
168
  style: { width: "100%" },
175
169
  mode: "multiple",
176
170
  placeholder: "",
177
171
  showSearch: !1,
178
- options: r,
179
- value: s,
180
- fieldNames: l,
172
+ options: c,
173
+ value: i,
174
+ fieldNames: t,
181
175
  popupClassName: "tableSelectPopupTotalPopup",
182
- dropdownRender: re,
176
+ dropdownRender: se,
183
177
  tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
184
- onDropdownVisibleChange: S
178
+ onDropdownVisibleChange: b
185
179
  }
186
180
  ),
187
- /* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: le(
188
- ["已选择", "条数据"],
189
- s.length || 0
181
+ /* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: /* @__PURE__ */ e.jsx(
182
+ we,
183
+ {
184
+ highlightTag: "strong",
185
+ sourceString: `已选择 ${i.length || 0} 条数据`,
186
+ keywords: `${i.length || 0}`
187
+ }
190
188
  ) })
191
189
  ] }) }) }),
192
- /* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
193
- H,
190
+ /* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
191
+ G,
194
192
  {
195
193
  type: "primary",
196
194
  danger: !0,
197
- onClick: () => u([], [], "clear"),
195
+ onClick: () => d([], [], "clear"),
198
196
  children: "清空"
199
197
  }
200
198
  ) }),
201
- /* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
202
- H,
199
+ /* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
200
+ G,
203
201
  {
204
202
  type: "primary",
205
- onClick: () => u([], [], "confirm"),
203
+ onClick: () => d([], [], "confirm"),
206
204
  children: "确认"
207
205
  }
208
206
  ) })
@@ -211,34 +209,34 @@ function He({
211
209
  /* @__PURE__ */ e.jsx(
212
210
  "div",
213
211
  {
214
- ref: k,
215
- ...j && {
212
+ ref: C,
213
+ ...f && {
216
214
  className: "pointerMouse",
217
- onClick: () => q()
215
+ onClick: () => L()
218
216
  },
219
217
  children: /* @__PURE__ */ e.jsx(
220
- pe,
218
+ ae,
221
219
  {
222
- spinning: j,
223
- indicator: /* @__PURE__ */ e.jsx(ve, {}),
224
- tip: /* @__PURE__ */ e.jsx(ue.Text, { type: "danger", children: "加载失败,点击重试" }),
220
+ spinning: f,
221
+ indicator: /* @__PURE__ */ e.jsx(Te, {}),
222
+ tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
225
223
  children: /* @__PURE__ */ e.jsx(
226
- he,
224
+ xe,
227
225
  {
228
- size: U,
229
- rowKey: l.value,
230
- loading: p,
226
+ size: X,
227
+ rowKey: t.value,
228
+ loading: u,
231
229
  bordered: "row-column",
232
230
  scroll: { x: 1, y: 400 },
233
231
  showPagination: !1,
234
232
  showTableTool: !1,
235
- rowSelection: ee,
236
- columns: N,
237
- dataSource: y,
238
- className: oe,
239
- ...te(),
233
+ rowSelection: te,
234
+ columns: ee,
235
+ dataSource: g,
236
+ className: le,
237
+ ...oe(),
240
238
  style: {
241
- "--tableBody-bootomBorderColor": ((A = c.Table) == null ? void 0 : A.borderColor) || c.colorBorderSecondary
239
+ "--tableBody-bootomBorderColor": (($ = n.Table) == null ? void 0 : $.borderColor) || n.colorBorderSecondary
242
240
  }
243
241
  }
244
242
  )
@@ -246,22 +244,22 @@ function He({
246
244
  )
247
245
  }
248
246
  ),
249
- /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(m.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
250
- xe,
247
+ /* @__PURE__ */ e.jsx(j, { children: /* @__PURE__ */ e.jsx(j.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
248
+ de,
251
249
  {
252
- disabled: p,
250
+ disabled: u,
253
251
  className: "tableSelectPopupTablePagination",
254
252
  size: "small",
255
253
  enableControl: !0,
256
- pagination: B,
257
- total: $,
258
- dataSource: y,
259
- paginationEmit: J
254
+ pagination: z,
255
+ total: J,
256
+ dataSource: g,
257
+ paginationEmit: Q
260
258
  }
261
259
  ) }) })
262
260
  ] }) })
263
261
  ] });
264
262
  }
265
263
  export {
266
- He as default
264
+ Ge as default
267
265
  };