bhd-components 0.9.2 → 0.9.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 +1 -1
- package/dist/index.esm.es5.development.css +454 -363
- package/dist/index.esm.es5.development.js +333 -325
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.css +119 -0
- package/dist/{a5565b8a.esm.es5.development.js → vendor.esm.es5.development.js} +8472 -7204
- package/dist/vendor.esm.es5.production.css +11 -0
- package/dist/vendor.esm.es5.production.js +485 -0
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +1 -1
- package/es2017/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +2 -2
- package/es2017/bhdAppLayout/index.js +16 -16
- package/es2017/bhdDatePicker/index.d.ts +1 -2
- package/es2017/bhdDatePicker/index.js +253 -256
- package/es2017/bhdDatePicker/index.module.less +120 -8
- package/es2017/bhdSelect/index.js +4 -4
- package/es2017/bhdTipModal/index.js +6 -6
- package/es2017/customerService/contactsList.d.ts +2 -2
- package/es2017/customerService/contactsList.js +2 -2
- package/es2017/customerService/function.js +2 -1
- package/es2017/customerService/historyFun.d.ts +2 -2
- package/es2017/customerService/historyFun.js +2 -2
- package/es2017/customerService/index.d.ts +2 -2
- package/es2017/customerService/index.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +3 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.js +2 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +3 -3
- package/es2017/customerService/js-screen-shot/lib/main-entrance/CreateDom.js +4 -3
- package/es2017/customerService/js-screen-shot/lib/main-entrance/InitData.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +6 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.js +15 -14
- package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +1 -1
- package/es2017/customerService/js-screen-shot/lib/split-methods/drawCrossImg.js +2 -1
- package/es2017/customerService/js-screen-shot/main.js +38 -35
- package/es2017/customerService/screenshotTool.d.ts +2 -2
- package/es2017/customerService/screenshotTool.js +2 -2
- package/es2017/customerService/teacherList.d.ts +2 -2
- package/es2017/customerService/teacherList.js +2 -2
- package/es2017/i18n/en_US.js +4 -1
- package/es2017/i18n/zh_CN.js +4 -1
- package/es2017/icons/index.js +2 -2
- package/es2017/index.js +14 -14
- package/es2017/provider/index.js +2 -2
- package/es2017/table/index.js +4 -4
- package/es2017/tableSelect/index.js +3 -3
- package/es2017/textTootip/index.js +1 -1
- package/es2017/titleBar/index.js +3 -3
- package/es2017/viewImage/index.js +13 -13
- package/esm/bhdAppLayout/index.js +15 -15
- package/esm/bhdDatePicker/index.d.ts +1 -2
- package/esm/bhdDatePicker/index.js +254 -257
- package/esm/bhdDatePicker/index.module.less +120 -8
- package/esm/bhdSelect/index.js +1 -1
- package/esm/bhdTipModal/index.js +1 -1
- package/esm/customerService/contactsList.d.ts +2 -2
- package/esm/customerService/contactsList.js +1 -1
- package/esm/customerService/function.js +2 -1
- package/esm/customerService/historyFun.d.ts +2 -2
- package/esm/customerService/historyFun.js +1 -1
- package/esm/customerService/index.d.ts +2 -2
- package/esm/customerService/index.js +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +3 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.js +2 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +3 -3
- package/esm/customerService/js-screen-shot/lib/main-entrance/CreateDom.js +4 -3
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +5 -4
- package/esm/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.js +15 -14
- package/esm/customerService/js-screen-shot/lib/split-methods/drawCrossImg.js +2 -1
- package/esm/customerService/js-screen-shot/main.js +31 -28
- package/esm/customerService/screenshotTool.d.ts +2 -2
- package/esm/customerService/screenshotTool.js +1 -1
- package/esm/customerService/teacherList.d.ts +2 -2
- package/esm/customerService/teacherList.js +1 -1
- package/esm/i18n/en_US.js +4 -1
- package/esm/i18n/zh_CN.js +4 -1
- package/esm/icons/index.js +1 -1
- package/esm/index.js +14 -14
- package/esm/tableSelect/index.js +1 -1
- package/esm/viewImage/index.js +3 -3
- package/package.json +1 -1
- package/dist/deb6cc9b.esm.es5.production.js +0 -485
- package/dist/vendor.esm.es5.development.esm.es5.development.css +0 -119
- package/dist/vendor.esm.es5.production.esm.es5.production.css +0 -11
- package/es2017/customerService/screenShotPlugin.esm.js +0 -6515
- package/esm/customerService/screenShotPlugin.esm.js +0 -6516
|
@@ -70,7 +70,7 @@ export function toolClickEvent(toolName, index, mouseEvent, completeCallback, cl
|
|
|
70
70
|
if (textInputController != null && data.getTextStatus() || textInputController != null && toolName !== "text") {
|
|
71
71
|
const text = textInputController.innerText;
|
|
72
72
|
if (text && text !== "") {
|
|
73
|
-
const { positionX
|
|
73
|
+
const { positionX, positionY, color, size } = data.getTextInfo();
|
|
74
74
|
drawText(text, positionX, positionY, color, size, screenShotCanvas);
|
|
75
75
|
// 添加历史记录
|
|
76
76
|
addHistory();
|
|
@@ -10,6 +10,7 @@ export function drawCrossImg(html) {
|
|
|
10
10
|
img.crossOrigin = "anonymous";
|
|
11
11
|
img.src = `${href}&time=${+new Date().getTime()}`;
|
|
12
12
|
img.onload = function() {
|
|
13
|
+
var _canvas;
|
|
13
14
|
const width = element.width;
|
|
14
15
|
const height = element.height;
|
|
15
16
|
const canvas = document.createElement("canvas");
|
|
@@ -17,7 +18,7 @@ export function drawCrossImg(html) {
|
|
|
17
18
|
canvas.height = height;
|
|
18
19
|
const ctx = canvas.getContext("2d");
|
|
19
20
|
ctx.drawImage(img, 0, 0, width, height);
|
|
20
|
-
const base64 = canvas === null ||
|
|
21
|
+
const base64 = (_canvas = canvas) === null || _canvas === void 0 ? void 0 : _canvas.toDataURL();
|
|
21
22
|
element.setAttribute("src", base64);
|
|
22
23
|
resolve("转换成功");
|
|
23
24
|
};
|
|
@@ -145,7 +145,7 @@ class ScreenShot {
|
|
|
145
145
|
if (context == null || imgContext == null) return;
|
|
146
146
|
// 赋值截图区域canvas画布
|
|
147
147
|
this.screenShotCanvas = context;
|
|
148
|
-
const { videoWidth
|
|
148
|
+
const { videoWidth, videoHeight } = this.videoController;
|
|
149
149
|
if (this.wrcWindowMode) {
|
|
150
150
|
// 从窗口视频流中获取body内容
|
|
151
151
|
const bodyImgData = this.getWindowContentData(videoWidth, videoHeight, containerWidth * this.dpr, containerHeight * this.dpr);
|
|
@@ -153,6 +153,16 @@ class ScreenShot {
|
|
|
153
153
|
// 将body内容绘制到图片容器里
|
|
154
154
|
imgContext.putImageData(bodyImgData, 0, 0);
|
|
155
155
|
} else {
|
|
156
|
+
var // console.log("对视频容器的内容进行裁剪", {
|
|
157
|
+
// wrcImgPosition: this.wrcImgPosition,
|
|
158
|
+
// containerWidth,
|
|
159
|
+
// containerHeight,
|
|
160
|
+
// videoWidth,
|
|
161
|
+
// videoHeight,
|
|
162
|
+
// fixWidth,
|
|
163
|
+
// fixHeight
|
|
164
|
+
// });
|
|
165
|
+
_imgContext;
|
|
156
166
|
// 对webrtc源提供的图像宽高进行修复
|
|
157
167
|
let fixWidth = containerWidth;
|
|
158
168
|
let fixHeight = videoHeight * containerWidth / videoWidth;
|
|
@@ -163,16 +173,7 @@ class ScreenShot {
|
|
|
163
173
|
// 对视频容器的内容进行裁剪
|
|
164
174
|
fixWidth = this.wrcImgPosition.w > 0 ? this.wrcImgPosition.w : fixWidth;
|
|
165
175
|
fixHeight = this.wrcImgPosition.h > 0 ? this.wrcImgPosition.h : fixHeight;
|
|
166
|
-
|
|
167
|
-
// wrcImgPosition: this.wrcImgPosition,
|
|
168
|
-
// containerWidth,
|
|
169
|
-
// containerHeight,
|
|
170
|
-
// videoWidth,
|
|
171
|
-
// videoHeight,
|
|
172
|
-
// fixWidth,
|
|
173
|
-
// fixHeight
|
|
174
|
-
// });
|
|
175
|
-
imgContext === null || imgContext === void 0 ? void 0 : imgContext.drawImage(this.videoController, this.wrcImgPosition.x, this.wrcImgPosition.y, fixWidth, fixHeight);
|
|
176
|
+
(_imgContext = imgContext) === null || _imgContext === void 0 ? void 0 : _imgContext.drawImage(this.videoController, this.wrcImgPosition.x, this.wrcImgPosition.y, fixWidth, fixHeight);
|
|
176
177
|
// // 要保存的字符串
|
|
177
178
|
// const stringData = imgContext.canvas.toDataURL("png");
|
|
178
179
|
// // dada 表示要转换的字符串数据,type 表示要转换的数据格式
|
|
@@ -375,27 +376,28 @@ class ScreenShot {
|
|
|
375
376
|
// this.cutBoxSizeContainer = this.data.getCutBoxSizeContainer() as HTMLDivElement | null;
|
|
376
377
|
}
|
|
377
378
|
setOptionalParameter(options) {
|
|
379
|
+
var _options, _options1, _options2, _options3, _options4, _options5, _options6, _options7, _options8, _options9, _options10, _options11, _options12, _options13, _options14;
|
|
378
380
|
// 单击截取全屏启用状态,默认为false
|
|
379
|
-
if ((options === null ||
|
|
381
|
+
if (((_options = options) === null || _options === void 0 ? void 0 : _options.clickCutFullScreen) === true) {
|
|
380
382
|
this.clickCutFullScreen = true;
|
|
381
383
|
}
|
|
382
384
|
// 判断调用者是否传了截图进来
|
|
383
|
-
if ((options === null ||
|
|
385
|
+
if (((_options1 = options) === null || _options1 === void 0 ? void 0 : _options1.imgSrc) != null) {
|
|
384
386
|
this.imgSrc = options.imgSrc;
|
|
385
387
|
}
|
|
386
388
|
// 是否加载跨域图片
|
|
387
|
-
if ((options === null ||
|
|
389
|
+
if (((_options2 = options) === null || _options2 === void 0 ? void 0 : _options2.loadCrossImg) === true) {
|
|
388
390
|
this.loadCrossImg = true;
|
|
389
391
|
}
|
|
390
392
|
// 跨域时的代理服务器地址
|
|
391
|
-
if (options === null ||
|
|
393
|
+
if ((_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.proxyUrl) {
|
|
392
394
|
this.proxyUrl = options.proxyUrl;
|
|
393
395
|
}
|
|
394
|
-
if (options === null ||
|
|
396
|
+
if ((_options4 = options) === null || _options4 === void 0 ? void 0 : _options4.useCORS) {
|
|
395
397
|
this.useCORS = options.useCORS;
|
|
396
398
|
}
|
|
397
399
|
// 设置截图容器的位置信息
|
|
398
|
-
if ((options === null ||
|
|
400
|
+
if (((_options5 = options) === null || _options5 === void 0 ? void 0 : _options5.position) != null) {
|
|
399
401
|
var _options_position, _options_position1;
|
|
400
402
|
if (((_options_position = options.position) === null || _options_position === void 0 ? void 0 : _options_position.top) != null) {
|
|
401
403
|
this.position.top = options.position.top;
|
|
@@ -405,31 +407,31 @@ class ScreenShot {
|
|
|
405
407
|
}
|
|
406
408
|
}
|
|
407
409
|
// 截图容器dom
|
|
408
|
-
if (options === null ||
|
|
410
|
+
if ((_options6 = options) === null || _options6 === void 0 ? void 0 : _options6.screenShotDom) {
|
|
409
411
|
this.screenShotDom = options.screenShotDom;
|
|
410
412
|
}
|
|
411
413
|
// webrtc截图等待时间
|
|
412
|
-
if (options === null ||
|
|
414
|
+
if ((_options7 = options) === null || _options7 === void 0 ? void 0 : _options7.wrcReplyTime) {
|
|
413
415
|
this.wrcReplyTime = options.wrcReplyTime;
|
|
414
416
|
}
|
|
415
417
|
// 是否初始化裁剪框
|
|
416
|
-
if (options === null ||
|
|
418
|
+
if ((_options8 = options) === null || _options8 === void 0 ? void 0 : _options8.cropBoxInfo) {
|
|
417
419
|
this.cropBoxInfo = options.cropBoxInfo;
|
|
418
420
|
}
|
|
419
421
|
// 是否需要更改工具栏的展示位置
|
|
420
|
-
if (options === null ||
|
|
422
|
+
if ((_options9 = options) === null || _options9 === void 0 ? void 0 : _options9.toolPosition) {
|
|
421
423
|
this.placement = options.toolPosition;
|
|
422
424
|
}
|
|
423
425
|
// 是否需要对webrtc模式下捕获到的内容进行裁剪
|
|
424
|
-
if (options === null ||
|
|
425
|
-
const { x
|
|
426
|
+
if ((_options10 = options) === null || _options10 === void 0 ? void 0 : _options10.wrcImgPosition) {
|
|
427
|
+
const { x, y } = options.wrcImgPosition;
|
|
426
428
|
// 坐标需要取负数才能正确的裁剪
|
|
427
429
|
this.wrcImgPosition.x = Math.abs(x) * -1;
|
|
428
430
|
this.wrcImgPosition.y = Math.abs(y) * -1;
|
|
429
431
|
}
|
|
430
432
|
// 是否隐藏滚动条
|
|
431
|
-
if ((options === null ||
|
|
432
|
-
const { state
|
|
433
|
+
if (((_options11 = options) === null || _options11 === void 0 ? void 0 : _options11.hiddenScrollBar) != null) {
|
|
434
|
+
const { state, color, fillWidth, fillHeight, fillState } = options.hiddenScrollBar;
|
|
433
435
|
this.hiddenScrollBar = {
|
|
434
436
|
state,
|
|
435
437
|
color: color ? color : "#000000",
|
|
@@ -445,13 +447,13 @@ class ScreenShot {
|
|
|
445
447
|
}
|
|
446
448
|
}
|
|
447
449
|
// 是否启用窗口截图模式
|
|
448
|
-
if ((options === null ||
|
|
450
|
+
if (((_options12 = options) === null || _options12 === void 0 ? void 0 : _options12.wrcWindowMode) != null) {
|
|
449
451
|
this.wrcWindowMode = options.wrcWindowMode;
|
|
450
452
|
}
|
|
451
|
-
if ((options === null ||
|
|
453
|
+
if (((_options13 = options) === null || _options13 === void 0 ? void 0 : _options13.curTabState) != null) {
|
|
452
454
|
this.curTabState = options.curTabState;
|
|
453
455
|
}
|
|
454
|
-
if ((options === null ||
|
|
456
|
+
if (((_options14 = options) === null || _options14 === void 0 ? void 0 : _options14.customRightClickEvent) != null) {
|
|
455
457
|
this.customRightClickEvent = options.customRightClickEvent;
|
|
456
458
|
}
|
|
457
459
|
}
|
|
@@ -471,7 +473,7 @@ class ScreenShot {
|
|
|
471
473
|
return;
|
|
472
474
|
}
|
|
473
475
|
// 获取鼠标按下时的坐标
|
|
474
|
-
const { moveStartX
|
|
476
|
+
const { moveStartX, moveStartY } = this.movePosition;
|
|
475
477
|
// 裁剪框边框节点事件存在且裁剪框未进行操作,则对鼠标样式进行修改
|
|
476
478
|
if (this.cutOutBoxBorderArr.length > 0 && !this.data.getDraggingTrim()) {
|
|
477
479
|
// 标识鼠标是否在裁剪框内
|
|
@@ -550,7 +552,7 @@ class ScreenShot {
|
|
|
550
552
|
this.tempGraphPosition = drawCutOutBox(x, y, width, height, context, this.data.getBorderSize(), this.screenShotContainer, this.screenShotImageController);
|
|
551
553
|
} else {
|
|
552
554
|
// 裁剪框其他8个点的拖拽事件
|
|
553
|
-
const { tempStartX
|
|
555
|
+
const { tempStartX, tempStartY, tempWidth, tempHeight } = zoomCutOutBoxPosition(currentX, currentY, startX, startY, width, height, this.borderOption);
|
|
554
556
|
// 绘制裁剪框
|
|
555
557
|
this.tempGraphPosition = drawCutOutBox(tempStartX, tempStartY, tempWidth, tempHeight, context, this.data.getBorderSize(), this.screenShotContainer, this.screenShotImageController);
|
|
556
558
|
}
|
|
@@ -635,6 +637,7 @@ class ScreenShot {
|
|
|
635
637
|
}
|
|
636
638
|
}
|
|
637
639
|
constructor(options){
|
|
640
|
+
var _options, _options1, _options2, _options3;
|
|
638
641
|
// 当前实例的响应式data数据
|
|
639
642
|
_define_property(this, "data", void 0);
|
|
640
643
|
// video容器用于存放屏幕MediaStream流
|
|
@@ -934,7 +937,7 @@ class ScreenShot {
|
|
|
934
937
|
// this.data.setCutBoxSizeStatus(false);
|
|
935
938
|
}
|
|
936
939
|
// 获取当前绘制中的工具位置信息
|
|
937
|
-
const { startX
|
|
940
|
+
const { startX, startY, width, height } = this.drawGraphPosition;
|
|
938
941
|
// 获取当前鼠标坐标
|
|
939
942
|
const currentX = nonNegativeData(event instanceof MouseEvent ? event.offsetX : event.touches[0].pageX);
|
|
940
943
|
const currentY = nonNegativeData(event instanceof MouseEvent ? event.offsetY : event.touches[0].pageY);
|
|
@@ -1041,7 +1044,7 @@ class ScreenShot {
|
|
|
1041
1044
|
this.drawGraphPosition = this.tempGraphPosition;
|
|
1042
1045
|
// 如果工具栏未点击则保存裁剪框位置
|
|
1043
1046
|
if (!this.data.getToolClickStatus()) {
|
|
1044
|
-
const { startX
|
|
1047
|
+
const { startX, startY, width, height } = this.drawGraphPosition;
|
|
1045
1048
|
this.data.setCutOutBoxPosition(startX, startY, width, height);
|
|
1046
1049
|
}
|
|
1047
1050
|
// 保存边框节点信息
|
|
@@ -1077,14 +1080,14 @@ class ScreenShot {
|
|
|
1077
1080
|
// 获取截图区域canvas容器(获取的同时也会为InitData中的全局变量赋值)
|
|
1078
1081
|
this.setGlobalParameter();
|
|
1079
1082
|
// 修改截图容器可滚动状态
|
|
1080
|
-
this.data.setNoScrollStatus(options === null ||
|
|
1083
|
+
this.data.setNoScrollStatus((_options = options) === null || _options === void 0 ? void 0 : _options.noScroll);
|
|
1081
1084
|
// 加载截图组件
|
|
1082
|
-
this.load(options === null ||
|
|
1085
|
+
this.load((_options1 = options) === null || _options1 === void 0 ? void 0 : _options1.triggerCallback, (_options2 = options) === null || _options2 === void 0 ? void 0 : _options2.cancelCallback);
|
|
1083
1086
|
if (this.toolController == null || this.screenShotContainer == null || this.textInputController == null) {
|
|
1084
1087
|
return;
|
|
1085
1088
|
}
|
|
1086
1089
|
// 截图组件加载完毕后,对层级进行调整
|
|
1087
|
-
this.adjustContainerLevels((options === null ||
|
|
1090
|
+
this.adjustContainerLevels(((_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.level) ? options.level : 0);
|
|
1088
1091
|
// 创建键盘事件监听
|
|
1089
1092
|
this.keyboardEventHandle = new KeyboardEventHandle(this.screenShotContainer, this.toolController);
|
|
1090
1093
|
// 给输入容器设置快捷键监听
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "react-image-crop/dist/ReactCrop.css";
|
|
3
3
|
interface data {
|
|
4
4
|
imgBese64: string;
|
|
@@ -6,5 +6,5 @@ interface data {
|
|
|
6
6
|
saveScreenshotBese64: (bese64: string) => void;
|
|
7
7
|
cancelScreenshot: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare const ScreenshotTool:
|
|
9
|
+
declare const ScreenshotTool: React.ForwardRefExoticComponent<data & React.RefAttributes<unknown>>;
|
|
10
10
|
export default ScreenshotTool;
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
|
|
|
2
2
|
import React, { useState, forwardRef, useEffect } from "react";
|
|
3
3
|
import ReactCrop, { centerCrop, makeAspectCrop } from "react-image-crop";
|
|
4
4
|
import { CloseOutlined } from "@ant-design/icons";
|
|
5
|
-
import { CustomDuihao } from "../icons
|
|
5
|
+
import { CustomDuihao } from "../icons";
|
|
6
6
|
import "react-image-crop/dist/ReactCrop.css";
|
|
7
7
|
import styles from "./index.module.less";
|
|
8
8
|
const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
9
|
-
let { imgBese64
|
|
9
|
+
let { imgBese64, screenShotType, saveScreenshotBese64, cancelScreenshot } = props;
|
|
10
10
|
const [crop, setCrop] = useState();
|
|
11
11
|
const [completedCrop, setCompletedCrop] = useState();
|
|
12
12
|
const [aspect, setAspect] = useState(16 / 9);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface data {
|
|
3
3
|
type: number;
|
|
4
4
|
userData: any;
|
|
@@ -7,5 +7,5 @@ interface data {
|
|
|
7
7
|
onClose: any;
|
|
8
8
|
enterTeacherChat: any;
|
|
9
9
|
}
|
|
10
|
-
declare const TeacherList: (props: data) => JSX.Element;
|
|
10
|
+
declare const TeacherList: (props: data) => React.JSX.Element;
|
|
11
11
|
export default TeacherList;
|
|
@@ -3,10 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ice/jsx-runt
|
|
|
3
3
|
import React, { useEffect, useState, useRef } from "react";
|
|
4
4
|
import styles from "./index.module.less";
|
|
5
5
|
import { Input } from "antd";
|
|
6
|
-
import { CustomClose } from "../icons
|
|
6
|
+
import { CustomClose } from "../icons";
|
|
7
7
|
import { SearchOutlined } from "@ant-design/icons";
|
|
8
8
|
const TeacherList = (props)=>{
|
|
9
|
-
let { type
|
|
9
|
+
let { type, userData, http, urllocation, onClose, enterTeacherChat } = props;
|
|
10
10
|
const [keyWordProblem, setKeyWordProblem] = useState(""); //搜索内容
|
|
11
11
|
const [showLoadingState, setShowLoadingState] = useState(2); //2、无数据 ,3、不显示图片
|
|
12
12
|
// const [totalData, setTotalData] = useState([]); //总数据
|
package/es2017/i18n/en_US.js
CHANGED
package/es2017/i18n/zh_CN.js
CHANGED
package/es2017/icons/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from '@ant-design/icons';
|
|
2
|
+
export * from './components';
|
package/es2017/index.js
CHANGED
|
@@ -70,19 +70,19 @@ export { default as Watermark } from "antd/es/watermark";
|
|
|
70
70
|
export { default as QRCode } from "antd/es/qrcode";
|
|
71
71
|
export { default as version } from "antd/es/version";
|
|
72
72
|
export { default as AntdMessage } from "antd/es/message";
|
|
73
|
-
/* 自定义修改 */ export { default as Provider } from "./provider
|
|
74
|
-
export { default as TextTootip } from "./textTootip
|
|
73
|
+
/* 自定义修改 */ export { default as Provider } from "./provider";
|
|
74
|
+
export { default as TextTootip } from "./textTootip";
|
|
75
75
|
export { default as zh_CN } from "antd/locale/zh_CN";
|
|
76
76
|
export { default as en_US } from "antd/locale/en_US";
|
|
77
|
-
export { default as Table } from "./table
|
|
78
|
-
export { default as BhdTableSimple } from "./bhdAppLayout/components/BhdTableSimple
|
|
79
|
-
export { default as message } from "./message
|
|
80
|
-
export { default as Pagination } from "./pagination
|
|
81
|
-
export { default as BhdTableSelect } from "./tableSelect
|
|
82
|
-
export { default as TitleBar } from "./titleBar
|
|
83
|
-
export { default as ViewImage } from "./viewImage
|
|
84
|
-
export { default as BhdTipModal } from "./bhdTipModal
|
|
85
|
-
export { default as BhdSelect } from "./bhdSelect
|
|
86
|
-
export { default as BhdAppLayout } from "./bhdAppLayout
|
|
87
|
-
export { default as CustomerService } from "./customerService
|
|
88
|
-
export { default as BhdDatePicker } from "./bhdDatePicker
|
|
77
|
+
export { default as Table } from "./table"; //改写table逻辑
|
|
78
|
+
export { default as BhdTableSimple } from "./bhdAppLayout/components/BhdTableSimple"; //改写table逻辑
|
|
79
|
+
export { default as message } from "./message"; //封装message
|
|
80
|
+
export { default as Pagination } from "./pagination"; //封装Pagination
|
|
81
|
+
export { default as BhdTableSelect } from "./tableSelect"; //封装 Table Head Select
|
|
82
|
+
export { default as TitleBar } from "./titleBar"; //标题栏
|
|
83
|
+
export { default as ViewImage } from "./viewImage"; //查看大图
|
|
84
|
+
export { default as BhdTipModal } from "./bhdTipModal"; //提示框
|
|
85
|
+
export { default as BhdSelect } from "./bhdSelect"; //封装 bhdSelect
|
|
86
|
+
export { default as BhdAppLayout } from "./bhdAppLayout"; //封装 BhdAppLayout
|
|
87
|
+
export { default as CustomerService } from "./customerService"; //封装 智能客服
|
|
88
|
+
export { default as BhdDatePicker } from "./bhdDatePicker"; //封装 日历组件
|
package/es2017/provider/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/c
|
|
|
11
11
|
import BhdTipModal from "../bhdTipModal/modal";
|
|
12
12
|
const Provider = (Component, customConfig = {})=>{
|
|
13
13
|
let AppConfig = Object.assign(config, customConfig);
|
|
14
|
-
const { message ={}
|
|
14
|
+
const { message = {}, notification = {} } = AppConfig;
|
|
15
15
|
ConfigProvider.config(AppConfig);
|
|
16
16
|
ConfigProvider.__proto__.lang = AppConfig.locale.locale;
|
|
17
17
|
return (_param)=>{
|
|
@@ -38,7 +38,7 @@ Provider.Component = (props)=>{
|
|
|
38
38
|
let AppConfig = Object.assign(config, props);
|
|
39
39
|
ConfigProvider.__proto__.lang = AppConfig.locale.locale;
|
|
40
40
|
ConfigProvider.config(AppConfig);
|
|
41
|
-
const { message ={}
|
|
41
|
+
const { message = {}, notification = {} } = AppConfig;
|
|
42
42
|
return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, AppConfig), {
|
|
43
43
|
children: /*#__PURE__*/ _jsxs(StyleProvider, {
|
|
44
44
|
hashPriority: "high",
|
package/es2017/table/index.js
CHANGED
|
@@ -53,14 +53,14 @@ const Table = (props)=>{
|
|
|
53
53
|
const timerRef = useRef({
|
|
54
54
|
timer: null
|
|
55
55
|
});
|
|
56
|
-
const { defaultWidthRang =[
|
|
56
|
+
const { defaultWidthRang = [
|
|
57
57
|
180,
|
|
58
58
|
240,
|
|
59
59
|
320
|
|
60
|
-
]
|
|
60
|
+
], isFixedLeft = true, isFixedRight = true, bordered = false, kind } = props;
|
|
61
61
|
const [columns, setColumns] = useState(props.columns || []);
|
|
62
62
|
const [scrollObject, setScrollObject] = useState(props.scroll || undefined);
|
|
63
|
-
let { columnTootipClassName
|
|
63
|
+
let { columnTootipClassName, columnTootipColor } = props;
|
|
64
64
|
const initColumns = ()=>{
|
|
65
65
|
// let scrollBarDom = tableRef.current.getElementsByClassName(
|
|
66
66
|
// "bhd-table-cell-scrollbar"
|
|
@@ -73,7 +73,7 @@ const Table = (props)=>{
|
|
|
73
73
|
let selectWidth = kind === "simple" ? 40 : 72;
|
|
74
74
|
tableWidth -= selectWidth;
|
|
75
75
|
}
|
|
76
|
-
let { columns: selfColumns
|
|
76
|
+
let { columns: selfColumns } = initColumnsWidth(props.columns, tableWidth);
|
|
77
77
|
setColumns(selfColumns);
|
|
78
78
|
let obj = scrollObject ? scrollObject : {};
|
|
79
79
|
obj = _object_spread_props(_object_spread({}, obj), {
|
|
@@ -6,14 +6,14 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
|
6
6
|
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { useRef } from "react";
|
|
9
|
-
import { CaretDownOutlined } from
|
|
10
|
-
import { Select } from
|
|
9
|
+
import { CaretDownOutlined } from '../icons';
|
|
10
|
+
import { Select } from 'antd';
|
|
11
11
|
//import type { SelectProps } from 'antd';
|
|
12
12
|
import styles from "./index.module.less";
|
|
13
13
|
const BhdTableSelect = (props)=>{
|
|
14
14
|
const { // initOption=[],
|
|
15
15
|
// initOptionType='default',
|
|
16
|
-
className =''
|
|
16
|
+
className = '', dropdownStyle = {}, suffixIcon = null, children } = props;
|
|
17
17
|
const tableSelectRef = useRef(null);
|
|
18
18
|
// const handleTypeSwitchOption=()=>{
|
|
19
19
|
// switch(initOptionType){
|
|
@@ -18,7 +18,7 @@ const getTextSize = (str, fontSize = 14)=>{
|
|
|
18
18
|
return result;
|
|
19
19
|
};
|
|
20
20
|
const TextTootip = (props)=>{
|
|
21
|
-
let { children
|
|
21
|
+
let { children, title, width } = props;
|
|
22
22
|
const [open, setOpen] = useState(false);
|
|
23
23
|
const mouseEnter = (e)=>{
|
|
24
24
|
let w = 0;
|
package/es2017/titleBar/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { useState, useEffect, useLayoutEffect, useRef } from "react";
|
|
4
4
|
import styles from "./index.module.less";
|
|
5
5
|
const TitleBar = (props)=>{
|
|
6
|
-
let { title
|
|
6
|
+
let { title, leftIcon, subTitle, rightContent, wrapClassName = "", rightMaxWidth = 45, leftIconClassName = "", leftTitleClassName = "", leftSubTitleClassName = "", rightClassName = "", leftClassName = "" } = props;
|
|
7
7
|
const titleBarRef = useRef(null);
|
|
8
8
|
const rightContentRef = useRef(null);
|
|
9
9
|
const [kind, setKind] = useState("screen"); //"screen" 全展示 minScreen:小屏展示
|
|
@@ -15,7 +15,7 @@ const TitleBar = (props)=>{
|
|
|
15
15
|
// const onResize = useCallback(, [screenWidth]);
|
|
16
16
|
const onResize = ()=>{
|
|
17
17
|
if (rightContent) {
|
|
18
|
-
const { width
|
|
18
|
+
const { width } = titleBarRef.current.getBoundingClientRect();
|
|
19
19
|
const maxWidth = width * rightMaxWidth / 100;
|
|
20
20
|
if (screenWidth > maxWidth) {
|
|
21
21
|
// kind minScreen
|
|
@@ -27,7 +27,7 @@ const TitleBar = (props)=>{
|
|
|
27
27
|
};
|
|
28
28
|
useLayoutEffect(()=>{
|
|
29
29
|
if (rightContent) {
|
|
30
|
-
const { width
|
|
30
|
+
const { width } = titleBarRef.current.getBoundingClientRect();
|
|
31
31
|
const maxWidth = width * rightMaxWidth / 100;
|
|
32
32
|
const rightWidth = rightContentRef.current.getBoundingClientRect().width;
|
|
33
33
|
setScreenWidth(rightWidth);
|
|
@@ -6,10 +6,10 @@ import * as React from "react";
|
|
|
6
6
|
import { useRef, useImperativeHandle, forwardRef } from "react";
|
|
7
7
|
import styles from "./index.module.less";
|
|
8
8
|
import { Modal } from "antd";
|
|
9
|
-
import { LeftOutlined, RightOutlined, MinusOutlined, PlusOutlined, CustomClose, CustomXuanZuan, CustomDownLoad } from "../icons
|
|
9
|
+
import { LeftOutlined, RightOutlined, MinusOutlined, PlusOutlined, CustomClose, CustomXuanZuan, CustomDownLoad } from "../icons";
|
|
10
10
|
import { getStyle } from "../utils/dom";
|
|
11
|
-
import { Loading } from "../images
|
|
12
|
-
import BhdTipModal from "../bhdTipModal
|
|
11
|
+
import { Loading } from "../images";
|
|
12
|
+
import BhdTipModal from "../bhdTipModal";
|
|
13
13
|
class ViewImage extends React.Component {
|
|
14
14
|
componentDidMount() {
|
|
15
15
|
this.setState({
|
|
@@ -30,8 +30,8 @@ class ViewImage extends React.Component {
|
|
|
30
30
|
document.oncontextmenu = null;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
let { scaleValue
|
|
34
|
-
let { content
|
|
33
|
+
let { scaleValue, imgSrc, imgLeft, imgTop, rotateValue, loading, multiSelect, imgError } = this.state;
|
|
34
|
+
let { content, download } = this.props;
|
|
35
35
|
return /*#__PURE__*/ _jsxs("div", {
|
|
36
36
|
className: styles.viewImgBody,
|
|
37
37
|
children: [
|
|
@@ -153,7 +153,7 @@ class ViewImage extends React.Component {
|
|
|
153
153
|
imgError: false
|
|
154
154
|
});
|
|
155
155
|
_define_property(this, "scaleChange", (value)=>{
|
|
156
|
-
let { maxScale
|
|
156
|
+
let { maxScale, minScale } = this.state;
|
|
157
157
|
if (value >= maxScale) {
|
|
158
158
|
value = maxScale;
|
|
159
159
|
}
|
|
@@ -165,7 +165,7 @@ class ViewImage extends React.Component {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
_define_property(this, "moveImg", (ev)=>{
|
|
168
|
-
let { imgLeft
|
|
168
|
+
let { imgLeft, imgTop } = this.state;
|
|
169
169
|
ev.preventDefault();
|
|
170
170
|
let dom = document.getElementsByClassName(`${styles.viewImgBody_pic}`)[0];
|
|
171
171
|
if (!dom) return;
|
|
@@ -191,7 +191,7 @@ class ViewImage extends React.Component {
|
|
|
191
191
|
document.addEventListener("mouseup", mouseUp);
|
|
192
192
|
});
|
|
193
193
|
_define_property(this, "base64Down", (src)=>{
|
|
194
|
-
let { filename
|
|
194
|
+
let { filename } = this.props;
|
|
195
195
|
var base64 = src.toString(); // imgSrc 就是base64哈
|
|
196
196
|
let type = "png";
|
|
197
197
|
var byteCharacters = atob(base64.replace(/^data:image\/(png|jpeg|jpg);base64,/, (a, b)=>{
|
|
@@ -216,7 +216,7 @@ class ViewImage extends React.Component {
|
|
|
216
216
|
URL.revokeObjectURL(blobUrl);
|
|
217
217
|
});
|
|
218
218
|
_define_property(this, "downloadUrl", ()=>{
|
|
219
|
-
let { imgSrc
|
|
219
|
+
let { imgSrc } = this.state;
|
|
220
220
|
if (/^data:/.test(imgSrc)) {
|
|
221
221
|
try {
|
|
222
222
|
this.base64Down(imgSrc);
|
|
@@ -251,7 +251,7 @@ class ViewImage extends React.Component {
|
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
_define_property(this, "downloadFile", (url, headers, callback = ()=>{})=>{
|
|
254
|
-
let { filename
|
|
254
|
+
let { filename } = this.props;
|
|
255
255
|
let suffix = "png";
|
|
256
256
|
var xhr = new XMLHttpRequest();
|
|
257
257
|
if (url.indexOf("?") != -1) {
|
|
@@ -333,12 +333,12 @@ class ViewImage extends React.Component {
|
|
|
333
333
|
});
|
|
334
334
|
});
|
|
335
335
|
_define_property(this, "preChange", async ()=>{
|
|
336
|
-
let { curIndex
|
|
336
|
+
let { curIndex } = this.state;
|
|
337
337
|
if (curIndex == 0) return;
|
|
338
338
|
await this.getSrc(curIndex - 1);
|
|
339
339
|
});
|
|
340
340
|
_define_property(this, "nextChange", async ()=>{
|
|
341
|
-
let { curIndex
|
|
341
|
+
let { curIndex } = this.state;
|
|
342
342
|
if (curIndex == this.props.multiSelect.length - 1) return;
|
|
343
343
|
await this.getSrc(curIndex + 1);
|
|
344
344
|
});
|
|
@@ -355,7 +355,7 @@ class ViewImage extends React.Component {
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
const AppViewImage = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
358
|
-
let { visible
|
|
358
|
+
let { visible, className } = props;
|
|
359
359
|
const viewRef = useRef(null);
|
|
360
360
|
useImperativeHandle(ref, ()=>({
|
|
361
361
|
updateSrc: ()=>{
|
|
@@ -6,20 +6,20 @@ import * as React from "react";
|
|
|
6
6
|
import { useState, useLayoutEffect, useRef } from "react";
|
|
7
7
|
import styles from "./index.module.less";
|
|
8
8
|
import TitleBar from "../titleBar";
|
|
9
|
-
import Pagination from "../pagination
|
|
9
|
+
import Pagination from "../pagination";
|
|
10
10
|
import i18Conversion from "../i18n";
|
|
11
|
-
import BhdTableSimple from "./components/BhdTableSimple
|
|
11
|
+
import BhdTableSimple from "./components/BhdTableSimple";
|
|
12
12
|
function BhdAppLayout(props) {
|
|
13
|
-
var _filterRef_current, _headRef_current, _otherHeadRef_current, _otherContentRef_current;
|
|
13
|
+
var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
|
|
14
14
|
var className = props.className, headerClassName = props.headerClassName, tableBoxClassName = props.tableBoxClassName, headConfig = props.headConfig, filterConfig = props.filterConfig, headContent = props.headContent, otherContent = props.otherContent, tableConfig = props.tableConfig, footerConfig = props.footerConfig;
|
|
15
15
|
var _useState = _sliced_to_array(useState(""), 2), scrollY = _useState[0], setScrollY = _useState[1];
|
|
16
16
|
var _useState1 = _sliced_to_array(useState(props.scrollConfig), 2), scrollConfig = _useState1[0], setScrollConfig = _useState1[1];
|
|
17
17
|
var windowChange = function() {
|
|
18
|
-
var _headRef_current, _headRef_current1, _filterRef_current, _filterRef_current1, _otherHeadRef_current, _otherHeadRef_current1, _otherContentRef_current, _otherContentRef_current1;
|
|
19
|
-
var headRefHeight = isNaN(headRef === null ||
|
|
20
|
-
var filterRefHeight = isNaN(filterRef === null ||
|
|
21
|
-
var otherHeadRefHeight = isNaN(otherHeadRef === null ||
|
|
22
|
-
var otherContentRefHeight = isNaN(otherContentRef === null ||
|
|
18
|
+
var _headRef_current, _headRef, _headRef_current1, _headRef1, _filterRef_current, _filterRef, _filterRef_current1, _filterRef1, _otherHeadRef_current, _otherHeadRef, _otherHeadRef_current1, _otherHeadRef1, _otherContentRef_current, _otherContentRef, _otherContentRef_current1, _otherContentRef1;
|
|
19
|
+
var headRefHeight = isNaN((_headRef = headRef) === null || _headRef === void 0 ? void 0 : (_headRef_current = _headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight) ? 0 : (_headRef1 = headRef) === null || _headRef1 === void 0 ? void 0 : (_headRef_current1 = _headRef1.current) === null || _headRef_current1 === void 0 ? void 0 : _headRef_current1.offsetHeight;
|
|
20
|
+
var filterRefHeight = isNaN((_filterRef = filterRef) === null || _filterRef === void 0 ? void 0 : (_filterRef_current = _filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight) ? 0 : (_filterRef1 = filterRef) === null || _filterRef1 === void 0 ? void 0 : (_filterRef_current1 = _filterRef1.current) === null || _filterRef_current1 === void 0 ? void 0 : _filterRef_current1.offsetHeight;
|
|
21
|
+
var otherHeadRefHeight = isNaN((_otherHeadRef = otherHeadRef) === null || _otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = _otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight) ? 0 : (_otherHeadRef1 = otherHeadRef) === null || _otherHeadRef1 === void 0 ? void 0 : (_otherHeadRef_current1 = _otherHeadRef1.current) === null || _otherHeadRef_current1 === void 0 ? void 0 : _otherHeadRef_current1.offsetHeight;
|
|
22
|
+
var otherContentRefHeight = isNaN((_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight) ? 0 : (_otherContentRef1 = otherContentRef) === null || _otherContentRef1 === void 0 ? void 0 : (_otherContentRef_current1 = _otherContentRef1.current) === null || _otherContentRef_current1 === void 0 ? void 0 : _otherContentRef_current1.offsetHeight;
|
|
23
23
|
var height = headRefHeight + filterRefHeight + otherHeadRefHeight + otherContentRefHeight + 56 + 16 + 60 + 50;
|
|
24
24
|
var offsetHeight = "calc(100vh - ".concat(height, "px)");
|
|
25
25
|
setScrollY(offsetHeight);
|
|
@@ -37,10 +37,10 @@ function BhdAppLayout(props) {
|
|
|
37
37
|
useLayoutEffect(function() {
|
|
38
38
|
windowChange();
|
|
39
39
|
}, [
|
|
40
|
-
filterRef === null ||
|
|
41
|
-
headRef === null ||
|
|
42
|
-
otherHeadRef === null ||
|
|
43
|
-
otherContentRef === null ||
|
|
40
|
+
(_filterRef = filterRef) === null || _filterRef === void 0 ? void 0 : (_filterRef_current = _filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight,
|
|
41
|
+
(_headRef = headRef) === null || _headRef === void 0 ? void 0 : (_headRef_current = _headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight,
|
|
42
|
+
(_otherHeadRef = otherHeadRef) === null || _otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = _otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight,
|
|
43
|
+
(_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
|
|
44
44
|
]);
|
|
45
45
|
return /*#__PURE__*/ _jsxs("div", {
|
|
46
46
|
className: "".concat(styles.bhd_app_layout, " ").concat(styles.className, " ").concat(className || ""),
|
|
@@ -57,7 +57,7 @@ function BhdAppLayout(props) {
|
|
|
57
57
|
/*#__PURE__*/ _jsxs("main", {
|
|
58
58
|
className: styles.bhd_app_layout_main,
|
|
59
59
|
children: [
|
|
60
|
-
(filterConfig === null ||
|
|
60
|
+
((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ _jsxs("div", {
|
|
61
61
|
ref: filterRef,
|
|
62
62
|
className: styles.bhd_app_layout_main_filter,
|
|
63
63
|
children: [
|
|
@@ -96,7 +96,7 @@ function BhdAppLayout(props) {
|
|
|
96
96
|
})
|
|
97
97
|
}),
|
|
98
98
|
/*#__PURE__*/ _jsx("div", {
|
|
99
|
-
onClick: filterConfig === null ||
|
|
99
|
+
onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
|
|
100
100
|
className: styles.bhd_app_layout_main_filter_clear,
|
|
101
101
|
children: i18Conversion("清空条件")
|
|
102
102
|
})
|
|
@@ -119,7 +119,7 @@ function BhdAppLayout(props) {
|
|
|
119
119
|
className: styles.bhd_app_layout_footer,
|
|
120
120
|
children: [
|
|
121
121
|
/*#__PURE__*/ _jsx("div", {
|
|
122
|
-
children: (footerConfig === null ||
|
|
122
|
+
children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
|
|
123
123
|
}),
|
|
124
124
|
/*#__PURE__*/ _jsx(Pagination, _object_spread({}, footerConfig))
|
|
125
125
|
]
|