bhd-components 0.10.17 → 0.10.19
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/dist/index.esm.es5.development.js +76 -51
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/AIMessageList/components/copyIcon/index.js +0 -1
- package/es2017/AIMessageList/components/fileList/index.js +53 -29
- package/es2017/AIMessageList/components/footer/index.js +15 -8
- package/es2017/AIMessageList/components/referencesIcon/index.js +2 -3
- package/es2017/AIMessageList/components/renderReferrnce/index.js +0 -4
- package/es2017/AIMessageList/components/virtuosoList/index.js +0 -4
- package/es2017/AIMessageList/type.d.ts +2 -1
- package/esm/AIMessageList/components/copyIcon/index.js +0 -1
- package/esm/AIMessageList/components/fileList/index.js +56 -30
- package/esm/AIMessageList/components/footer/index.js +18 -10
- package/esm/AIMessageList/components/referencesIcon/index.js +2 -3
- package/esm/AIMessageList/components/renderReferrnce/index.js +0 -4
- package/esm/AIMessageList/components/virtuosoList/index.js +0 -4
- package/esm/AIMessageList/type.d.ts +2 -1
- package/package.json +1 -1
|
@@ -23,8 +23,6 @@ var References = function(props) {
|
|
|
23
23
|
/*#__PURE__*/ _jsx("div", {
|
|
24
24
|
className: "".concat(getCls("footerReferences_right")),
|
|
25
25
|
children: /*#__PURE__*/ _jsx(CloseCircleFilled, {
|
|
26
|
-
onPointerEnterCapture: undefined,
|
|
27
|
-
onPointerLeaveCapture: undefined,
|
|
28
26
|
onClick: function() {
|
|
29
27
|
return deleteReferences();
|
|
30
28
|
}
|
|
@@ -57,8 +55,6 @@ var References = function(props) {
|
|
|
57
55
|
/*#__PURE__*/ _jsx("div", {
|
|
58
56
|
className: "".concat(getCls("footerReferences_right")),
|
|
59
57
|
children: /*#__PURE__*/ _jsx(CloseCircleFilled, {
|
|
60
|
-
onPointerEnterCapture: undefined,
|
|
61
|
-
onPointerLeaveCapture: undefined,
|
|
62
58
|
onClick: function() {
|
|
63
59
|
return deleteReferences();
|
|
64
60
|
}
|
|
@@ -186,7 +186,6 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
186
186
|
}
|
|
187
187
|
var list = [];
|
|
188
188
|
if (msg.location === "right" && msg.fileList && msg.fileList.length > 0) {
|
|
189
|
-
console.log("fileList", msg, msg.fileList);
|
|
190
189
|
msg.fileList.map(function(item) {
|
|
191
190
|
list.push({
|
|
192
191
|
type: "file",
|
|
@@ -221,7 +220,6 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
221
220
|
setLoading(true);
|
|
222
221
|
return getList(page, pageSize).then(function(listObj) {
|
|
223
222
|
setLoading(false);
|
|
224
|
-
console.log("listObjlistObj", listObj);
|
|
225
223
|
setDataSource(function(data) {
|
|
226
224
|
return _to_consumable_array(data).concat(_to_consumable_array(listObj.dataSource));
|
|
227
225
|
});
|
|
@@ -361,7 +359,6 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
361
359
|
var topDom = dom.querySelector("." + styles["msgItem-action-popover-floatTop"]);
|
|
362
360
|
var bottomDom = dom.querySelector("." + styles["msgItem-action-popover-floatBottom"]);
|
|
363
361
|
if (!topDom || !bottomDom) return;
|
|
364
|
-
console.log("itemitem", dom, container);
|
|
365
362
|
var con_obj = container.getBoundingClientRect(); // 外层盒子
|
|
366
363
|
var dom_obj = dom.getBoundingClientRect(); // 鼠标滑过元素
|
|
367
364
|
var y = dom_obj.y - con_obj.y;
|
|
@@ -377,7 +374,6 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
377
374
|
topDom.style.cssText = "display:flex";
|
|
378
375
|
}
|
|
379
376
|
} else {
|
|
380
|
-
console.log("yyyy", y, dom_obj, con_obj, y + dom_obj.height < con_obj.height);
|
|
381
377
|
// 元素top不在可视区域内
|
|
382
378
|
if (y + dom_obj.height < con_obj.height) {
|
|
383
379
|
// 底部在可视区域内
|
|
@@ -110,7 +110,7 @@ export interface sendMsgAjaxParams {
|
|
|
110
110
|
beforeInfo: any
|
|
111
111
|
) => string;
|
|
112
112
|
onOpen?: (res: Response, onOpenProps: onOpenProps) => void;
|
|
113
|
-
onMessage?: (ev: EventSourceMessage,closeCallback:()=>void) => { id: string; content: string };
|
|
113
|
+
onMessage?: (ev: EventSourceMessage,closeCallback:()=>void,bodyParams:string,msgId:string) => { id: string; content: string };
|
|
114
114
|
onClose?: () => void;
|
|
115
115
|
onError?: (err: any) => void;
|
|
116
116
|
coverProps?: object;
|
|
@@ -203,6 +203,7 @@ export interface fileListProps {
|
|
|
203
203
|
fileUpload: fileUploadProps;
|
|
204
204
|
errorCallback: (error: errorMessageProps) => void;
|
|
205
205
|
changeFileCanSending: (flag: boolean) => void;
|
|
206
|
+
onChange:(obj:{page:number,pageSize:number,fileList:fileCustomProps[]})=>void
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
// file 自定义对象
|