@bit-sun/business-component 4.0.13-alpha.8 → 4.0.13-alpha.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/dist/index.esm.js
CHANGED
|
@@ -1062,20 +1062,6 @@ var handleTextOverflow = function handleTextOverflow(text) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
}, text || '-'));
|
|
1064
1064
|
};
|
|
1065
|
-
// 超出缩略 无提示 ...
|
|
1066
|
-
var handleTextOverflowNoTooltip = function handleTextOverflowNoTooltip(text) {
|
|
1067
|
-
var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 130;
|
|
1068
|
-
return /*#__PURE__*/React$1.createElement("span", {
|
|
1069
|
-
style: {
|
|
1070
|
-
width: width ? width + 'px' : '130px',
|
|
1071
|
-
display: 'inline-block',
|
|
1072
|
-
textOverflow: 'ellipsis',
|
|
1073
|
-
overflow: 'hidden',
|
|
1074
|
-
whiteSpace: 'nowrap',
|
|
1075
|
-
verticalAlign: 'middle'
|
|
1076
|
-
}
|
|
1077
|
-
}, text || '-');
|
|
1078
|
-
};
|
|
1079
1065
|
// 处理时间 带时分秒
|
|
1080
1066
|
var handleTooltip = function handleTooltip(text, timeTrue) {
|
|
1081
1067
|
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
@@ -1300,17 +1286,16 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
|
|
|
1300
1286
|
var text = _ref2.text;
|
|
1301
1287
|
return handleTooltip(text, col.timeRender);
|
|
1302
1288
|
};
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
} else if (col.images) {
|
|
1289
|
+
}
|
|
1290
|
+
// 处理有问题,弃用
|
|
1291
|
+
// else if (col.textOverflow) {
|
|
1292
|
+
// // 处理文字太长
|
|
1293
|
+
// const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width));
|
|
1294
|
+
// const originalRender = col?.render;
|
|
1295
|
+
// const renderText = (params) => originalRender ? originalRender(params) : params.text;
|
|
1296
|
+
// col.render = (params) => handleTextOverflowNoTooltip(renderText(params), colWidth);
|
|
1297
|
+
// }
|
|
1298
|
+
else if (col.images) {
|
|
1314
1299
|
col.render = function (_ref3) {
|
|
1315
1300
|
var text = _ref3.text;
|
|
1316
1301
|
return tableColumnsImage(text);
|
|
@@ -1360,13 +1345,12 @@ var handleAntdColumnsSpecialParams = function handleAntdColumnsSpecialParams(col
|
|
|
1360
1345
|
return handleTooltip(text, col.timeRender);
|
|
1361
1346
|
};
|
|
1362
1347
|
}
|
|
1348
|
+
// 处理有问题,弃用
|
|
1363
1349
|
// 处理文字太长
|
|
1364
|
-
if (col.textOverflow) {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
};
|
|
1369
|
-
}
|
|
1350
|
+
// if (col.textOverflow) {
|
|
1351
|
+
// const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width))
|
|
1352
|
+
// col.render = (text: any) => handleTextOverflow(text,colWidth);
|
|
1353
|
+
// }
|
|
1370
1354
|
if (col.images) {
|
|
1371
1355
|
col.render = function (text) {
|
|
1372
1356
|
return tableColumnsImage(text);
|
|
@@ -17674,7 +17658,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17674
17658
|
}]);
|
|
17675
17659
|
}(React$1.Component);
|
|
17676
17660
|
|
|
17677
|
-
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17661
|
+
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n#bs-sula-query-table .ant-table-body table {\n table-layout: fixed !important;\n width: 100% !important;\n}\n";
|
|
17678
17662
|
styleInject(css_248z$j);
|
|
17679
17663
|
|
|
17680
17664
|
var _excluded$h = ["onResize", "width"];
|
package/dist/index.js
CHANGED
|
@@ -1085,20 +1085,6 @@ var handleTextOverflow = function handleTextOverflow(text) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
}, text || '-'));
|
|
1087
1087
|
};
|
|
1088
|
-
// 超出缩略 无提示 ...
|
|
1089
|
-
var handleTextOverflowNoTooltip = function handleTextOverflowNoTooltip(text) {
|
|
1090
|
-
var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 130;
|
|
1091
|
-
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1092
|
-
style: {
|
|
1093
|
-
width: width ? width + 'px' : '130px',
|
|
1094
|
-
display: 'inline-block',
|
|
1095
|
-
textOverflow: 'ellipsis',
|
|
1096
|
-
overflow: 'hidden',
|
|
1097
|
-
whiteSpace: 'nowrap',
|
|
1098
|
-
verticalAlign: 'middle'
|
|
1099
|
-
}
|
|
1100
|
-
}, text || '-');
|
|
1101
|
-
};
|
|
1102
1088
|
// 处理时间 带时分秒
|
|
1103
1089
|
var handleTooltip = function handleTooltip(text, timeTrue) {
|
|
1104
1090
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
@@ -1323,17 +1309,16 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
|
|
|
1323
1309
|
var text = _ref2.text;
|
|
1324
1310
|
return handleTooltip(text, col.timeRender);
|
|
1325
1311
|
};
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
} else if (col.images) {
|
|
1312
|
+
}
|
|
1313
|
+
// 处理有问题,弃用
|
|
1314
|
+
// else if (col.textOverflow) {
|
|
1315
|
+
// // 处理文字太长
|
|
1316
|
+
// const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width));
|
|
1317
|
+
// const originalRender = col?.render;
|
|
1318
|
+
// const renderText = (params) => originalRender ? originalRender(params) : params.text;
|
|
1319
|
+
// col.render = (params) => handleTextOverflowNoTooltip(renderText(params), colWidth);
|
|
1320
|
+
// }
|
|
1321
|
+
else if (col.images) {
|
|
1337
1322
|
col.render = function (_ref3) {
|
|
1338
1323
|
var text = _ref3.text;
|
|
1339
1324
|
return tableColumnsImage(text);
|
|
@@ -1383,13 +1368,12 @@ var handleAntdColumnsSpecialParams = function handleAntdColumnsSpecialParams(col
|
|
|
1383
1368
|
return handleTooltip(text, col.timeRender);
|
|
1384
1369
|
};
|
|
1385
1370
|
}
|
|
1371
|
+
// 处理有问题,弃用
|
|
1386
1372
|
// 处理文字太长
|
|
1387
|
-
if (col.textOverflow) {
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
};
|
|
1392
|
-
}
|
|
1373
|
+
// if (col.textOverflow) {
|
|
1374
|
+
// const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width))
|
|
1375
|
+
// col.render = (text: any) => handleTextOverflow(text,colWidth);
|
|
1376
|
+
// }
|
|
1393
1377
|
if (col.images) {
|
|
1394
1378
|
col.render = function (text) {
|
|
1395
1379
|
return tableColumnsImage(text);
|
|
@@ -17697,7 +17681,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17697
17681
|
}]);
|
|
17698
17682
|
}(React__default['default'].Component);
|
|
17699
17683
|
|
|
17700
|
-
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17684
|
+
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n#bs-sula-query-table .ant-table-body table {\n table-layout: fixed !important;\n width: 100% !important;\n}\n";
|
|
17701
17685
|
styleInject(css_248z$j);
|
|
17702
17686
|
|
|
17703
17687
|
var _excluded$h = ["onResize", "width"];
|
package/package.json
CHANGED
package/src/utils/utils.ts
CHANGED
|
@@ -87,13 +87,16 @@ export const handleBssulaColumnsSpecialParams = (col: any) => {
|
|
|
87
87
|
} else if (col.timeRender) {
|
|
88
88
|
// 处理不显示 时分秒的时间
|
|
89
89
|
col.render = ({ text }: any) => handleTooltip(text, col.timeRender);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
}
|
|
91
|
+
// 处理有问题,弃用
|
|
92
|
+
// else if (col.textOverflow) {
|
|
93
|
+
// // 处理文字太长
|
|
94
|
+
// const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width));
|
|
95
|
+
// const originalRender = col?.render;
|
|
96
|
+
// const renderText = (params) => originalRender ? originalRender(params) : params.text;
|
|
97
|
+
// col.render = (params) => handleTextOverflowNoTooltip(renderText(params), colWidth);
|
|
98
|
+
// }
|
|
99
|
+
else if (col.images) {
|
|
97
100
|
col.render = ({ text }: any) => tableColumnsImage(text);
|
|
98
101
|
} else if (col.double) {
|
|
99
102
|
col.render = ({ record }: any) =>
|
|
@@ -124,11 +127,12 @@ export const handleBssulaColumnsSpecialParams = (col: any) => {
|
|
|
124
127
|
if (col.timeRender) {
|
|
125
128
|
col.render = (text: any) => handleTooltip(text, col.timeRender);
|
|
126
129
|
}
|
|
130
|
+
// 处理有问题,弃用
|
|
127
131
|
// 处理文字太长
|
|
128
|
-
if (col.textOverflow) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
+
// if (col.textOverflow) {
|
|
133
|
+
// const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width))
|
|
134
|
+
// col.render = (text: any) => handleTextOverflow(text,colWidth);
|
|
135
|
+
// }
|
|
132
136
|
if (col.images) {
|
|
133
137
|
col.render = (text: any) => tableColumnsImage(text);
|
|
134
138
|
}
|