dcp-design-react 1.11.20 → 1.11.22
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/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/pivot-grid/src/main/types.d.ts +2 -0
- package/lib/pivot-grid/style/grid-layout.less +6 -1
- package/lib/style/index.css +11 -5
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/context/index.d.ts +1 -3
- package/lib/table/src/hooks/useTableCore.d.ts +1 -3
- package/lib/table/src/table/types.d.ts +1 -0
- package/lib/table/src/utils/index.d.ts +2 -0
- package/lib/table/style/body.less +104 -103
- package/lib/virtual-list/src/core.d.ts +15 -6
- package/lib/virtual-list/src/utils.d.ts +4 -1
- package/package.json +3 -3
|
@@ -9,11 +9,13 @@ export type RowSelectType = {
|
|
|
9
9
|
defaultSelectedRowKeys?: IRowKey[];
|
|
10
10
|
selectedRowKeys?: IRowKey[];
|
|
11
11
|
checkStrictly?: boolean;
|
|
12
|
+
disabled?: (row: IRecord) => boolean;
|
|
12
13
|
onChange?: (rowKeys: IRowKey[], selectedRows: IRecord[]) => void;
|
|
13
14
|
onSelect?: (selected: boolean, record: IRecord) => void;
|
|
14
15
|
};
|
|
15
16
|
export type TreeExpandType = {
|
|
16
17
|
defaultExpandAllRows?: boolean;
|
|
18
|
+
rowExpandable?: (row: IRecord) => boolean;
|
|
17
19
|
onChange?: (rowKeys: IRowKey[]) => void;
|
|
18
20
|
onExpand?: (expanded: boolean, record: IRecord) => void;
|
|
19
21
|
};
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
&.row--selection {
|
|
346
346
|
.table-cell {
|
|
347
347
|
background-color: @--background-color-light;
|
|
348
|
-
.middle {
|
|
348
|
+
.middle&:has(.checkbox) {
|
|
349
349
|
.order {
|
|
350
350
|
display: none;
|
|
351
351
|
}
|
|
@@ -374,10 +374,15 @@
|
|
|
374
374
|
font-size: 13px;
|
|
375
375
|
color: @--text-color-placeholder;
|
|
376
376
|
cursor: pointer;
|
|
377
|
+
transform: scaleX(1.15);
|
|
377
378
|
transition: transform 0.3s ease;
|
|
378
379
|
&.fold {
|
|
379
380
|
transform: rotate(-90deg);
|
|
380
381
|
}
|
|
382
|
+
&.disabled {
|
|
383
|
+
color: @--disabled-color;
|
|
384
|
+
cursor: not-allowed;
|
|
385
|
+
}
|
|
381
386
|
}
|
|
382
387
|
}
|
|
383
388
|
}
|
package/lib/style/index.css
CHANGED
|
@@ -29910,7 +29910,8 @@ body {
|
|
|
29910
29910
|
position: relative;
|
|
29911
29911
|
}
|
|
29912
29912
|
.body--column .cell--edit.is-error .ant-input,
|
|
29913
|
-
.body--column .cell--edit.is-error .ant-input-affix-wrapper
|
|
29913
|
+
.body--column .cell--edit.is-error .ant-input-affix-wrapper,
|
|
29914
|
+
.body--column .cell--edit.is-error .ant-select > .ant-select-selector {
|
|
29914
29915
|
border-color: #ff4d4f;
|
|
29915
29916
|
box-shadow: none;
|
|
29916
29917
|
z-index: 1;
|
|
@@ -31596,12 +31597,12 @@ body {
|
|
|
31596
31597
|
.qm-pivot-grid__layout .container .row-item .table-row.row--selection .table-cell {
|
|
31597
31598
|
background-color: #f5f5f5;
|
|
31598
31599
|
}
|
|
31599
|
-
.qm-pivot-grid__layout .container .row-item .table-row.row--hover .table-cell
|
|
31600
|
-
.qm-pivot-grid__layout .container .row-item .table-row.row--selection .table-cell
|
|
31600
|
+
.middle.qm-pivot-grid__layout .container .row-item .table-row.row--hover .table-cell:has(.checkbox) .order,
|
|
31601
|
+
.middle.qm-pivot-grid__layout .container .row-item .table-row.row--selection .table-cell:has(.checkbox) .order {
|
|
31601
31602
|
display: none;
|
|
31602
31603
|
}
|
|
31603
|
-
.qm-pivot-grid__layout .container .row-item .table-row.row--hover .table-cell
|
|
31604
|
-
.qm-pivot-grid__layout .container .row-item .table-row.row--selection .table-cell
|
|
31604
|
+
.middle.qm-pivot-grid__layout .container .row-item .table-row.row--hover .table-cell:has(.checkbox) .checkbox,
|
|
31605
|
+
.middle.qm-pivot-grid__layout .container .row-item .table-row.row--selection .table-cell:has(.checkbox) .checkbox {
|
|
31605
31606
|
display: inline-flex;
|
|
31606
31607
|
}
|
|
31607
31608
|
.qm-pivot-grid__layout .container .row-item .table-row.row--highlight .table-cell {
|
|
@@ -31617,11 +31618,16 @@ body {
|
|
|
31617
31618
|
font-size: 13px;
|
|
31618
31619
|
color: rgba(0, 0, 0, 0.45);
|
|
31619
31620
|
cursor: pointer;
|
|
31621
|
+
transform: scaleX(1.15);
|
|
31620
31622
|
transition: transform 0.3s ease;
|
|
31621
31623
|
}
|
|
31622
31624
|
.qm-pivot-grid__layout .container .row-item .table-row .cell--expand.fold {
|
|
31623
31625
|
transform: rotate(-90deg);
|
|
31624
31626
|
}
|
|
31627
|
+
.qm-pivot-grid__layout .container .row-item .table-row .cell--expand.disabled {
|
|
31628
|
+
color: rgba(0, 0, 0, 0.25);
|
|
31629
|
+
cursor: not-allowed;
|
|
31630
|
+
}
|
|
31625
31631
|
.qm-pivot-grid__layout.small .label-row,
|
|
31626
31632
|
.qm-pivot-grid__layout.small .table-cell {
|
|
31627
31633
|
height: 26px;
|