bhd-components 0.9.2 → 0.9.4
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 +456 -364
- package/dist/index.esm.es5.development.js +414 -323
- 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} +8247 -6856
- 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 +311 -254
- package/es2017/bhdDatePicker/index.module.less +106 -9
- 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 +16 -1
- package/es2017/i18n/zh_CN.js +16 -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 +312 -255
- package/esm/bhdDatePicker/index.module.less +106 -9
- 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 +16 -1
- package/esm/i18n/zh_CN.js +16 -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
|
@@ -16,7 +16,7 @@ import i18Conversion from "../../../i18n";
|
|
|
16
16
|
className
|
|
17
17
|
超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
|
|
18
18
|
*/ const BhdTableSimple = (props)=>{
|
|
19
|
-
let { className
|
|
19
|
+
let { className, locale, borderBottom = false, rowSelection, ajaxErr, dataSource, kind = "simple", loading, notDataText = i18Conversion("noData") } = props;
|
|
20
20
|
const renderTableText = ()=>{
|
|
21
21
|
if (ajaxErr) {
|
|
22
22
|
return /*#__PURE__*/ _jsxs("div", {
|
package/es2017/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js
CHANGED
|
@@ -16,7 +16,7 @@ import i18Conversion from "../../../i18n";
|
|
|
16
16
|
className
|
|
17
17
|
超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
|
|
18
18
|
*/ const BhdTableSimple = (props)=>{
|
|
19
|
-
let { className =""
|
|
19
|
+
let { className = "", locale, borderBottom = false, rowSelection, ajaxErr, dataSource, kind = "simple", loading, notDataText = i18Conversion("noData"), components = {
|
|
20
20
|
table: null,
|
|
21
21
|
header: {
|
|
22
22
|
wrapper: null,
|
|
@@ -28,7 +28,7 @@ import i18Conversion from "../../../i18n";
|
|
|
28
28
|
row: null,
|
|
29
29
|
cell: null
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
} } = props;
|
|
32
32
|
const renderTableText = ()=>{
|
|
33
33
|
if (ajaxErr) {
|
|
34
34
|
return /*#__PURE__*/ _jsxs("div", {
|
|
@@ -5,20 +5,20 @@ import * as React from "react";
|
|
|
5
5
|
import { useState, useLayoutEffect, useRef } from "react";
|
|
6
6
|
import styles from "./index.module.less";
|
|
7
7
|
import TitleBar from "../titleBar";
|
|
8
|
-
import Pagination from "../pagination
|
|
8
|
+
import Pagination from "../pagination";
|
|
9
9
|
import i18Conversion from "../i18n";
|
|
10
|
-
import BhdTableSimple from "./components/BhdTableSimple
|
|
10
|
+
import BhdTableSimple from "./components/BhdTableSimple";
|
|
11
11
|
function BhdAppLayout(props) {
|
|
12
|
-
var _filterRef_current, _headRef_current, _otherHeadRef_current, _otherContentRef_current;
|
|
13
|
-
const { className
|
|
12
|
+
var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
|
|
13
|
+
const { className, headerClassName, tableBoxClassName, headConfig, filterConfig, headContent, otherContent, tableConfig, footerConfig } = props;
|
|
14
14
|
const [scrollY, setScrollY] = useState("");
|
|
15
15
|
const [scrollConfig, setScrollConfig] = useState(props.scrollConfig);
|
|
16
16
|
const windowChange = ()=>{
|
|
17
|
-
var _headRef_current, _headRef_current1, _filterRef_current, _filterRef_current1, _otherHeadRef_current, _otherHeadRef_current1, _otherContentRef_current, _otherContentRef_current1;
|
|
18
|
-
let headRefHeight = isNaN(headRef === null ||
|
|
19
|
-
let filterRefHeight = isNaN(filterRef === null ||
|
|
20
|
-
let otherHeadRefHeight = isNaN(otherHeadRef === null ||
|
|
21
|
-
let otherContentRefHeight = isNaN(otherContentRef === null ||
|
|
17
|
+
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;
|
|
18
|
+
let 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;
|
|
19
|
+
let 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;
|
|
20
|
+
let 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;
|
|
21
|
+
let 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;
|
|
22
22
|
const height = headRefHeight + filterRefHeight + otherHeadRefHeight + otherContentRefHeight + 56 + 16 + 60 + 50;
|
|
23
23
|
const offsetHeight = `calc(100vh - ${height}px)`;
|
|
24
24
|
setScrollY(offsetHeight);
|
|
@@ -36,10 +36,10 @@ function BhdAppLayout(props) {
|
|
|
36
36
|
useLayoutEffect(()=>{
|
|
37
37
|
windowChange();
|
|
38
38
|
}, [
|
|
39
|
-
filterRef === null ||
|
|
40
|
-
headRef === null ||
|
|
41
|
-
otherHeadRef === null ||
|
|
42
|
-
otherContentRef === null ||
|
|
39
|
+
(_filterRef = filterRef) === null || _filterRef === void 0 ? void 0 : (_filterRef_current = _filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight,
|
|
40
|
+
(_headRef = headRef) === null || _headRef === void 0 ? void 0 : (_headRef_current = _headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight,
|
|
41
|
+
(_otherHeadRef = otherHeadRef) === null || _otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = _otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight,
|
|
42
|
+
(_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
|
|
43
43
|
]);
|
|
44
44
|
return /*#__PURE__*/ _jsxs("div", {
|
|
45
45
|
className: `${styles.bhd_app_layout} ${styles.className} ${className || ""}`,
|
|
@@ -56,7 +56,7 @@ function BhdAppLayout(props) {
|
|
|
56
56
|
/*#__PURE__*/ _jsxs("main", {
|
|
57
57
|
className: styles.bhd_app_layout_main,
|
|
58
58
|
children: [
|
|
59
|
-
(filterConfig === null ||
|
|
59
|
+
((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ _jsxs("div", {
|
|
60
60
|
ref: filterRef,
|
|
61
61
|
className: styles.bhd_app_layout_main_filter,
|
|
62
62
|
children: [
|
|
@@ -93,7 +93,7 @@ function BhdAppLayout(props) {
|
|
|
93
93
|
})
|
|
94
94
|
}),
|
|
95
95
|
/*#__PURE__*/ _jsx("div", {
|
|
96
|
-
onClick: filterConfig === null ||
|
|
96
|
+
onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
|
|
97
97
|
className: styles.bhd_app_layout_main_filter_clear,
|
|
98
98
|
children: i18Conversion("清空条件")
|
|
99
99
|
})
|
|
@@ -116,7 +116,7 @@ function BhdAppLayout(props) {
|
|
|
116
116
|
className: styles.bhd_app_layout_footer,
|
|
117
117
|
children: [
|
|
118
118
|
/*#__PURE__*/ _jsx("div", {
|
|
119
|
-
children: (footerConfig === null ||
|
|
119
|
+
children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
|
|
120
120
|
}),
|
|
121
121
|
/*#__PURE__*/ _jsx(Pagination, _object_spread({}, footerConfig))
|
|
122
122
|
]
|