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

如何实现全部组件添加后默认必填 #183

Open
GWJ-git opened this issue Jan 14, 2025 · 0 comments
Open

如何实现全部组件添加后默认必填 #183

GWJ-git opened this issue Jan 14, 2025 · 0 comments

Comments

@GWJ-git
Copy link

GWJ-git commented Jan 14, 2025

const config = ref({
  updateDefaultRule: {
    input: {
      $required: true,
    },
    select: {
      $required: true
    },
    textarea: {
      $required: true
    }
  },
})

翻了翻文档,只能通过这样的配置去把所有组件加进来设置必填么

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

No branches or pull requests

1 participant