master
parent
7ff0c6e8ed
commit
6cdbd28f25
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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={() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue