bitz-react-admin-ui 1.6.5 → 1.6.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/README.md +2 -2
- package/dist/bitz-ui.mjs +126 -120
- package/dist/components/BitzFluentInput/index.mjs +20 -17
- package/dist/components/BitzFluentSelect/index.mjs +20 -18
- package/dist/components/BitzList/List.mjs +28 -0
- package/dist/components/BitzList/LoadMore.mjs +69 -0
- package/dist/components/BitzList/index.less.mjs +4 -0
- package/dist/components/BitzList/index.mjs +6 -0
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +113 -0
- package/dist/components/BitzPullRefresh/index.mjs +6 -0
- package/dist/components/BitzPullRefresh/style/index.less.mjs +4 -0
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +133 -94
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +64 -0
- package/dist/components/BitzTable/ActionBar/Button.mjs +10 -0
- package/dist/components/BitzTable/ActionBar/index.mjs +6 -60
- package/dist/components/BitzTable/ActionBar/style.mjs +36 -32
- package/dist/components/BitzTable/ActionCol/index.mjs +29 -28
- package/dist/components/BitzTable/Table/index.mjs +302 -253
- package/dist/components/BitzTable/TableSkeleton/index.mjs +46 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +179 -173
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/DndItem.mjs +28 -26
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +10 -9
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +1 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +28 -25
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +3 -2
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +23 -14
- package/dist/components/BitzTable/ToolBar/style.mjs +29 -20
- package/dist/hooks/use-event-listener.mjs +40 -0
- package/dist/hooks/use-lock-fn.mjs +21 -0
- package/dist/hooks/use-scroll-parent.mjs +34 -0
- package/dist/hooks/use-touch.mjs +33 -0
- package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +751 -1050
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/.store/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +48 -37
- package/dist/node_modules/_clsx@2.1.0@clsx/dist/clsx.mjs +23 -0
- package/dist/style.css +1 -1
- package/dist/type/bitz-ui.d.ts +2 -0
- package/dist/type/components/BitzList/List.d.ts +4 -0
- package/dist/type/components/BitzList/LoadMore.d.ts +4 -0
- package/dist/type/components/BitzList/PropsType.d.ts +35 -0
- package/dist/type/components/BitzList/index.d.ts +5 -0
- package/dist/type/components/BitzPagination/index.d.ts +8 -2
- package/dist/type/components/BitzPullRefresh/PropsType.d.ts +43 -0
- package/dist/type/components/BitzPullRefresh/PullRefresh.d.ts +4 -0
- package/dist/type/components/BitzPullRefresh/index.d.ts +5 -0
- package/dist/type/components/BitzSelect/component/BitzSelectMobile.d.ts +1 -0
- package/dist/type/components/BitzTable/ActionBar/ActionBar.d.ts +37 -0
- package/dist/type/components/BitzTable/ActionBar/Button.d.ts +6 -0
- package/dist/type/components/BitzTable/ActionBar/index.d.ts +6 -33
- package/dist/type/components/BitzTable/ActionBar/style.d.ts +2 -2
- package/dist/type/components/BitzTable/Store/index.d.ts +2 -3
- package/dist/type/components/BitzTable/Table/index.d.ts +2 -2
- package/dist/type/components/BitzTable/TableSkeleton/index.d.ts +1 -1
- package/dist/type/components/BitzTable/ToolBar/ExportIcon/index.d.ts +2 -1
- package/dist/type/components/BitzTable/ToolBar/style.d.ts +1 -2
- package/dist/type/components/BitzTable/index.d.ts +6 -7
- package/dist/type/hooks/use-event-listener.d.ts +11 -0
- package/dist/type/hooks/use-lock-fn.d.ts +2 -0
- package/dist/type/hooks/use-scroll-parent.d.ts +9 -0
- package/dist/type/hooks/use-touch.d.ts +18 -0
- package/dist/type/pages/Login2/useRowSelection.d.ts +6 -4
- package/dist/type/pages/Test/index.d.ts +3 -0
- package/dist/type/utils/get-default-props.d.ts +2 -0
- package/dist/type/utils/scroll.d.ts +6 -0
- package/dist/utils/get-default-props.mjs +12 -0
- package/dist/utils/scroll.mjs +15 -0
- package/package.json +2 -1
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
3
|
+
import { Dropdown as N, Space as B, Skeleton as w } from "antd";
|
|
4
4
|
import { useRef as y, useMemo as C } from "react";
|
|
5
5
|
import h from "../../BitzButton/index.mjs";
|
|
6
6
|
import k from "./style.mjs";
|
|
7
|
-
const
|
|
7
|
+
const g = ({
|
|
8
8
|
skeletonCls: n,
|
|
9
9
|
...s
|
|
10
10
|
}) => /* @__PURE__ */ t.jsxs(h, { type: "text", ...s, children: [
|
|
@@ -30,75 +30,76 @@ function z({
|
|
|
30
30
|
const {
|
|
31
31
|
gap: p,
|
|
32
32
|
primaryBtnClassName: i,
|
|
33
|
-
dangerBtnClassName:
|
|
33
|
+
dangerBtnClassName: o,
|
|
34
34
|
dropdownBtnClassName: l,
|
|
35
35
|
maskClassName: m,
|
|
36
|
-
skeletonBtnClassName:
|
|
37
|
-
skeletonClassName:
|
|
36
|
+
skeletonBtnClassName: u,
|
|
37
|
+
skeletonClassName: x
|
|
38
38
|
} = k(), f = C(() => {
|
|
39
|
-
const
|
|
39
|
+
const r = s.length >= 4 ? 2 : s.length, a = s.slice(0, r), c = [];
|
|
40
40
|
if (a != null && a.length && a.forEach((e, j) => {
|
|
41
41
|
c.push(
|
|
42
42
|
n ? /* @__PURE__ */ t.jsx(
|
|
43
|
-
|
|
43
|
+
g,
|
|
44
44
|
{
|
|
45
|
-
className:
|
|
46
|
-
skeletonCls:
|
|
45
|
+
className: u,
|
|
46
|
+
skeletonCls: x,
|
|
47
47
|
children: e == null ? void 0 : e.label
|
|
48
48
|
},
|
|
49
49
|
j
|
|
50
|
-
) : e.children ? /* @__PURE__ */ t.jsx(
|
|
50
|
+
) : e.children ? /* @__PURE__ */ t.jsx(N, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
|
|
51
51
|
h,
|
|
52
52
|
{
|
|
53
53
|
type: "text",
|
|
54
|
-
className: e.danger ?
|
|
54
|
+
className: e.danger ? o : i,
|
|
55
55
|
children: e == null ? void 0 : e.label
|
|
56
56
|
}
|
|
57
57
|
) }, j) : /* @__PURE__ */ t.jsx(
|
|
58
58
|
h,
|
|
59
59
|
{
|
|
60
60
|
type: "text",
|
|
61
|
-
className: e.danger ?
|
|
61
|
+
className: e.danger ? o : i,
|
|
62
62
|
onClick: e == null ? void 0 : e.onClick,
|
|
63
63
|
children: e == null ? void 0 : e.label
|
|
64
64
|
},
|
|
65
65
|
j
|
|
66
66
|
)
|
|
67
67
|
);
|
|
68
|
-
}),
|
|
68
|
+
}), r === 2 && s.length >= 4) {
|
|
69
69
|
const e = s.slice(2, s.length);
|
|
70
70
|
c.push(
|
|
71
71
|
n ? /* @__PURE__ */ t.jsx(
|
|
72
|
-
|
|
72
|
+
g,
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
75
|
-
skeletonCls:
|
|
74
|
+
className: u,
|
|
75
|
+
skeletonCls: x,
|
|
76
76
|
children: "更多"
|
|
77
77
|
},
|
|
78
78
|
5
|
|
79
|
-
) : /* @__PURE__ */ t.jsx(
|
|
79
|
+
) : /* @__PURE__ */ t.jsx(N, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: l, children: "更多" }) }, 5)
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
return c;
|
|
83
83
|
}, [n, s]);
|
|
84
|
-
return /* @__PURE__ */ t.jsxs("div", { onClick: (
|
|
85
|
-
/* @__PURE__ */ t.jsx(B, { size: p, ref: d, children: f }),
|
|
84
|
+
return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
|
|
85
|
+
/* @__PURE__ */ t.jsx(B, { size: p, ref: d, className: "actionGroup", children: f }),
|
|
86
86
|
/* @__PURE__ */ t.jsx("div", { className: m })
|
|
87
87
|
] });
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const { actionGroup: s, loading: d, ...p } = n, { gap: i } = k(),
|
|
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]);
|
|
91
91
|
return C(() => ({
|
|
92
|
-
width: m,
|
|
93
|
-
|
|
92
|
+
width: Math.floor(m),
|
|
93
|
+
mobileHide: !0,
|
|
94
94
|
isOperationCol: !0,
|
|
95
95
|
title: "操作",
|
|
96
96
|
fixed: "right",
|
|
97
97
|
key: "operationCol",
|
|
98
98
|
dataIndex: "operationCol",
|
|
99
|
+
className: "operationCol",
|
|
99
100
|
disable: !0,
|
|
100
|
-
render: (
|
|
101
|
-
const a = s(f,
|
|
101
|
+
render: (x, f, r) => {
|
|
102
|
+
const a = s(f, r).filter(
|
|
102
103
|
(c) => c.type != "detail"
|
|
103
104
|
);
|
|
104
105
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -106,14 +107,14 @@ function D(n) {
|
|
|
106
107
|
{
|
|
107
108
|
loading: d,
|
|
108
109
|
actionGroup: a,
|
|
109
|
-
refInstance:
|
|
110
|
+
refInstance: o
|
|
110
111
|
}
|
|
111
112
|
);
|
|
112
113
|
},
|
|
113
114
|
...p
|
|
114
|
-
}), [m,
|
|
115
|
+
}), [m, o, d, s]);
|
|
115
116
|
}
|
|
116
117
|
export {
|
|
117
118
|
z as BitzTableAction,
|
|
118
|
-
|
|
119
|
+
T as default
|
|
119
120
|
};
|