bhd-components 0.10.10 → 0.10.12

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 (116) hide show
  1. package/README.md +1 -1
  2. package/dist/index.esm.es5.development.css +0 -766
  3. package/dist/index.esm.es5.development.js +162 -3086
  4. package/dist/index.esm.es5.production.css +1 -1
  5. package/dist/index.esm.es5.production.js +1 -1
  6. package/dist/vendor.esm.es5.development.js +1100 -2515
  7. package/dist/vendor.esm.es5.production.js +136 -136
  8. package/es2017/customerService/index.js +3 -1
  9. package/es2017/index.d.ts +0 -1
  10. package/es2017/index.js +0 -1
  11. package/es2017/utils/Date.d.ts +1 -2
  12. package/es2017/utils/Date.js +1 -2
  13. package/es2017/utils/dom.d.ts +1 -4
  14. package/es2017/utils/dom.js +1 -44
  15. package/esm/customerService/index.js +3 -1
  16. package/esm/index.d.ts +0 -1
  17. package/esm/index.js +0 -1
  18. package/esm/utils/Date.d.ts +1 -2
  19. package/esm/utils/Date.js +1 -2
  20. package/esm/utils/dom.d.ts +1 -4
  21. package/esm/utils/dom.js +1 -45
  22. package/package.json +1 -2
  23. package/es2017/AIMessageList/components/content/index.d.ts +0 -4
  24. package/es2017/AIMessageList/components/content/index.js +0 -29
  25. package/es2017/AIMessageList/components/content/index.module.less +0 -8
  26. package/es2017/AIMessageList/components/copyIcon/index.d.ts +0 -7
  27. package/es2017/AIMessageList/components/copyIcon/index.js +0 -73
  28. package/es2017/AIMessageList/components/copyIcon/index.module.less +0 -22
  29. package/es2017/AIMessageList/components/errorCallback/index.d.ts +0 -3
  30. package/es2017/AIMessageList/components/errorCallback/index.js +0 -6
  31. package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +0 -3
  32. package/es2017/AIMessageList/components/fileList/fileIcon.js +0 -970
  33. package/es2017/AIMessageList/components/fileList/index.d.ts +0 -4
  34. package/es2017/AIMessageList/components/fileList/index.js +0 -315
  35. package/es2017/AIMessageList/components/fileList/index.module.less +0 -95
  36. package/es2017/AIMessageList/components/footer/index.d.ts +0 -10
  37. package/es2017/AIMessageList/components/footer/index.js +0 -358
  38. package/es2017/AIMessageList/components/footer/index.module.less +0 -51
  39. package/es2017/AIMessageList/components/header/index.d.ts +0 -9
  40. package/es2017/AIMessageList/components/header/index.js +0 -94
  41. package/es2017/AIMessageList/components/header/index.module.less +0 -31
  42. package/es2017/AIMessageList/components/referencesIcon/index.d.ts +0 -9
  43. package/es2017/AIMessageList/components/referencesIcon/index.js +0 -63
  44. package/es2017/AIMessageList/components/referencesIcon/index.module.less +0 -13
  45. package/es2017/AIMessageList/components/refreshBtn/index.d.ts +0 -4
  46. package/es2017/AIMessageList/components/refreshBtn/index.js +0 -29
  47. package/es2017/AIMessageList/components/refreshBtn/index.module.less +0 -12
  48. package/es2017/AIMessageList/components/remarkBtn/index.d.ts +0 -4
  49. package/es2017/AIMessageList/components/remarkBtn/index.js +0 -51
  50. package/es2017/AIMessageList/components/remarkBtn/index.module.less +0 -13
  51. package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +0 -10
  52. package/es2017/AIMessageList/components/renderReferrnce/index.js +0 -68
  53. package/es2017/AIMessageList/components/renderReferrnce/index.module.less +0 -64
  54. package/es2017/AIMessageList/components/sendBtn/index.d.ts +0 -4
  55. package/es2017/AIMessageList/components/sendBtn/index.js +0 -51
  56. package/es2017/AIMessageList/components/sendBtn/index.module.less +0 -25
  57. package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +0 -4
  58. package/es2017/AIMessageList/components/uplodaFileBtn/index.js +0 -33
  59. package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +0 -5
  60. package/es2017/AIMessageList/components/virtuosoList/index.d.ts +0 -5
  61. package/es2017/AIMessageList/components/virtuosoList/index.js +0 -694
  62. package/es2017/AIMessageList/components/virtuosoList/index.module.less +0 -467
  63. package/es2017/AIMessageList/index.d.ts +0 -4
  64. package/es2017/AIMessageList/index.js +0 -58
  65. package/es2017/AIMessageList/index.module.less +0 -20
  66. package/es2017/AIMessageList/type.d.ts +0 -306
  67. package/es2017/images/loading2.js +0 -2
  68. package/es2017/utils/number.d.ts +0 -1
  69. package/es2017/utils/number.js +0 -9
  70. package/esm/AIMessageList/components/content/index.d.ts +0 -4
  71. package/esm/AIMessageList/components/content/index.js +0 -29
  72. package/esm/AIMessageList/components/content/index.module.less +0 -8
  73. package/esm/AIMessageList/components/copyIcon/index.d.ts +0 -7
  74. package/esm/AIMessageList/components/copyIcon/index.js +0 -76
  75. package/esm/AIMessageList/components/copyIcon/index.module.less +0 -22
  76. package/esm/AIMessageList/components/errorCallback/index.d.ts +0 -3
  77. package/esm/AIMessageList/components/errorCallback/index.js +0 -6
  78. package/esm/AIMessageList/components/fileList/fileIcon.d.ts +0 -3
  79. package/esm/AIMessageList/components/fileList/fileIcon.js +0 -970
  80. package/esm/AIMessageList/components/fileList/index.d.ts +0 -4
  81. package/esm/AIMessageList/components/fileList/index.js +0 -337
  82. package/esm/AIMessageList/components/fileList/index.module.less +0 -95
  83. package/esm/AIMessageList/components/footer/index.d.ts +0 -10
  84. package/esm/AIMessageList/components/footer/index.js +0 -372
  85. package/esm/AIMessageList/components/footer/index.module.less +0 -51
  86. package/esm/AIMessageList/components/header/index.d.ts +0 -9
  87. package/esm/AIMessageList/components/header/index.js +0 -96
  88. package/esm/AIMessageList/components/header/index.module.less +0 -31
  89. package/esm/AIMessageList/components/referencesIcon/index.d.ts +0 -9
  90. package/esm/AIMessageList/components/referencesIcon/index.js +0 -65
  91. package/esm/AIMessageList/components/referencesIcon/index.module.less +0 -13
  92. package/esm/AIMessageList/components/refreshBtn/index.d.ts +0 -4
  93. package/esm/AIMessageList/components/refreshBtn/index.js +0 -31
  94. package/esm/AIMessageList/components/refreshBtn/index.module.less +0 -12
  95. package/esm/AIMessageList/components/remarkBtn/index.d.ts +0 -4
  96. package/esm/AIMessageList/components/remarkBtn/index.js +0 -51
  97. package/esm/AIMessageList/components/remarkBtn/index.module.less +0 -13
  98. package/esm/AIMessageList/components/renderReferrnce/index.d.ts +0 -10
  99. package/esm/AIMessageList/components/renderReferrnce/index.js +0 -72
  100. package/esm/AIMessageList/components/renderReferrnce/index.module.less +0 -64
  101. package/esm/AIMessageList/components/sendBtn/index.d.ts +0 -4
  102. package/esm/AIMessageList/components/sendBtn/index.js +0 -53
  103. package/esm/AIMessageList/components/sendBtn/index.module.less +0 -25
  104. package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +0 -4
  105. package/esm/AIMessageList/components/uplodaFileBtn/index.js +0 -33
  106. package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +0 -5
  107. package/esm/AIMessageList/components/virtuosoList/index.d.ts +0 -5
  108. package/esm/AIMessageList/components/virtuosoList/index.js +0 -671
  109. package/esm/AIMessageList/components/virtuosoList/index.module.less +0 -467
  110. package/esm/AIMessageList/index.d.ts +0 -4
  111. package/esm/AIMessageList/index.js +0 -58
  112. package/esm/AIMessageList/index.module.less +0 -20
  113. package/esm/AIMessageList/type.d.ts +0 -306
  114. package/esm/images/loading2.js +0 -2
  115. package/esm/utils/number.d.ts +0 -1
  116. package/esm/utils/number.js +0 -9
@@ -1,306 +0,0 @@
1
- export interface AIMessageListProps {
2
- prefix?: string; // 类名前缀 默认为 "bhd-AIMessageList"
3
- className?: string; //全局的className
4
- headerConfig: headerConfigProps;
5
- footerConfig: footerConfigProps;
6
- contentConfig: contentConfigProps;
7
- errorCallback?: (error: errorMessageProps) => void;
8
-
9
- // sendMsgAjax: () => any; //发送消息
10
- }
11
-
12
- export interface AIMessageListRefProps {
13
- footerApi: footerRefProps;
14
- contentApi: contentRefProps;
15
- }
16
-
17
- // header Props
18
-
19
- export interface headerConfigProps {
20
- icon?: React.ReactNode; // 不传存在默认图标
21
- title: React.ReactNode;
22
- className?: string;
23
- renderRightHead?: () => React.ReactNode; // 右侧区域的自定义渲染
24
- }
25
-
26
- export interface msgActionProps {
27
- renderLeft?: (
28
- copyNode: React.ReactNode,
29
- referencesNode: React.ReactNode,
30
- upVoteNode: React.ReactNode,
31
- downVoteNode: React.ReactNode,
32
- refreshNode:React.ReactNode,
33
- ) => React.ReactNode;
34
- renderRight?: (
35
- copyNode: React.ReactNode,
36
- referencesNode: React.ReactNode,
37
- upVoteNode: React.ReactNode,
38
- downVoteNode: React.ReactNode,
39
- refreshNode:React.ReactNode,
40
- ) => React.ReactNode;
41
- }
42
-
43
- export interface contentConfigProps {
44
- className?: string;
45
- msgAction?: string[] | msgActionProps;
46
- // transformItem:(item: any) => dataItemType;
47
- getList: (
48
- page: number,
49
- pageSize: number
50
- ) => Promise<{
51
- total: number;
52
- dataSource: dataItemType[];
53
- }>; // 列表数据
54
- loadMore?: boolean; // 是否开启加载更多 // 默认为true
55
- helloMsg?: string; //欢迎语
56
- pageSize?: number; //每页数量 默认为30
57
- coverRenderText?: (item, html) => React.ReactNode; // 覆盖文本内容
58
- coverRenderReferences?: (
59
- item: dataItemType,
60
- referenceNode: React.ReactNode
61
- ) => React.ReactNode; //覆盖引用内容
62
- onRecordMessage?: (item: dataItemType) => void; // 发送和接收的消息记录
63
- onVoteChange?: (type:string,item: dataItemType) => void; // 点赞 或踩
64
- onRefresh?: (item:dataItemType) => void;// 刷新
65
- fileCustomRender?: {// 文件对象的自定义渲染
66
- iconFileRender?: (suffix: string) => React.ReactNode; // 文件上传的 icon。参数 文件对象file 返回值为图标
67
- fileTitleRender?: (item: dataItemType) => React.ReactNode;
68
- fileBottomRender?: (item: dataItemType) => React.ReactNode;
69
- fileRender?: (item: dataItemType) => React.ReactNode;
70
- };
71
- }
72
-
73
- // content props
74
-
75
- export interface contentProps {
76
- prefix: string;
77
- contentConfig: contentConfigProps;
78
- apiRef: AIMessageListRefProps;
79
- }
80
-
81
- // footer Props
82
-
83
- export interface footerConfigProps {
84
- placeholder?: string; // placeholder 默认值为“请输入内容”
85
- className?: string;
86
- maxLength?: number | ((value: string) => boolean); //字符长度 默认500
87
- renderAction?: (
88
- sendBtn: React.ReactNode,
89
- uploadFileBtn: React.ReactNode
90
- ) => React.ReactNode; // 自定义渲染操作栏
91
- fileUpload?: boolean | fileUploadProps; // 默认为false
92
- sendMsgAjaxParams: sendMsgAjaxParams;
93
- onClickStop?: () => void;
94
- }
95
-
96
- export interface onOpenProps {
97
- retryFetch: () => void; // 重试
98
- stopMessage: () => void;
99
- }
100
-
101
- export interface sendMsgAjaxParams {
102
- url: string;
103
- method?: string;
104
- headers?: () => object;
105
- params: (
106
- value: string,
107
- refereces: referenceType,
108
- fileList: fileCustomProps[],
109
- beforeInfo: any
110
- ) => string;
111
- onOpen?: (res: Response, onOpenProps: onOpenProps) => void;
112
- onMessage?: (ev: EventSourceMessage,closeCallback:()=>void) => { id: string; content: string };
113
- onClose?: () => void;
114
- onError?: (err: any) => void;
115
- coverProps?: object;
116
- beforeSendMsg: (
117
- value: string,
118
- refereces: referenceType,
119
- fileList: fileCustomProps[]
120
- ) => Promise<any>;
121
- }
122
-
123
- // footer file Props
124
- // 文件上传(需覆盖两种场景:存在解析和不存在解析的场景) flase 则不显示文件上传的 icon
125
- export interface fileUploadProps {
126
- accept?: string; //文件类型 默认值 ".pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.txt,.text,.png,.jpg,.jpeg,.gif,.webp"
127
- maxCount?: number; // 上传文件数量限制 -1为不限制 默认为10
128
- maxSize?: number; // 默认为50Mb 目前不考虑切片上传 业务上不要设置太大
129
- multiple?: boolean; // 是否允许多选
130
- customRequest: (file: File) => Promise<{
131
- url: string;
132
- fileId: string;
133
- source: File;
134
- status: fileStatus;
135
- }>; // 自定义上传方法
136
- mapUploadCount?: number; // 并发上传的数量 默认为1
137
- deleteFileAjax?: (
138
- fileId: string,
139
- file: fileCustomProps
140
- ) => Promise<{ fileId: string }>; // 删除文件的ajax 返回删除文件的fileId
141
- statusText?: (status: fileStatus) => React.ReactNode; // 自定义状态显示
142
- parseFileAjax?: (fileId: string) => { status: fileStatus; fileId; string }; //文件解析的 ajax 请求 如不存在解析过程,可在此函数内直接返回上传成功的状态
143
- iconFileRender?: (suffix: string) => React.ReactNode; // 文件上传的 icon。参数 文件对象file 返回值为图标
144
- }
145
-
146
- // file status 文件状态
147
- // 等待上传/上传中/上传失败/等待解析/解析中/解析成功/解析失败/上传成功
148
- export type fileStatus =
149
- | "waiting"
150
- | "uploading"
151
- | "uploadError"
152
- | "waitParse"
153
- | "parsing"
154
- | "parsingError"
155
- | "success";
156
-
157
- // footer Ref Props
158
-
159
- export interface footerRefProps {
160
- setTextValue: (value: string) => void; // 设置输入框的值
161
- sendMsg: (value: string) => void; // 发送消息
162
- clearText: () => void; // 清空输入框
163
- getCanSendMsg: () => boolean; //获取当前是否允许发送消息的状态
164
- stopMessage: () => void; //停止发送消息
165
- setReferences: (reference: referenceType) => void; // 添加引用
166
- }
167
-
168
- // sendBtn Props
169
-
170
- export interface sendBtnProps {
171
- prefix: string;
172
- canSendMsg: boolean;
173
- sending: boolean;
174
- stopMessage: () => void;
175
- clickFn?: () => void;
176
- }
177
-
178
- // uploadFileBtn Props
179
- export interface uploadFileBtnProps {
180
- prefix: string;
181
- fileUpload: fileUploadProps;
182
- customRequest: (options: any) => void;
183
- }
184
-
185
- export interface VoteBtnProps {
186
- prefix: string;
187
- clickFn: () => void;
188
- isActive: boolean;
189
- }
190
-
191
- export interface refreshBtnProps{
192
- prefix:string;
193
- clickFn:()=>void;
194
- }
195
-
196
- // fileList Props
197
-
198
- export interface fileListProps {
199
- prefix: string;
200
- fileUpload: fileUploadProps;
201
- errorCallback: (error: errorMessageProps) => void;
202
- changeFileCanSending: (flag: boolean) => void;
203
- }
204
-
205
- // file 自定义对象
206
-
207
- export interface fileCustomProps {
208
- name: string;
209
- suffix: string;
210
- fileId: string;
211
- url: string;
212
- status: fileStatus | undefined;
213
- source: File | undefined;
214
- size:number
215
- }
216
-
217
- // FileList 组件 ref props
218
-
219
- export interface FileListRefProps {
220
- addFile: (file: File) => void;
221
- changePage: (page: number) => void;
222
- deleteFile: (fileId: string) => void;
223
- updateFile: (fileId: string, status: fileStatus) => void;
224
- getFileList: () => fileCustomProps[];
225
- vaildFile: (file: File, fileId?: string) => boolean; // 校验文件是否合规
226
- fileToCustomFile: (file: File, params: any) => fileCustomProps;
227
- clearFileList: () => void;
228
- }
229
-
230
- // error Message
231
-
232
- export interface errorMessageProps {
233
- type: errorMessageType;
234
- message: string;
235
- }
236
- /*
237
- fileAcceptError 文件类型错误
238
- fileSizeEmpty 文件大小为空
239
- fileSizeOver 文件大小超出限制
240
- fileCountOver 文件数量超出限制
241
- fileNameExist 文件名称已存在
242
- */
243
- export type errorMessageType =
244
- | "fileAcceptError"
245
- | "fileSizeEmpty"
246
- | "fileSizeOver"
247
- | "fileCountOver"
248
- | "fileNameExist";
249
-
250
- // 引用数据类型
251
-
252
- export type referenceType = referenceTypeText | referenceTypeFile;
253
-
254
- export type referenceTypeText = {
255
- type: "text";
256
- value: string;
257
- source:any;
258
- };
259
-
260
- export type referenceTypeFile = {
261
- type: "file";
262
- value: fileCustomProps;
263
- source:any;
264
- };
265
-
266
- export interface VirtuosoListProps {
267
- prefix: string;
268
- contentConfig: contentConfigProps;
269
- apiRef: AIMessageListRefProps;
270
- }
271
-
272
- export interface VirtuosoListRefProps {
273
- addMsg: (msg: dataItemType) => void;
274
- updateMsg: (id: string, obj: any) => void;
275
- clearInputing: () => void; //清楚正在输入的inputing
276
- recordMsg: (item: dataItemType) => void;
277
- getDataSource: () => dataItemType[];
278
- upateDataSource:(id:string,obj:dataItemType)=>void;
279
- changeDataSource:(list:dataItemType[])=>void;
280
- scrollToBottom: () => void;
281
- setSendingId:(id:string)=>void;
282
- }
283
-
284
- export interface contentRefProps extends VirtuosoListRefProps {}
285
-
286
- export interface EventSourceMessage {
287
- id: string;
288
- event: string;
289
- data: string;
290
- retry?: number;
291
- }
292
-
293
- export interface dataItemType {
294
- id: string; // 唯一id
295
- createTime: string | number; //创建时间
296
- content: string; //消息内容
297
- location: "left" | "right"; // 消息显示在左边还是右边
298
- reference: referenceType | null; // 引用数据
299
- source: any; //原消息对象
300
- vote?:string;// "up":点赞。"down":踩
301
- type?:"file"|"text",
302
- suffix?:string;
303
- fileSize?:number;
304
- fileTitle?:string;
305
- fileList?:fileCustomProps[];
306
- }
@@ -1,2 +0,0 @@
1
- const loading2 = "data:image/gif;base64,R0lGODlhgACAAKIEAN3d3bu7u////5mZmf///wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NENGQTg4RUY0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NENGQTg4RjA0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wL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sra6vsK8wsbS1rii2ubUnur2yI77BAbzCvbjFtrPIsarNzs/Q0dLT1M8D1wOj2Nug297Zl9/elOLfVuXiUOjpTevmSu7j8PHY6vTX7ffg8/RT91v9AK7ThC7UO1HcrCQAADs=";
2
- export default loading2;
@@ -1 +0,0 @@
1
- export declare const guidGenerator: () => string;
@@ -1,9 +0,0 @@
1
- export const guidGenerator = ()=>{
2
- var d = new Date().getTime();
3
- var uuid = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(c) {
4
- var r = (d + Math.random() * 16) % 16 | 0;
5
- d = Math.floor(d / 16);
6
- return (c == "x" ? r : r & 3 | 8).toString(16);
7
- });
8
- return uuid;
9
- };
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import type { contentProps, contentRefProps } from "../../type";
3
- declare const Content: React.ForwardRefExoticComponent<contentProps & React.RefAttributes<contentRefProps>>;
4
- export default Content;
@@ -1,29 +0,0 @@
1
- import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
- import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
3
- import React, { useRef, useImperativeHandle, forwardRef } from "react";
4
- import styles from "./index.module.less";
5
- import VirtuosoList from "../virtuosoList";
6
- var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
7
- var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
8
- var _contentConfig_className = contentConfig.className, className = _contentConfig_className === void 0 ? "" : _contentConfig_className;
9
- var listRef = useRef(null);
10
- useImperativeHandle(ref, function() {
11
- return _object_spread({}, listRef.current);
12
- });
13
- var getCls = function(clsName) {
14
- return styles[clsName] + " " + prefix + "-" + clsName;
15
- };
16
- return /*#__PURE__*/ _jsx("div", {
17
- className: "".concat(getCls("content"), " ").concat(className),
18
- children: /*#__PURE__*/ _jsx("div", {
19
- className: "".concat(getCls("contentList")),
20
- children: /*#__PURE__*/ _jsx(VirtuosoList, {
21
- ref: listRef,
22
- prefix: prefix,
23
- contentConfig: contentConfig,
24
- apiRef: apiRef
25
- })
26
- })
27
- });
28
- });
29
- export default Content;
@@ -1,8 +0,0 @@
1
- .content{
2
- width: 100%;
3
- height: 100%;
4
- .contentList{
5
- width: 100%;
6
- height: 100%;
7
- }
8
- }
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface CopyIconProps {
3
- prefix: string;
4
- content: string;
5
- }
6
- declare const CopyIcon: (props: CopyIconProps) => React.JSX.Element;
7
- export default CopyIcon;
@@ -1,76 +0,0 @@
1
- import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
2
- import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
3
- import React, { useEffect, useState, useRef } from "react";
4
- import styles from "./index.module.less";
5
- import { copyText } from "../../../utils/dom";
6
- var copyIconSvg = /*#__PURE__*/ _jsx("i", {
7
- children: /*#__PURE__*/ _jsxs("svg", {
8
- width: "1em",
9
- height: "1em",
10
- viewBox: "0 0 14 14",
11
- shapeRendering: "geometricPrecision",
12
- fill: "currentColor",
13
- xmlns: "http://www.w3.org/2000/svg",
14
- children: [
15
- /*#__PURE__*/ _jsx("g", {
16
- clipPath: "url(#clip0_518_8403)",
17
- children: /*#__PURE__*/ _jsx("path", {
18
- d: "M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"
19
- })
20
- }),
21
- /*#__PURE__*/ _jsx("defs", {
22
- children: /*#__PURE__*/ _jsx("clipPath", {
23
- id: "clip0_518_8403",
24
- children: /*#__PURE__*/ _jsx("rect", {
25
- width: "16",
26
- height: "16"
27
- })
28
- })
29
- })
30
- ]
31
- })
32
- });
33
- var copySuccessSvg = /*#__PURE__*/ _jsx("i", {
34
- children: /*#__PURE__*/ _jsx("svg", {
35
- width: "1em",
36
- height: "1em",
37
- shapeRendering: "geometricPrecision",
38
- fill: "currentColor",
39
- viewBox: "0 0 12 7",
40
- xmlns: "http://www.w3.org/2000/svg",
41
- children: /*#__PURE__*/ _jsx("path", {
42
- d: "M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z"
43
- })
44
- })
45
- });
46
- var CopyIcon = function(props) {
47
- var prefix = props.prefix, content = props.content;
48
- var _useState = _sliced_to_array(useState(false), 2), copySuccess = _useState[0], setCopySuccess = _useState[1];
49
- var timer = useRef(null);
50
- useEffect(function() {
51
- return function() {
52
- clearTimeout(timer.current);
53
- };
54
- }, []);
55
- var getCls = function(clsName) {
56
- return styles[clsName] + " " + prefix + "-" + clsName;
57
- };
58
- var copyTextClick = function() {
59
- if (copySuccess) return;
60
- copyText(content);
61
- setCopySuccess(true);
62
- clearTimeout(timer.current);
63
- timer.current = setTimeout(function() {
64
- console.log("定时器定时器");
65
- setCopySuccess(false);
66
- }, 2000);
67
- };
68
- return /*#__PURE__*/ _jsx("div", {
69
- onClick: function() {
70
- return copyTextClick();
71
- },
72
- className: "".concat(getCls("msgItem-action-copy"), " ").concat(copySuccess ? getCls("msgItem-action-copy-success") : ""),
73
- children: copySuccess ? copySuccessSvg : copyIconSvg
74
- });
75
- };
76
- export default CopyIcon;
@@ -1,22 +0,0 @@
1
- .msgItem-action-copy {
2
- cursor: pointer;
3
- border-radius: 2px;
4
- display: flex;
5
- line-height: 1;
6
- &.msgItem-action-copy-success {
7
- color: #f4523b;
8
- background-color: transparent;
9
- &>i{
10
- color: #f4523b;
11
- font-size: 16px;
12
- transform:scale(0.8);
13
- }
14
- }
15
- & > i {
16
- color: rgba(140, 140, 140, 1);
17
- font-size: 16px;
18
- }
19
- &:hover {
20
- background-color: rgba(0, 0, 0, 0.04);
21
- }
22
- }
@@ -1,3 +0,0 @@
1
- import type { errorMessageProps } from "../../type";
2
- declare const errorCallback: (errObj: errorMessageProps) => void;
3
- export default errorCallback;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import message from "../../../message";
3
- var errorCallback = function(errObj) {
4
- message.customError(errObj.message);
5
- };
6
- export default errorCallback;
@@ -1,3 +0,0 @@
1
- import type { fileStatus } from "../../type";
2
- export declare const fileIconRender: (suffix: string, customRender: any) => any;
3
- export declare const statusRender: (status: fileStatus, customRender: any) => any;