bhd-components 0.9.7 → 0.9.9
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 +28 -20
- package/dist/index.esm.es5.development.js +30 -21
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +412 -407
- package/dist/vendor.esm.es5.production.js +4 -4
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +23 -19
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.less +13 -0
- package/es2017/bhdAppLayout/index.module.less +3 -3
- package/es2017/table/index.js +7 -1
- package/esm/bhdAppLayout/components/BhdTableSimple/index.js +23 -19
- package/esm/bhdAppLayout/components/BhdTableSimple/index.less +13 -0
- package/esm/bhdAppLayout/index.module.less +3 -3
- package/esm/table/index.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1714,6 +1714,12 @@
|
|
|
1714
1714
|
}
|
|
1715
1715
|
.app_BhdTableSimple .app_BhdTableSimple_noTable {
|
|
1716
1716
|
padding: 24px 0;
|
|
1717
|
+
display: flex;
|
|
1718
|
+
flex-direction: column;
|
|
1719
|
+
align-items: center;
|
|
1720
|
+
justify-content: center;
|
|
1721
|
+
position: sticky;
|
|
1722
|
+
left: 16px;
|
|
1717
1723
|
}
|
|
1718
1724
|
.app_BhdTableSimple .app_BhdTableSimple_noTable img {
|
|
1719
1725
|
width: 200px;
|
|
@@ -1726,6 +1732,12 @@
|
|
|
1726
1732
|
}
|
|
1727
1733
|
.app_BhdTableSimple .app_BhdTableSimple_errorTable {
|
|
1728
1734
|
padding: 24px 0;
|
|
1735
|
+
display: flex;
|
|
1736
|
+
flex-direction: column;
|
|
1737
|
+
align-items: center;
|
|
1738
|
+
justify-content: center;
|
|
1739
|
+
position: sticky;
|
|
1740
|
+
left: 16px;
|
|
1729
1741
|
}
|
|
1730
1742
|
.app_BhdTableSimple .app_BhdTableSimple_errorTable img {
|
|
1731
1743
|
width: 200px;
|
|
@@ -6061,22 +6073,22 @@
|
|
|
6061
6073
|
"description": "图标,六级填充色"
|
|
6062
6074
|
}
|
|
6063
6075
|
*/
|
|
6064
|
-
.
|
|
6076
|
+
.index_module_bhd_app_layout__f8a672f8 {
|
|
6065
6077
|
display: flex;
|
|
6066
6078
|
flex-direction: column;
|
|
6067
6079
|
height: calc(100vh - 60px);
|
|
6068
6080
|
background-color: #fff;
|
|
6069
6081
|
}
|
|
6070
|
-
.
|
|
6082
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_header__f8a672f8 {
|
|
6071
6083
|
background: #FFFFFF;
|
|
6072
6084
|
padding: 12px 48px;
|
|
6073
6085
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
6074
6086
|
}
|
|
6075
|
-
.
|
|
6087
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 {
|
|
6076
6088
|
flex: 1;
|
|
6077
6089
|
margin-bottom: 56px;
|
|
6078
6090
|
}
|
|
6079
|
-
.
|
|
6091
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 {
|
|
6080
6092
|
min-height: 40px;
|
|
6081
6093
|
background: rgba(0, 0, 0, 0.02);
|
|
6082
6094
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
@@ -6084,18 +6096,18 @@
|
|
|
6084
6096
|
display: flex;
|
|
6085
6097
|
align-items: center;
|
|
6086
6098
|
}
|
|
6087
|
-
.
|
|
6099
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_title__f8a672f8 {
|
|
6088
6100
|
color: rgba(0, 0, 0, 0.65);
|
|
6089
6101
|
font-size: 12px;
|
|
6090
6102
|
}
|
|
6091
|
-
.
|
|
6103
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 {
|
|
6092
6104
|
display: flex;
|
|
6093
6105
|
align-items: center;
|
|
6094
6106
|
}
|
|
6095
|
-
.
|
|
6107
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 li:nth-of-type(1) {
|
|
6096
6108
|
margin-left: 0;
|
|
6097
6109
|
}
|
|
6098
|
-
.
|
|
6110
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 li {
|
|
6099
6111
|
margin-left: 8px;
|
|
6100
6112
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
6101
6113
|
border-radius: 2px;
|
|
@@ -6106,37 +6118,33 @@
|
|
|
6106
6118
|
align-items: center;
|
|
6107
6119
|
padding: 0 8px;
|
|
6108
6120
|
}
|
|
6109
|
-
.
|
|
6121
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 li * {
|
|
6110
6122
|
line-height: 1;
|
|
6111
6123
|
}
|
|
6112
|
-
.
|
|
6124
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 li .index_module_bhd_app_layout_main_filter_show_value__f8a672f8 {
|
|
6113
6125
|
margin-left: 4px;
|
|
6114
6126
|
margin-right: 8px;
|
|
6115
6127
|
}
|
|
6116
|
-
.
|
|
6128
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 li .iconicon_guanbi_Close {
|
|
6117
6129
|
font-size: 12px;
|
|
6118
6130
|
}
|
|
6119
|
-
.
|
|
6131
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_ul__f8a672f8 li .iconicon_guanbi_Close:hover {
|
|
6120
6132
|
cursor: pointer;
|
|
6121
6133
|
}
|
|
6122
|
-
.
|
|
6134
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_filter__f8a672f8 .index_module_bhd_app_layout_main_filter_clear__f8a672f8 {
|
|
6123
6135
|
color: #F4523B;
|
|
6124
6136
|
font-size: 12px;
|
|
6125
6137
|
margin-left: 8px;
|
|
6126
6138
|
cursor: pointer;
|
|
6127
6139
|
}
|
|
6128
|
-
.
|
|
6140
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_table__f8a672f8 {
|
|
6129
6141
|
padding: 0 48px;
|
|
6130
6142
|
margin-top: 16px;
|
|
6131
6143
|
}
|
|
6132
|
-
.
|
|
6144
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_main__f8a672f8 .index_module_bhd_app_layout_main_table__f8a672f8 {
|
|
6133
6145
|
/* table 无数据,异常时 */
|
|
6134
6146
|
}
|
|
6135
|
-
.
|
|
6136
|
-
.index_module_bhd_app_layout__32fa6256 .index_module_bhd_app_layout_main__32fa6256 .index_module_bhd_app_layout_main_table__32fa6256 .app_BhdTableSimple_noTable {
|
|
6137
|
-
padding-top: 120px;
|
|
6138
|
-
}
|
|
6139
|
-
.index_module_bhd_app_layout__32fa6256 .index_module_bhd_app_layout_footer__32fa6256 {
|
|
6147
|
+
.index_module_bhd_app_layout__f8a672f8 .index_module_bhd_app_layout_footer__f8a672f8 {
|
|
6140
6148
|
width: calc(100% - 60px);
|
|
6141
6149
|
height: 56px;
|
|
6142
6150
|
position: fixed;
|
|
@@ -211,6 +211,7 @@ var Table = function(props) {
|
|
|
211
211
|
var timerRef = useRef({
|
|
212
212
|
timer: null
|
|
213
213
|
});
|
|
214
|
+
var scrollObjectRef = useRef(null);
|
|
214
215
|
var _props_defaultWidthRang = props.defaultWidthRang, defaultWidthRang = _props_defaultWidthRang === void 0 ? [
|
|
215
216
|
180,
|
|
216
217
|
240,
|
|
@@ -233,7 +234,7 @@ var Table = function(props) {
|
|
|
233
234
|
}
|
|
234
235
|
var _initColumnsWidth = initColumnsWidth(props.columns, tableWidth), selfColumns = _initColumnsWidth.columns;
|
|
235
236
|
setColumns(selfColumns);
|
|
236
|
-
var obj =
|
|
237
|
+
var obj = scrollObjectRef.current ? scrollObjectRef.current : {};
|
|
237
238
|
obj = _object_spread_props(_object_spread({}, obj), {
|
|
238
239
|
x: tableWidth
|
|
239
240
|
});
|
|
@@ -386,6 +387,11 @@ var Table = function(props) {
|
|
|
386
387
|
}, [
|
|
387
388
|
props.scroll
|
|
388
389
|
]);
|
|
390
|
+
useEffect(function() {
|
|
391
|
+
scrollObjectRef.current = scrollObject;
|
|
392
|
+
}, [
|
|
393
|
+
scrollObject
|
|
394
|
+
]);
|
|
389
395
|
var config = _object_spread_props(_object_spread({
|
|
390
396
|
bordered: false
|
|
391
397
|
}, props), {
|
|
@@ -499,10 +505,18 @@ var i18Conversion$1 = i18Conversion;
|
|
|
499
505
|
超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
|
|
500
506
|
*/ var BhdTableSimple = function(props) {
|
|
501
507
|
var className = props.className; props.locale; props.borderBottom; var rowSelection = props.rowSelection, ajaxErr = props.ajaxErr, dataSource = props.dataSource, _props_kind = props.kind, kind = _props_kind === void 0 ? "simple" : _props_kind, loading = props.loading, _props_notDataText = props.notDataText, notDataText = _props_notDataText === void 0 ? i18Conversion$1("noData") : _props_notDataText;
|
|
508
|
+
var tableRef = useRef(null);
|
|
502
509
|
var renderTableText = function() {
|
|
510
|
+
var minHeight = props.scroll.y.replace(/\)/, "");
|
|
511
|
+
minHeight = minHeight + " - 42px)";
|
|
512
|
+
var width = tableRef.current ? tableRef.current.offsetWidth - 42 : 0;
|
|
503
513
|
if (ajaxErr) {
|
|
504
514
|
return /*#__PURE__*/ jsxs("div", {
|
|
505
515
|
className: "app_BhdTableSimple_errorTable",
|
|
516
|
+
style: {
|
|
517
|
+
minHeight: minHeight,
|
|
518
|
+
width: width + "px"
|
|
519
|
+
},
|
|
506
520
|
children: [
|
|
507
521
|
/*#__PURE__*/ jsx("img", {
|
|
508
522
|
src: ServerError$1,
|
|
@@ -518,7 +532,8 @@ var i18Conversion$1 = i18Conversion;
|
|
|
518
532
|
return /*#__PURE__*/ jsxs("div", {
|
|
519
533
|
className: "app_BhdTableSimple_noTable app_BhdTableSimple_noTable_loadingTable",
|
|
520
534
|
style: {
|
|
521
|
-
minHeight:
|
|
535
|
+
minHeight: minHeight,
|
|
536
|
+
width: width + "px"
|
|
522
537
|
},
|
|
523
538
|
children: [
|
|
524
539
|
/*#__PURE__*/ jsx("img", {
|
|
@@ -538,7 +553,8 @@ var i18Conversion$1 = i18Conversion;
|
|
|
538
553
|
return /*#__PURE__*/ jsxs("div", {
|
|
539
554
|
className: "app_BhdTableSimple_noTable",
|
|
540
555
|
style: {
|
|
541
|
-
width: "
|
|
556
|
+
width: width + "px",
|
|
557
|
+
minHeight: minHeight
|
|
542
558
|
},
|
|
543
559
|
children: [
|
|
544
560
|
/*#__PURE__*/ jsx("img", {
|
|
@@ -551,22 +567,12 @@ var i18Conversion$1 = i18Conversion;
|
|
|
551
567
|
]
|
|
552
568
|
});
|
|
553
569
|
};
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
style: {
|
|
561
|
-
width: "48px",
|
|
562
|
-
height: "48px"
|
|
563
|
-
}
|
|
564
|
-
}),
|
|
565
|
-
/*#__PURE__*/ jsx("p", {
|
|
566
|
-
children: i18Conversion$1("Load")
|
|
567
|
-
})
|
|
568
|
-
]
|
|
569
|
-
});
|
|
570
|
+
// const loadingTable = (
|
|
571
|
+
// <div className="app_BhdTableSimple_noTable app_BhdTableSimple_noTable_loadingTable">
|
|
572
|
+
// <img src={Loading} alt="" style={{ width: "48px", height: "48px" }} />
|
|
573
|
+
// <p>{i18Conversion("Load")}</p>
|
|
574
|
+
// </div>
|
|
575
|
+
// );
|
|
570
576
|
var tableProps = _object_spread_props(_object_spread({
|
|
571
577
|
style: {
|
|
572
578
|
width: "100%"
|
|
@@ -586,7 +592,10 @@ var i18Conversion$1 = i18Conversion;
|
|
|
586
592
|
// if (loading) {
|
|
587
593
|
// return loadingTable;
|
|
588
594
|
// }
|
|
589
|
-
return /*#__PURE__*/ jsx(
|
|
595
|
+
return /*#__PURE__*/ jsx("div", {
|
|
596
|
+
ref: tableRef,
|
|
597
|
+
children: /*#__PURE__*/ jsx(Table$1, _object_spread({}, tableProps))
|
|
598
|
+
});
|
|
590
599
|
};
|
|
591
600
|
var BhdTableSimple$1 = BhdTableSimple;
|
|
592
601
|
|
|
@@ -2382,7 +2391,7 @@ var BhdSelect = function(props) {
|
|
|
2382
2391
|
BhdSelect.Option = Select.Option;
|
|
2383
2392
|
var BhdSelect$1 = BhdSelect;
|
|
2384
2393
|
|
|
2385
|
-
var modules_63b47c51$2 = {"bhd_app_layout":"
|
|
2394
|
+
var modules_63b47c51$2 = {"bhd_app_layout":"index_module_bhd_app_layout__f8a672f8","bhd_app_layout_header":"index_module_bhd_app_layout_header__f8a672f8","bhd_app_layout_main":"index_module_bhd_app_layout_main__f8a672f8","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__f8a672f8","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__f8a672f8","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__f8a672f8","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__f8a672f8","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__f8a672f8","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__f8a672f8","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__f8a672f8"};
|
|
2386
2395
|
|
|
2387
2396
|
function BhdAppLayout(props) {
|
|
2388
2397
|
var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
|