VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 希望右键菜单 contextMenuItems 中的 MenuListItem 增加 disabled 参数用于控制某一菜单是否可用

Open DoctorWei opened this issue 9 months ago • 1 comments

What problem does this feature solve?

右键菜单 contextMenuItems 可以进行自定义,但有些情况下,我们需要显示全部菜单,达到告知用户有此菜单项,但触发条件不满足点击菜单。所以希望通过 disabled 禁用某一菜单。

What does the proposed API look like?

type MenuListItem =
  | string
  | {
      text?: string;
      type?: 'title' | 'item' | 'split';
      menuKey?: string;
      icon?: Icon;
      selectedIcon?: Icon;
      stateIcon?: Icon;
      children?: MenuListItem[];
      disabled?: Boolean;  // 增加参数
    };

DoctorWei avatar Mar 29 '25 02:03 DoctorWei

感谢你的反馈! 如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们! 欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。 参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide 与官方开发者交流问题可以下载飞书app扫码加入飞书群: 飞书20241029-170312 再次感谢你的支持!

Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!

fangsmile avatar Mar 31 '25 02:03 fangsmile