This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
ci4s
/
ci4sManagement-cloud
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
1
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fix: 菜单图标选择器添加边框
pull/133/head
cp3hnu
1 year ago
parent
751fe25326
commit
8deea1c5e8
3 changed files
with
23 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
react-ui/src/components/KFSpin/index.tsx
+11
-2
react-ui/src/components/MenuIconSelector/index.less
+6
-0
react-ui/src/components/MenuIconSelector/index.tsx
+ 6
- 0
react-ui/src/components/KFSpin/index.tsx
View File
@@ -1,3 +1,9 @@
/*
* @Author: 赵伟
* @Date: 2024-09-02 08:42:57
* @Description: 自定义 Spin
*/
import { Spin, SpinProps } from 'antd';
import styles from './index.less';
+ 11
- 2
react-ui/src/components/MenuIconSelector/index.less
View File
@@ -1,16 +1,25 @@
.menu-icon-selector {
// grid 布局,每行显示 8 个图标
display: grid;
grid-auto-rows: 1fr;
grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(4, 80px);
gap: 20px;
justify-content: space-between;
width: 100%;
&__item {
display: flex;
align-items: center;
justify-content: center;
width: 80x;
height: 80px;
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
&:hover {
border-color: @primary-color;
}
&__icon {
display: block;
}
+ 6
- 0
react-ui/src/components/MenuIconSelector/index.tsx
View File
@@ -1,3 +1,9 @@
/*
* @Author: 赵伟
* @Date: 2024-04-17 16:59:42
* @Description: 菜单图标选择器
*/
import KFIcon from '@/components/KFIcon';
import KFModal from '@/components/KFModal';
import iconData from '@/iconfont/iconfont-menu.json';
Write
Preview
Loading…
Cancel
Save