master
LiuJiaNan 2026-02-09 17:00:23 +08:00
parent 7ff0c6e8ed
commit 6cdbd28f25
2 changed files with 15 additions and 13 deletions

View File

@ -31,7 +31,7 @@
"lodash-es": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zy-react-library": "latest"
"zy-react-library": "^1.1.47"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",

View File

@ -123,7 +123,7 @@ function Menu(props) {
title: "类型",
dataIndex: "menuType",
render: (_, record) => (
<Tag color="#108ee9">{getLabelName({ list: MENU_TYPE_ENUM, status: record.menuType })}</Tag>
<Tag color={record.menuType === 1 ? "#108ee9" : "#8788ed"}>{getLabelName({ list: MENU_TYPE_ENUM, status: record.menuType })}</Tag>
),
},
{
@ -132,6 +132,7 @@ function Menu(props) {
fixed: "right",
render: (_, record) => (
<Space>
{record.menuType === 1 && (
<Button
type="link"
onClick={() => {
@ -143,6 +144,7 @@ function Menu(props) {
>
新增子级
</Button>
)}
<Button
type="link"
onClick={() => {