Feat(Theme): Support dark mode
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useTheme } from 'antd-style'
|
||||
import {
|
||||
COLOR_PRODUCTION,
|
||||
DATABASE_DELETE_SUCCESS,
|
||||
DATABASE_DUPLICATE_KEY,
|
||||
DATABASE_INSERT_SUCCESS,
|
||||
@@ -19,6 +19,7 @@ import FitFullscreen from '@/components/common/FitFullscreen'
|
||||
import HideScrollbar from '@/components/common/HideScrollbar'
|
||||
|
||||
const Category = () => {
|
||||
const theme = useTheme()
|
||||
const [modal, contextHolder] = AntdModal.useModal()
|
||||
const [form] = AntdForm.useForm<ToolCategoryAddEditParam>()
|
||||
const formValues = AntdForm.useWatch([], form)
|
||||
@@ -72,7 +73,7 @@ const Category = () => {
|
||||
<Permission operationCode={['system:tool:add:category']}>
|
||||
{' '}
|
||||
(
|
||||
<a style={{ color: COLOR_PRODUCTION }} onClick={handleOnAddBtnClick}>
|
||||
<a style={{ color: theme.colorPrimary }} onClick={handleOnAddBtnClick}>
|
||||
新增
|
||||
</a>
|
||||
)
|
||||
@@ -86,7 +87,7 @@ const Category = () => {
|
||||
<AntdSpace size={'middle'}>
|
||||
<Permission operationCode={['system:tool:modify:category']}>
|
||||
<a
|
||||
style={{ color: COLOR_PRODUCTION }}
|
||||
style={{ color: theme.colorPrimary }}
|
||||
onClick={handleOnEditBtnClick(record)}
|
||||
>
|
||||
编辑
|
||||
@@ -94,7 +95,7 @@ const Category = () => {
|
||||
</Permission>
|
||||
<Permission operationCode={['system:tool:delete:category']}>
|
||||
<a
|
||||
style={{ color: COLOR_PRODUCTION }}
|
||||
style={{ color: theme.colorPrimary }}
|
||||
onClick={handleOnDeleteBtnClick(record)}
|
||||
>
|
||||
删除
|
||||
|
||||
Reference in New Issue
Block a user