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

希望可以通过下面的方式,让一个变量可以为String或者Number #114

Open
Fucntion opened this issue Apr 8, 2020 · 1 comment

Comments

@Fucntion
Copy link

Fucntion commented Apr 8, 2020

Products_Profit: {
type: String || Number,
required: true,
size: {min: 0},
message: {
  required: '利润必填',
  type: '利润必须为数字',
  size: '利润必须大于0'
 }
}
@bilibilikanpei
Copy link

做不到,String || Number永远都是String

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

2 participants