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

[Switch] 新增before-changeAPI #4653

Open
labbomb opened this issue Oct 15, 2024 · 3 comments
Open

[Switch] 新增before-changeAPI #4653

labbomb opened this issue Oct 15, 2024 · 3 comments
Labels
easy easy level of difficulties 💪🏻 enhancement New feature or request issueShoot to be published to be published

Comments

@labbomb
Copy link

labbomb commented Oct 15, 2024

这个功能解决了什么问题

switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换

你建议的方案是什么

参考element plus
image

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2024-10-31 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: ivringpeng
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

👋 @labbomb,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Oct 25, 2024

这个是什么样的场景会使用到?

@uyarn uyarn added the need more info need more information to resolve issue label Oct 25, 2024
@labbomb
Copy link
Author

labbomb commented Oct 28, 2024

这个是什么样的场景会使用到?

机器人端交互,我发送指令后,需要等待结果,如果被拒绝,则不切换,待成功后在改变值

@uyarn uyarn added 💪🏻 enhancement New feature or request issueShoot easy easy level of difficulties and removed need more info need more information to resolve issue labels Oct 28, 2024
@uyarn uyarn changed the title [Switch] 功能新增 [Switch] 新增before-changeAPI Oct 29, 2024
@uyarn uyarn added the to be published to be published label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy easy level of difficulties 💪🏻 enhancement New feature or request issueShoot to be published to be published
Projects
None yet
Development

No branches or pull requests

2 participants