Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions apps/web-antd/src/views/system/menu/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,28 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: z.number().default(CommonStatusEnum.ENABLE),
},
{
fieldName: 'visible',
label: '显示状态',
component: 'RadioGroup',
componentProps: {
options: [
{ label: '显示', value: true },
{ label: '隐藏', value: false },
],
buttonStyle: 'solid',
optionType: 'button',
},
rules: 'required',
defaultValue: true,
help: '选择隐藏时,路由将不会出现在侧边栏,但仍然可以访问',
dependencies: {
triggerFields: ['type'],
show: (values) => {
return [SystemMenuTypeEnum.MENU].includes(values.type);
},
},
},
{
fieldName: 'alwaysShow',
label: '总是显示',
Expand Down