Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(FMenu): 增加 disabled 配置项 #868

Merged
merged 2 commits into from
Jul 29, 2024
Merged

feat(FMenu): 增加 disabled 配置项 #868

merged 2 commits into from
Jul 29, 2024

Conversation

ocean-gao
Copy link
Collaborator

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue (if exists):

Other information:

@@ -62,11 +64,15 @@ export default defineComponent({
const isActive = computed(
() => rootMenu.currentValue.value === props.value,
);
const isDisabled = computed(
() => props.disabled === true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里直接返回 props.disabled 即可

@1zumii 1zumii merged commit 8c32546 into main Jul 29, 2024
1 check passed
@1zumii 1zumii deleted the feat-menu-disabled branch July 29, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants