@zw-team/react-lib 1.0.1 → 1.0.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/README.md CHANGED
@@ -78,30 +78,61 @@ pnpm build:storybook# 生成静态化 Storybook(输出到 storybook-static/)
78
78
 
79
79
  ## 导出与使用方式
80
80
 
81
- ### 组件导出模式
81
+ ### 在业务项目中安装
82
82
 
83
- 组件库采用多入口点导出方式,支持按需导入:
83
+ ```bash
84
+ pnpm add @zw-team/react-lib
85
+ # 或
86
+ npm install @zw-team/react-lib
87
+ ```
88
+
89
+ 请确保业务项目已安装并满足 `package.json` 中声明的 **peerDependencies**:`react`、`react-dom`、`antd`、`@ant-design/icons`、`axios`、`dayjs`、`zustand`(版本需落在各自兼容范围内),否则可能出现重复实例、类型或运行期错误。
90
+
91
+ ### 按需引入(组件 / Hooks / Utils / Config)
92
+
93
+ 组件库采用多入口 `exports`,可按子路径按需加载:
84
94
 
85
- - **主入口**(`@zw-team/react-lib`):导出所有组件
95
+ - **主入口**(`@zw-team/react-lib`):导出组件及主题相关(不含 Hooks、Utils,见 `src/index.ts`)
86
96
  ```typescript
87
97
  import { BiAvatar, BiBlock } from '@zw-team/react-lib'
88
98
  ```
89
99
 
90
- - **组件入口**(`@zw-team/react-lib/components`):仅导出组件
100
+ - **组件入口**(`@zw-team/react-lib/components`)
91
101
  ```typescript
92
102
  import { BiAvatar, BiBlock } from '@zw-team/react-lib/components'
93
103
  ```
94
104
 
95
- - **Hooks 入口**(`@zw-team/react-lib/hooks`):导出工具 Hooks
105
+ - **Hooks 入口**(`@zw-team/react-lib/hooks`)
96
106
  ```typescript
97
107
  import { useLatest, usePermission } from '@zw-team/react-lib/hooks'
98
108
  ```
99
109
 
100
- - **工具入口**(`@zw-team/react-lib/utils`):导出工具函数
110
+ - **工具入口**(`@zw-team/react-lib/utils`)
101
111
  ```typescript
102
112
  import { request, ossUpload } from '@zw-team/react-lib/utils'
103
113
  ```
104
114
 
115
+ - **配置入口**(`@zw-team/react-lib/config`):环境枚举、服务 URL 等(以包内实际导出为准)
116
+ ```typescript
117
+ import { EnvType, getServiceURL } from '@zw-team/react-lib/config'
118
+ ```
119
+
120
+ ### 样式与 Sass(使用带 `.scss` 的组件时必读)
121
+
122
+ 部分组件在产物中仍 `import` **`.scss`** 文件,业务侧打包器必须能解析 Sass。未配置时易出现类似 `Module parse failed` / `Expression expected`(把 SCSS 当成 JS 解析)的报错。
123
+
124
+ - **Rsbuild**:安装 `@rsbuild/plugin-sass` 并在配置中注册(参考 [npm 说明](https://www.npmjs.com/package/@rsbuild/plugin-sass))。
125
+ ```typescript
126
+ import { defineConfig } from '@rsbuild/core'
127
+ import { pluginSass } from '@rsbuild/plugin-sass'
128
+
129
+ export default defineConfig({
130
+ plugins: [pluginSass()],
131
+ })
132
+ ```
133
+ - **Vite**:一般需在项目中安装 `sass`(常见做法为开发依赖)。
134
+ - **Webpack**:需配置 `sass-loader` 等以处理 `.scss`。
135
+
105
136
  ### 组件命名规范
106
137
 
107
138
  所有组件统一使用 `Bi` 前缀(如 `BiAvatar`、`BiBlock`、`BiForm`)可在组件的index.ts重新命名加上Bi,便于识别和避免命名冲突。
@@ -142,10 +173,7 @@ pnpm dev
142
173
 
143
174
  ```bash
144
175
  # 在目标项目中执行
145
- pnpm unlink @zw-team/react-lib
146
- ```
147
-
148
-
176
+ pnpm unlink @zw-team/react-lib
149
177
  ```
150
178
 
151
179
  ### 注意事项
@@ -164,37 +192,40 @@ pnpm unlink @zw-team/react-lib
164
192
 
165
193
  ## 目录结构(节选)
166
194
 
167
- ```
195
+ ```text
168
196
  .
169
- ├── .storybook/ # Storybook 工程配置
197
+ ├── .storybook/ # Storybook 工程配置
170
198
  ├── src/
171
- │ ├── components/ # 组件目录
172
- │ │ ├── Avatar/ # Avatar 组件
199
+ │ ├── components/ # 组件目录
200
+ │ │ ├── Avatar/
173
201
  │ │ │ ├── Avatar.tsx
174
- │ │ │ ├── index.ts # 导出:export { default as BiAvatar } from './Avatar'
175
- │ │ │ └── types.ts # 类型定义
176
- │ │ ├── Block/ # Block 组件
202
+ │ │ │ ├── index.ts # 如: export { default as BiAvatar } from './Avatar'
203
+ │ │ │ └── types.ts
204
+ │ │ ├── Block/
177
205
  │ │ │ ├── Block.tsx
178
206
  │ │ │ ├── Block.css
179
207
  │ │ │ ├── index.ts
180
208
  │ │ │ └── types.ts
181
- │ │ ├── ... # 其他组件
182
- │ │ └── index.ts # 组件统一导出入口
183
- │ ├── hooks/ # 工具 Hooks
209
+ │ │ ├── ...
210
+ │ │ └── index.ts # 组件统一导出
211
+ │ ├── hooks/
184
212
  │ │ ├── useLatest.ts
185
213
  │ │ ├── usePermission.ts
186
- │ │ └── index.ts # Hooks 导出入口
187
- │ ├── utils/ # 工具函数
214
+ │ │ └── index.ts
215
+ │ ├── utils/
188
216
  │ │ ├── date.ts
189
217
  │ │ ├── ossUpload.ts
190
218
  │ │ ├── request/
191
- │ │ └── index.ts # Utils 导出入口
192
- │ └── index.ts # 主入口(导出所有组件)
193
- ├── stories/ # Storybook 示例
194
- ├── dist/ # 构建后产物(由 rslib 生成)
195
- ├── rslib.config.ts # rslib 打包配置(多入口点配置)
196
- ├── biome.json # Biome 规范配置
197
- └── package.json # 包配置(exports 字段定义多入口点)
219
+ │ │ └── index.ts
220
+ │ ├── config/
221
+ │ │ ├── index.ts # 环境与服务 URL 等(@zw-team/react-lib/config)
222
+ │ │ └── theme/
223
+ │ └── index.ts # 库主入口(组件 + 主题)
224
+ ├── stories/
225
+ ├── dist/ # rslib 构建产物
226
+ ├── rslib.config.ts
227
+ ├── biome.json
228
+ └── package.json # exports 多入口
198
229
  ```
199
230
 
200
231
  ## 现有组件状态
@@ -7,7 +7,7 @@ declare class AccessReport {
7
7
  authorization?: string | undefined;
8
8
  env?: string | undefined;
9
9
  });
10
- report(router: string, page: string): void;
10
+ report(router: string, page: string | string[]): void;
11
11
  loginReport(): void;
12
12
  accessReportSavev(data: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
13
13
  browserType(): {
@@ -1,9 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../../utils/classNames.js";
2
3
  import "./Block.css";
3
4
  const Block = (props)=>{
4
- const { children } = props;
5
+ const { children, className, style } = props;
5
6
  return /*#__PURE__*/ jsx("div", {
6
- className: "block-box",
7
+ className: classNames('block-box', className),
8
+ style: style,
7
9
  children: children
8
10
  });
9
11
  };
@@ -1,3 +1,7 @@
1
1
  export interface BlockProps {
2
2
  children: React.ReactNode;
3
+ /** 额外 className */
4
+ className?: string;
5
+ /** 额外 style */
6
+ style?: React.CSSProperties;
3
7
  }
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { ConfigProvider } from "antd";
3
3
  import js_cookie from "js-cookie";
4
4
  import { useCallback, useEffect, useState } from "react";
5
+ import { initProdEnvWarning } from "../../utils/advisory.js";
5
6
  import { loadIconMock, loadSvg } from "../../utils/svgIcon/index.js";
6
7
  import AccessReport from "../AccessReport/index.js";
7
8
  import { ConfigContext, defaultConfig } from "./ConfigContext.js";
@@ -31,6 +32,7 @@ const ConfigProvider_ConfigProvider_ConfigProvider = ({ children, antdConfig, ..
31
32
  window.$BiSystem = contextValue.system;
32
33
  js_cookie.set('$BiEnv', contextValue.env);
33
34
  js_cookie.set('$BiSystem', contextValue.system);
35
+ initProdEnvWarning(contextValue.env || 'production');
34
36
  loadSvg(contextValue.system, contextValue.env || 'production');
35
37
  if (contextValue.needIcon) loadIconMock(contextValue.env || 'production', (data)=>{
36
38
  updateConfig({
@@ -1,4 +1,5 @@
1
1
  import type { ConfigProviderProps as AntdConfigProviderProps } from 'antd';
2
+ import type AccessReport from '../AccessReport';
2
3
  export interface ContextValue {
3
4
  env: string;
4
5
  system: string;
@@ -7,6 +8,7 @@ export interface ContextValue {
7
8
  iconInit: boolean;
8
9
  iconList: Record<string, any>;
9
10
  componentsKeys: string | number;
11
+ $AccessReport?: AccessReport;
10
12
  [key: string]: any;
11
13
  }
12
14
  export interface ConfigProviderValue {
@@ -5,4 +5,6 @@ export interface BiModalProps extends ModalProps {
5
5
  showCancel?: boolean;
6
6
  showConfirm?: boolean;
7
7
  confirmLoading?: boolean;
8
+ onCancel?: () => void;
9
+ onOk?: () => void;
8
10
  }
@@ -32,13 +32,10 @@
32
32
  max-width: 100%;
33
33
  }
34
34
 
35
- .ant-drawer .ant-drawer-header {
36
- border-bottom: unset;
37
- padding-bottom: unset;
38
- }
39
-
40
- .ant-drawer .ant-drawer-body {
41
- padding-top: unset;
35
+ .ant-drawer .ant-drawer-header .ant-drawer-title {
36
+ color: #000000d9;
37
+ font-size: 16px;
38
+ font-weight: 500;
42
39
  }
43
40
 
44
41
  /* 占位样式(你后面做真正的 Box / TaskCenterBox 时可以删掉) */
@@ -1,5 +1,4 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import "./noticeCenter.scss";
3
2
  import { BellOutlined } from "@ant-design/icons";
4
3
  import { Badge, Button, Card, Drawer, Modal, Popover, Space } from "antd";
5
4
  import { useState } from "react";
@@ -7,6 +6,7 @@ import react_infinite_scroller from "react-infinite-scroller";
7
6
  import request from "../../utils/request/index.js";
8
7
  import { diffTime } from "../../utils/time/index.js";
9
8
  import { getEnv } from "../../utils/tools.js";
9
+ import "./noticeCenter.scss";
10
10
  const BiNoticeCenter = ({ headerHeight, system })=>{
11
11
  const [detailData, setDetailData] = useState({
12
12
  _id: {
@@ -16,7 +16,9 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
16
16
  send_time: '',
17
17
  content: "",
18
18
  is_read: 0,
19
- describe: ''
19
+ describe: '',
20
+ user_name: '',
21
+ extra_id: ''
20
22
  });
21
23
  const [noticeList, setNoticeList] = useState([]);
22
24
  const [last_id, setLastId] = useState('');
@@ -28,7 +30,10 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
28
30
  const [openNotice, setOpenNotice] = useState({
29
31
  id: '',
30
32
  title: '',
31
- content: ""
33
+ content: "",
34
+ user_name: '',
35
+ send_time: '',
36
+ extra_id: ''
32
37
  });
33
38
  const [noMore, setNoMore] = useState(false);
34
39
  const handleNoticeRead = async (msg_id)=>{
@@ -61,7 +66,7 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
61
66
  });
62
67
  setNoticeList(arr);
63
68
  };
64
- const loadMore = async (page)=>{
69
+ const loadMore = async (_page)=>{
65
70
  fetchData();
66
71
  };
67
72
  const detail = (item)=>{
@@ -69,9 +74,39 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
69
74
  ...item,
70
75
  is_read: 1
71
76
  });
72
- setDetailVisible(true);
77
+ popupNotice({
78
+ id: item._id.oid,
79
+ title: item.title,
80
+ content: item.content,
81
+ user_name: item.user_name,
82
+ send_time: item.send_time,
83
+ extra_id: item.extra_id
84
+ }, true);
73
85
  handleNoticeRead(item._id.oid);
74
86
  };
87
+ const popupNotice = (data, onlyRead = false)=>{
88
+ setOpenNotice({
89
+ id: data.id,
90
+ title: data.title,
91
+ content: data.content,
92
+ user_name: data.user_name,
93
+ send_time: data.send_time,
94
+ extra_id: data.extra_id
95
+ });
96
+ setDialogVisible(true);
97
+ true !== onlyRead && noticePoped(openNotice.id);
98
+ };
99
+ const noticePoped = async (msg_id)=>{
100
+ await request({
101
+ env: getEnv(),
102
+ system: 'service_center',
103
+ api: '/api/admin/message/setPopup',
104
+ data: {
105
+ system: system,
106
+ msg_id
107
+ }
108
+ });
109
+ };
75
110
  const initUnreadNum = async ()=>{
76
111
  const res = await request({
77
112
  env: getEnv(),
@@ -87,32 +122,36 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
87
122
  setBadgeNum(Number(unread_num));
88
123
  };
89
124
  const fetchData = async ()=>{
90
- if (noMore) return;
91
- const res = await request({
92
- env: getEnv(),
93
- system: 'service_center',
94
- api: '/api/admin/message/getSystemMessage',
95
- data: {
96
- system: system,
97
- last_id: last_id,
98
- last_send_time: last_send_time
99
- }
100
- });
101
- if (1 === res.status_code) if (res.data.length) {
102
- const arr = [
103
- ...noticeList,
104
- ...res.data
105
- ];
106
- const maps = new Map();
107
- for (const item of arr)maps.set(item._id.oid, item);
108
- const resNoticeList = Array.from(maps.values()).sort((a, b)=>diffTime(a.create_time, b.create_time));
109
- setNoticeList(resNoticeList);
110
- setNoMore(false);
111
- if (resNoticeList.length && resNoticeList[resNoticeList.length - 1]) {
112
- setLastId(resNoticeList[resNoticeList.length - 1]._id.oid);
113
- setLastSendTime(resNoticeList[resNoticeList.length - 1].send_time);
114
- }
115
- } else setNoMore(true);
125
+ try {
126
+ if (noMore) return;
127
+ const res = await request({
128
+ env: getEnv(),
129
+ system: 'service_center',
130
+ api: '/api/admin/message/getSystemMessage',
131
+ data: {
132
+ system: system,
133
+ last_id: last_id,
134
+ last_send_time: last_send_time
135
+ }
136
+ });
137
+ if (1 === res.status_code) if (res.data.length) {
138
+ const arr = [
139
+ ...noticeList,
140
+ ...res.data
141
+ ];
142
+ const maps = new Map();
143
+ for (const item of arr)maps.set(item._id.oid, item);
144
+ const resNoticeList = Array.from(maps.values()).sort((a, b)=>diffTime(a.create_time, b.create_time));
145
+ setNoticeList(resNoticeList);
146
+ setNoMore(false);
147
+ if (resNoticeList.length && resNoticeList[resNoticeList.length - 1]) {
148
+ setLastId(resNoticeList[resNoticeList.length - 1]._id.oid);
149
+ setLastSendTime(resNoticeList[resNoticeList.length - 1].send_time);
150
+ }
151
+ } else setNoMore(true);
152
+ } catch {
153
+ setNoMore(true);
154
+ }
116
155
  };
117
156
  const handleShow = ()=>{
118
157
  setBadgeNum(0);
@@ -133,13 +172,29 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
133
172
  const closeDrawer = ()=>{
134
173
  setDetailVisible(false);
135
174
  };
175
+ const noticeClose = (id)=>{
176
+ setDialogVisible(false);
177
+ noticeRead(id);
178
+ };
179
+ const noticeRead = async (id)=>{
180
+ await request({
181
+ env: getEnv(),
182
+ system: 'zq',
183
+ api: '/api/system_notice/close',
184
+ data: {
185
+ id
186
+ }
187
+ });
188
+ };
136
189
  const NoticeModal = /*#__PURE__*/ jsx(Modal, {
137
190
  title: "提示",
138
191
  open: dialogVisible,
139
192
  width: 680,
193
+ onCancel: ()=>setDialogVisible(false),
140
194
  style: {
141
- top: '3vh'
195
+ top: '38px'
142
196
  },
197
+ footer: null,
143
198
  wrapClassName: "notice-open-dialog",
144
199
  children: /*#__PURE__*/ jsxs("div", {
145
200
  className: "notice-open-container",
@@ -159,11 +214,36 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
159
214
  }),
160
215
  /*#__PURE__*/ jsx("div", {
161
216
  className: "notice-open-box-scrollbar",
162
- children: /*#__PURE__*/ jsx("div", {
217
+ children: /*#__PURE__*/ jsxs("div", {
163
218
  className: "notice-open-content",
164
- dangerouslySetInnerHTML: {
165
- __html: openNotice.content
166
- }
219
+ children: [
220
+ /*#__PURE__*/ jsxs("div", {
221
+ className: "notice-open-content-info",
222
+ children: [
223
+ /*#__PURE__*/ jsxs("div", {
224
+ children: [
225
+ "产品负责人: ",
226
+ /*#__PURE__*/ jsx("span", {
227
+ children: openNotice.user_name || '-'
228
+ })
229
+ ]
230
+ }),
231
+ /*#__PURE__*/ jsxs("div", {
232
+ children: [
233
+ "发送时间: ",
234
+ /*#__PURE__*/ jsx("span", {
235
+ children: openNotice.send_time
236
+ })
237
+ ]
238
+ })
239
+ ]
240
+ }),
241
+ /*#__PURE__*/ jsx("div", {
242
+ dangerouslySetInnerHTML: {
243
+ __html: openNotice.content
244
+ }
245
+ })
246
+ ]
167
247
  })
168
248
  }),
169
249
  /*#__PURE__*/ jsx("div", {
@@ -171,7 +251,7 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
171
251
  children: /*#__PURE__*/ jsx(Button, {
172
252
  type: "primary",
173
253
  onClick: ()=>{
174
- setDialogVisible(false);
254
+ noticeClose(openNotice.extra_id);
175
255
  },
176
256
  children: "知道了"
177
257
  })
@@ -238,9 +318,21 @@ const BiNoticeCenter = ({ headerHeight, system })=>{
238
318
  })
239
319
  ]
240
320
  }),
241
- /*#__PURE__*/ jsx("div", {
242
- className: "content",
243
- children: item.describe
321
+ /*#__PURE__*/ jsxs("div", {
322
+ className: "notice-content-box",
323
+ children: [
324
+ /*#__PURE__*/ jsx("div", {
325
+ className: "content",
326
+ children: item.describe
327
+ }),
328
+ /*#__PURE__*/ jsxs("div", {
329
+ className: "username",
330
+ children: [
331
+ "产品负责人: ",
332
+ item.user_name || '-'
333
+ ]
334
+ })
335
+ ]
244
336
  })
245
337
  ]
246
338
  }, `notice_${index}`)),
@@ -2,10 +2,10 @@
2
2
  display: flex;
3
3
  align-items: center;
4
4
  }
5
- .bi-notice > span {
6
- display: flex;
7
- align-items: center;
8
- }
5
+ .bi-notice > span {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
9
  .notice-button {
10
10
  padding: 5px;
11
11
  width: 32px;
@@ -82,7 +82,7 @@
82
82
  cursor: pointer;
83
83
 
84
84
  &.unread::before {
85
- content: ' ';
85
+ content: " ";
86
86
  position: absolute;
87
87
  width: 8px;
88
88
  height: 8px;
@@ -102,12 +102,32 @@
102
102
  font-weight: 500;
103
103
  color: #323335;
104
104
  margin: 0;
105
+ overflow: hidden;
106
+ white-space: nowrap;
107
+ text-overflow: ellipsis;
108
+ flex: 1;
105
109
  }
106
110
  .time {
107
111
  font-size: 14px;
108
112
  font-weight: 400;
109
113
  color: #86909c;
110
114
  margin: 0;
115
+ flex: 0 0 auto;
116
+ }
117
+ }
118
+ .notice-content-box {
119
+ display: flex;
120
+ justify-content: space-between;
121
+ align-items: center;
122
+ gap: 10px;
123
+ .content {
124
+ flex: 0 0 auto;
125
+ }
126
+ .username {
127
+ font-size: 12px;
128
+ font-weight: 400;
129
+ color: #86909c;
130
+ margin: 0;
111
131
  }
112
132
  }
113
133
  .content {
@@ -175,6 +195,19 @@
175
195
  li {
176
196
  list-style: inherit;
177
197
  }
198
+ .notice-open-content-info {
199
+ display: flex;
200
+ justify-content: center;
201
+ align-items: center;
202
+ margin-bottom: 10px;
203
+ color: #86909c;
204
+ gap: 30px;
205
+ margin-bottom: 20px;
206
+ span {
207
+ font-weight: 400;
208
+ color: #323335;
209
+ }
210
+ }
178
211
  }
179
212
  .notice-open-button {
180
213
  box-shadow: 0px -1px 0px 0px #f2f3f5;
@@ -229,4 +262,4 @@
229
262
  .ant-card-body {
230
263
  padding: 12px;
231
264
  }
232
- }
265
+ }
@@ -36,30 +36,29 @@ const SystemLink = ()=>{
36
36
  const url = buildSystemUrl(system.link);
37
37
  window.open(url, '_blank');
38
38
  };
39
- const renderSystemItem = (item)=>/*#__PURE__*/ jsxs("div", {
40
- className: "system-item",
41
- onClick: ()=>goSystem(item),
42
- children: [
43
- /*#__PURE__*/ jsx("div", {
44
- className: "system-logo",
45
- children: /*#__PURE__*/ jsx("img", {
46
- src: item.logo_path,
47
- alt: item.short_name
48
- })
49
- }),
50
- /*#__PURE__*/ jsx("p", {
51
- className: "system-name",
52
- children: item.short_name
53
- }),
54
- /*#__PURE__*/ jsx("p", {
55
- className: "go-system",
56
- children: "前往平台"
57
- })
58
- ]
59
- }, item.id);
60
39
  const popoverContent = /*#__PURE__*/ jsx("div", {
61
40
  className: "system-list",
62
- children: systemList.map(renderSystemItem)
41
+ children: systemList.map((item)=>/*#__PURE__*/ jsxs("div", {
42
+ className: "system-item",
43
+ onClick: ()=>goSystem(item),
44
+ children: [
45
+ /*#__PURE__*/ jsx("div", {
46
+ className: "system-logo",
47
+ children: /*#__PURE__*/ jsx("img", {
48
+ src: item.logo_path,
49
+ alt: item.short_name
50
+ })
51
+ }),
52
+ /*#__PURE__*/ jsx("p", {
53
+ className: "system-name",
54
+ children: item.short_name
55
+ }),
56
+ /*#__PURE__*/ jsx("p", {
57
+ className: "go-system",
58
+ children: "前往平台"
59
+ })
60
+ ]
61
+ }, item.id))
63
62
  });
64
63
  return /*#__PURE__*/ jsx("div", {
65
64
  className: "bi-system-link",
@@ -68,14 +67,18 @@ const SystemLink = ()=>{
68
67
  trigger: "hover",
69
68
  overlayClassName: "system-link-popper",
70
69
  content: popoverContent,
71
- destroyTooltipOnHide: true,
72
70
  children: /*#__PURE__*/ jsx(Button, {
73
- type: "text",
74
71
  className: "system-link-button",
75
- "aria-label": "系统链接",
76
- icon: /*#__PURE__*/ jsx("span", {
77
- className: "button-icon-dot",
78
- children: "⋮⋮⋮"
72
+ type: "text",
73
+ children: /*#__PURE__*/ jsx("svg", {
74
+ className: "iconpark-icon",
75
+ style: {
76
+ width: 24,
77
+ height: 24
78
+ },
79
+ children: /*#__PURE__*/ jsx("use", {
80
+ href: "#el-icon-more1"
81
+ })
79
82
  })
80
83
  })
81
84
  })
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import type { BiTableProps } from './types';
3
2
  import './index.scss';
3
+ import type { BiTableProps } from './types';
4
4
  export declare const useBiTable: () => Record<string, any>;
5
5
  type BiTableComponent = React.FC<BiTableProps> & {
6
6
  Resizable: React.FC<BiTableProps>;