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

useDialog能否支持默认配置,dialog.create dialog.info dialog.error dialog.success dialog.warning 并能够继承 #6704

Open
3 tasks done
ZhOUCFff opened this issue Jan 13, 2025 · 0 comments
Labels
feature request New feature or request

Comments

@ZhOUCFff
Copy link

问题的清晰而简明的描述

我发现Dialog中的 按钮 默认是 bordered 加了边框的,但是我希望默认是没有边框的

建议的解决方案

能否useDialog加一个参数为默认配置,dialog.create dialog.info dialog.error dialog.success dialog.warning都能继承这份默认配置,这样就不用每次都需要设置一个额外的配置了

const dialog = useDialog({
  positiveButtonProps: {
    bordered: false
  }
})

dialog.warning({
// 继承了 positiveButtonProps.bordered: false
})

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@ZhOUCFff ZhOUCFff added the feature request New feature or request label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant