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", "lodash-es": "^4.17.21",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"zy-react-library": "latest" "zy-react-library": "^1.1.47"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^5.4.1", "@antfu/eslint-config": "^5.4.1",

View File

@ -123,7 +123,7 @@ function Menu(props) {
title: "类型", title: "类型",
dataIndex: "menuType", dataIndex: "menuType",
render: (_, record) => ( 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", fixed: "right",
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{record.menuType === 1 && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -143,6 +144,7 @@ function Menu(props) {
> >
新增子级 新增子级
</Button> </Button>
)}
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {