mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-29 02:38:45 +08:00
feat: File management supports multi tab management (#10147)
This commit is contained in:
parent
fd9627576b
commit
6b62b84157
11 changed files with 790 additions and 565 deletions
|
|
@ -112,6 +112,8 @@ const rightClick = ref({
|
|||
currentRow: null,
|
||||
});
|
||||
const handleRightClick = (row, column, event) => {
|
||||
tableRef.value.refElTable.clearSelection();
|
||||
tableRef.value.refElTable.toggleRowSelection(row);
|
||||
if (!props.rightButtons) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -126,6 +128,7 @@ const handleRightClick = (row, column, event) => {
|
|||
};
|
||||
const closeRightClick = () => {
|
||||
rightClick.value.visible = false;
|
||||
tableRef.value.refElTable.clearSelection();
|
||||
document.removeEventListener('click', closeRightClick);
|
||||
};
|
||||
const disabled = computed(() => {
|
||||
|
|
@ -134,6 +137,7 @@ const disabled = computed(() => {
|
|||
};
|
||||
});
|
||||
function rightButtonClick(btn: any) {
|
||||
closeRightClick();
|
||||
btn.click(rightClick.value.currentRow);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1424,6 +1424,7 @@ const message = {
|
|||
downloadStart: 'Download started',
|
||||
moveSuccess: 'Successfully moved',
|
||||
copySuccess: 'Successfully copied',
|
||||
pasteMsg: 'Please click the [Paste] button at the top right of the target directory',
|
||||
move: 'Move',
|
||||
calculate: 'Calculate',
|
||||
canNotDeCompress: 'Cannot decompress this file',
|
||||
|
|
|
|||
|
|
@ -1370,6 +1370,7 @@ const message = {
|
|||
downloadStart: 'ダウンロードが始まりました',
|
||||
moveSuccess: '正常に移動しました',
|
||||
copySuccess: '正常にコピーされました',
|
||||
pasteMsg: '対象ディレクトリの右上にある「貼り付け」ボタンをクリックしてください',
|
||||
move: '動く',
|
||||
calculate: '計算します',
|
||||
canNotDeCompress: 'このファイルを解凍できません',
|
||||
|
|
|
|||
|
|
@ -1356,6 +1356,7 @@ const message = {
|
|||
downloadStart: '다운로드 시작됨',
|
||||
moveSuccess: '이동 성공',
|
||||
copySuccess: '복사 성공',
|
||||
pasteMsg: '대상 디렉토리의 오른쪽 상단에 있는 [붙여넣기] 버튼을 클릭하세요',
|
||||
move: '이동',
|
||||
calculate: '계산',
|
||||
canNotDeCompress: '이 파일은 압축 해제할 수 없습니다',
|
||||
|
|
|
|||
|
|
@ -1411,6 +1411,7 @@ const message = {
|
|||
downloadStart: 'Muat turun bermula',
|
||||
moveSuccess: 'Berjaya dipindahkan',
|
||||
copySuccess: 'Berjaya disalin',
|
||||
pasteMsg: 'Sila klik butang "Tampal" di bahagian kanan atas direktori sasaran',
|
||||
move: 'Pindah',
|
||||
calculate: 'Kira',
|
||||
canNotDeCompress: 'Tidak dapat nyahmampatkan fail ini',
|
||||
|
|
|
|||
|
|
@ -1397,6 +1397,7 @@ const message = {
|
|||
downloadStart: 'Download iniciado',
|
||||
moveSuccess: 'Movido com sucesso',
|
||||
copySuccess: 'Copiado com sucesso',
|
||||
pasteMsg: 'Clique no botão "Colar" no canto superior direito do diretório de destino',
|
||||
move: 'Mover',
|
||||
calculate: 'Calcular',
|
||||
canNotDeCompress: 'Não é possível descompactar este arquivo',
|
||||
|
|
|
|||
|
|
@ -1401,6 +1401,7 @@ const message = {
|
|||
downloadStart: 'Загрузка начата',
|
||||
moveSuccess: 'Успешно перемещено',
|
||||
copySuccess: 'Успешно скопировано',
|
||||
pasteMsg: 'Нажмите кнопку «Вставить» в правом верхнем углу целевой директории',
|
||||
move: 'Переместить',
|
||||
calculate: 'Вычислить',
|
||||
canNotDeCompress: 'Невозможно распаковать этот файл',
|
||||
|
|
|
|||
|
|
@ -1441,6 +1441,7 @@ const message = {
|
|||
downloadStart: 'İndirme başladı',
|
||||
moveSuccess: 'Başarıyla taşındı',
|
||||
copySuccess: 'Başarıyla kopyalandı',
|
||||
pasteMsg: 'Hedef dizinin sağ üst köşesindeki "Yapıştır" düğmesine tıklayın',
|
||||
move: 'Taşı',
|
||||
calculate: 'Hesapla',
|
||||
canNotDeCompress: 'Bu dosyanın sıkıştırması açılamaz',
|
||||
|
|
|
|||
|
|
@ -1358,6 +1358,7 @@ const message = {
|
|||
downloadStart: '下載開始!',
|
||||
moveSuccess: '移動成功',
|
||||
copySuccess: '復製成功',
|
||||
pasteMsg: '請在目標目錄點擊右上角【粘貼】按鈕',
|
||||
move: '移動',
|
||||
calculate: '計算',
|
||||
canNotDeCompress: '無法解壓此文件',
|
||||
|
|
|
|||
|
|
@ -1353,6 +1353,7 @@ const message = {
|
|||
downloadStart: '下载开始!',
|
||||
moveSuccess: '移动成功',
|
||||
copySuccess: '复制成功',
|
||||
pasteMsg: '请在目标目录点击右上角【粘贴】按钮',
|
||||
move: '移动',
|
||||
calculate: '计算',
|
||||
canNotDeCompress: '无法解压此文件',
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue