|
|
@ -18,6 +18,7 @@ import { |
|
|
|
createEventHook, |
|
|
|
createEventHook, |
|
|
|
extractPkFromRow, |
|
|
|
extractPkFromRow, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
|
|
|
|
isColumnRequiredAndNull, |
|
|
|
message, |
|
|
|
message, |
|
|
|
onClickOutside, |
|
|
|
onClickOutside, |
|
|
|
onMounted, |
|
|
|
onMounted, |
|
|
@ -478,9 +479,10 @@ watch([() => selected.row, () => selected.col], ([row, col]) => { |
|
|
|
:key="columnObj.id" |
|
|
|
:key="columnObj.id" |
|
|
|
class="cell relative cursor-pointer nc-grid-cell" |
|
|
|
class="cell relative cursor-pointer nc-grid-cell" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
active: |
|
|
|
'active': |
|
|
|
(isUIAllowed('xcDatatableEditable') && selected.col === colIndex && selected.row === rowIndex) || |
|
|
|
(isUIAllowed('xcDatatableEditable') && selected.col === colIndex && selected.row === rowIndex) || |
|
|
|
(isUIAllowed('xcDatatableEditable') && selectedRange(rowIndex, colIndex)), |
|
|
|
(isUIAllowed('xcDatatableEditable') && selectedRange(rowIndex, colIndex)), |
|
|
|
|
|
|
|
'nc-required-cell': isColumnRequiredAndNull(columnObj, row.row), |
|
|
|
}" |
|
|
|
}" |
|
|
|
:data-key="rowIndex + columnObj.id" |
|
|
|
:data-key="rowIndex + columnObj.id" |
|
|
|
:data-col="columnObj.id" |
|
|
|
:data-col="columnObj.id" |
|
|
@ -707,4 +709,8 @@ watch([() => selected.row, () => selected.col], ([row, col]) => { |
|
|
|
tbody tr:hover { |
|
|
|
tbody tr:hover { |
|
|
|
@apply bg-gray-100 bg-opacity-50; |
|
|
|
@apply bg-gray-100 bg-opacity-50; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.nc-required-cell { |
|
|
|
|
|
|
|
box-shadow: inset 0 0 2px #f00; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|