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

数据输入框可以搜索时,默认值为''空字符串,会报警告。 #115

Open
xingkoo opened this issue Feb 27, 2024 · 1 comment
Labels
stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@xingkoo
Copy link

xingkoo commented Feb 27, 2024

  {
    title: "数字",
    dataIndex: "n",
    formType: "input-number",
    search: false,                      //  如果设置为搜索,则载入页面时,提示 预期外的错误
    commonRules: {
      required: true,
      message: "请输入数字"
    }
  },

会提示以下信息:
[Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected Number with value 0, got String with value "".

@xiezhongqi123
Copy link

类型错误警告,给个默认undefined 因为input-number只接受Number类型

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

2 participants