Przeglądaj źródła

日志操作界面列宽调整;electron窗体最小尺寸调整

main
unknown 3 lat temu
rodzic
commit
f66aa8ced5
2 zmienionych plików z 16 dodań i 9 usunięć
  1. +4
    -4
      electron/main.js
  2. +12
    -5
      src/pages/log/index.tsx

+ 4
- 4
electron/main.js Wyświetl plik

@@ -26,7 +26,6 @@ const isDev = process.env.NODE_ENV === 'development';
function createWindow() {
//创建窗口
mainWindow = new BrowserWindow({
height: 900,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
webSecurity: false,
@@ -35,10 +34,11 @@ function createWindow() {
backgroundColor: '#2e2c29',
darkTheme: true,
title: 'Locking',
width: 1700,
width: 720,
height: 600,
frame: false,
minWidth: 1300,
minHeight: 900,
minWidth: 720,
minHeight: 600,
});
// 隐藏菜单栏
mainWindow.setMenuBarVisibility(false);


+ 12
- 5
src/pages/log/index.tsx Wyświetl plik

@@ -15,14 +15,20 @@ enum LogActionType {
}

const tableColumns: Array<ProColumns<DATA.LogItem>> = [
{ dataIndex: 'archName', title: '名称' },
{ dataIndex: 'projName', title: '所属文件夹', search: false, width: 400 },
{ dataIndex: 'archName', title: '名称', width: 150, ellipsis: true },
{
dataIndex: 'projName',
title: '所属文件夹',
search: false,
width: 150,
ellipsis: true,
},
// { dataIndex: 'size', title: '大小', search: false },
{
dataIndex: 'actionType',
title: '操作类型',
search: false,
width: 200,
width: 96,
valueEnum: {
[LogActionType.Download]: '下载',
[LogActionType.Delete]: '删除',
@@ -31,11 +37,11 @@ const tableColumns: Array<ProColumns<DATA.LogItem>> = [
filters: true,
onFilter: (v, record) => record.actionType === v,
},
{ dataIndex: 'createUser', title: '操作人', search: false, width: 200 },
{ dataIndex: 'createUser', title: '操作人', search: false, width: 96 },
{
dataIndex: 'createTime',
valueType: 'dateTime',
width: 200,
width: 150,
title: '操作时间',
search: false,
sorter: (a, b) => a.timestamp - b.timestamp,
@@ -78,6 +84,7 @@ export default function LogView() {
<div className={styles.logView}>
<ProTable<DATA.LogItem>
rowKey="id"
search={{ span: { xs: 24, sm: 24, md: 12, lg: 12, xl: 8, xxl: 6 } }}
className={styles.tableWrapper}
tableClassName={styles.table}
columns={tableColumns}


Ładowanie…
Anuluj
Zapisz