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( ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode> <React.StrictMode>
<AntdConfigProvider <AntdConfigProvider
theme={{ token: { colorPrimary: COLOR_MAIN, colorBgContainer: 'transparent' } }} theme={{
token: { colorPrimary: COLOR_MAIN },
components: {
Tree: {
colorBgContainer: 'transparent'
}
}
}}
locale={zh_CN} locale={zh_CN}
> >
<App /> <App />

View File

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