@bit-sun/business-component 4.0.13-alpha.25 → 4.0.13-alpha.26
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
|
@@ -18397,7 +18397,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18397
18397
|
};
|
|
18398
18398
|
// 处理 table 基本参数
|
|
18399
18399
|
var setTableProps = function setTableProps() {
|
|
18400
|
-
var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3,
|
|
18400
|
+
var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps4, _tableProps4$initialP;
|
|
18401
18401
|
var tableProps = value.tableProps || {};
|
|
18402
18402
|
tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
|
|
18403
18403
|
size: value.size || 'middle',
|
|
@@ -18420,16 +18420,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18420
18420
|
x: props.overScrollX || 'max-content',
|
|
18421
18421
|
y: (props === null || props === void 0 ? void 0 : props.overScrollY) || height
|
|
18422
18422
|
},
|
|
18423
|
-
bordered: value.bordered
|
|
18424
|
-
sticky: true,
|
|
18425
|
-
rowClassName:
|
|
18423
|
+
bordered: typeof value.bordered == 'boolean' ? value.bordered : true,
|
|
18424
|
+
sticky: typeof value.sticky == 'boolean' ? value.sticky : true,
|
|
18425
|
+
rowClassName: (props === null || props === void 0 ? void 0 : props.rowClassName) || ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.rowClassName) || function (record, index) {
|
|
18426
18426
|
return index % 2 === 0 ? 'table_base' : 'table_odd';
|
|
18427
18427
|
},
|
|
18428
18428
|
components: _objectSpread2({
|
|
18429
18429
|
header: {
|
|
18430
18430
|
cell: ResizeableTitle$2
|
|
18431
18431
|
}
|
|
18432
|
-
}, (
|
|
18432
|
+
}, (_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : _tableProps3.components)
|
|
18433
18433
|
}, props.viewPagePath ?
|
|
18434
18434
|
// 详情页查看地址 存在该参数时 默认列表支持双击打开
|
|
18435
18435
|
{
|
|
@@ -18444,7 +18444,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18444
18444
|
}
|
|
18445
18445
|
} : {});
|
|
18446
18446
|
// @ts-ignore
|
|
18447
|
-
if ((
|
|
18447
|
+
if ((_tableProps4 = tableProps) === null || _tableProps4 === void 0 ? void 0 : (_tableProps4$initialP = _tableProps4.initialPaging) === null || _tableProps4$initialP === void 0 ? void 0 : _tableProps4$initialP.pagination) {
|
|
18448
18448
|
// @ts-ignore
|
|
18449
18449
|
tableProps.initialPaging.pagination.showSizeChanger = true;
|
|
18450
18450
|
}
|
package/dist/index.js
CHANGED
|
@@ -18420,7 +18420,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18420
18420
|
};
|
|
18421
18421
|
// 处理 table 基本参数
|
|
18422
18422
|
var setTableProps = function setTableProps() {
|
|
18423
|
-
var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3,
|
|
18423
|
+
var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps4, _tableProps4$initialP;
|
|
18424
18424
|
var tableProps = value.tableProps || {};
|
|
18425
18425
|
tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
|
|
18426
18426
|
size: value.size || 'middle',
|
|
@@ -18443,16 +18443,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18443
18443
|
x: props.overScrollX || 'max-content',
|
|
18444
18444
|
y: (props === null || props === void 0 ? void 0 : props.overScrollY) || height
|
|
18445
18445
|
},
|
|
18446
|
-
bordered: value.bordered
|
|
18447
|
-
sticky: true,
|
|
18448
|
-
rowClassName:
|
|
18446
|
+
bordered: typeof value.bordered == 'boolean' ? value.bordered : true,
|
|
18447
|
+
sticky: typeof value.sticky == 'boolean' ? value.sticky : true,
|
|
18448
|
+
rowClassName: (props === null || props === void 0 ? void 0 : props.rowClassName) || ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.rowClassName) || function (record, index) {
|
|
18449
18449
|
return index % 2 === 0 ? 'table_base' : 'table_odd';
|
|
18450
18450
|
},
|
|
18451
18451
|
components: _objectSpread2({
|
|
18452
18452
|
header: {
|
|
18453
18453
|
cell: ResizeableTitle$2
|
|
18454
18454
|
}
|
|
18455
|
-
}, (
|
|
18455
|
+
}, (_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : _tableProps3.components)
|
|
18456
18456
|
}, props.viewPagePath ?
|
|
18457
18457
|
// 详情页查看地址 存在该参数时 默认列表支持双击打开
|
|
18458
18458
|
{
|
|
@@ -18467,7 +18467,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18467
18467
|
}
|
|
18468
18468
|
} : {});
|
|
18469
18469
|
// @ts-ignore
|
|
18470
|
-
if ((
|
|
18470
|
+
if ((_tableProps4 = tableProps) === null || _tableProps4 === void 0 ? void 0 : (_tableProps4$initialP = _tableProps4.initialPaging) === null || _tableProps4$initialP === void 0 ? void 0 : _tableProps4$initialP.pagination) {
|
|
18471
18471
|
// @ts-ignore
|
|
18472
18472
|
tableProps.initialPaging.pagination.showSizeChanger = true;
|
|
18473
18473
|
}
|
package/package.json
CHANGED
|
@@ -552,10 +552,10 @@ export default (props: any) => {
|
|
|
552
552
|
x: props.overScrollX || 'max-content',
|
|
553
553
|
y: props?.overScrollY || height,
|
|
554
554
|
},
|
|
555
|
-
bordered: value.bordered
|
|
556
|
-
sticky: true,
|
|
557
|
-
rowClassName: (record: object | null | undefined, index: number) =>
|
|
558
|
-
index % 2 === 0 ? 'table_base' : 'table_odd',
|
|
555
|
+
bordered: typeof value.bordered == 'boolean' ? value.bordered : true,
|
|
556
|
+
sticky: typeof value.sticky == 'boolean' ? value.sticky : true,
|
|
557
|
+
rowClassName: props?.rowClassName || tableProps?.rowClassName || ((record: object | null | undefined, index: number) =>
|
|
558
|
+
index % 2 === 0 ? 'table_base' : 'table_odd'),
|
|
559
559
|
components: {
|
|
560
560
|
header: {
|
|
561
561
|
cell: ResizeableTitle,
|