Skip to content

Commit e51cee3

Browse files
committed
feat:(module:table): 表格添加行禁止选择功能
1 parent 5614852 commit e51cee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/components/ant-table/ant-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
@for (row of _dataList; track trackByTableBody(rowIndex, row); let rowIndex = $index) {
6363
<tr>
6464
@if (_tableConfig.showCheckbox) {
65-
<td class="animate-bg-0" nzEllipsis [nzChecked]="row['_checked']" [nzLeft]="true" (nzCheckedChange)="checkRowSingle($event, rowIndex)"></td>
65+
<td class="animate-bg-0" nzEllipsis [nzDisabled]="row['_disabled']" [nzChecked]="row['_checked']" [nzLeft]="true" (nzCheckedChange)="checkRowSingle($event, rowIndex)"></td>
6666
}
6767
@for (head of _tableConfig.headers; track head) {
6868
@if (head.show === undefined || head.show === true) {

0 commit comments

Comments
 (0)