Complete main UI #37

Merged
FatttSnake merged 192 commits from FatttSnake into dev 2024-02-23 16:31:17 +08:00
2 changed files with 11 additions and 4 deletions
Showing only changes of commit cd010ade48 - Show all commits

View File

@@ -9,7 +9,14 @@ import { COLOR_MAIN } from '@/constants/common.constants'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<AntdConfigProvider
theme={{ token: { colorPrimary: COLOR_MAIN, colorBgContainer: 'transparent' } }}
theme={{
token: { colorPrimary: COLOR_MAIN },
components: {
Tree: {
colorBgContainer: 'transparent'
}
}
}}
locale={zh_CN}
>
<App />

View File

@@ -65,21 +65,21 @@ const Role: React.FC = () => {
{
title: '创建时间',
dataIndex: 'createTime',
width: '0',
width: '10%',
align: 'center',
render: (value: string) => getLocalTime(value)
},
{
title: '修改时间',
dataIndex: 'updateTime',
width: '0',
width: '10%',
align: 'center',
render: (value: string) => getLocalTime(value)
},
{
title: '状态',
dataIndex: 'enable',
width: '0',
width: '5%',
align: 'center',
render: (value) =>
value ? <AntdTag color={'success'}></AntdTag> : <AntdTag></AntdTag>