|
|
@ -26,7 +26,6 @@ import { |
|
|
|
useI18n, |
|
|
|
useI18n, |
|
|
|
useMetas, |
|
|
|
useMetas, |
|
|
|
useProject, |
|
|
|
useProject, |
|
|
|
useUIPermission, |
|
|
|
|
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const MAIN_MOUSE_PRESSED = 0 |
|
|
|
const MAIN_MOUSE_PRESSED = 0 |
|
|
@ -80,9 +79,6 @@ export function useMultiSelect( |
|
|
|
() => !(activeCell.row === null || activeCell.col === null || isNaN(activeCell.row) || isNaN(activeCell.col)), |
|
|
|
() => !(activeCell.row === null || activeCell.col === null || isNaN(activeCell.row) || isNaN(activeCell.col)), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
|
|
|
|
const hasEditPermission = $computed(() => isUIAllowed('xcDatatableEditable')) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function makeActive(row: number, col: number) { |
|
|
|
function makeActive(row: number, col: number) { |
|
|
|
if (activeCell.row === row && activeCell.col === col) { |
|
|
|
if (activeCell.row === row && activeCell.col === col) { |
|
|
|
return |
|
|
|
return |
|
|
|