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

support number value of optionitem needed in ApiSelect #200

Closed
cugliang opened this issue Jan 18, 2021 · 0 comments
Closed

support number value of optionitem needed in ApiSelect #200

cugliang opened this issue Jan 18, 2021 · 0 comments

Comments

@cugliang
Copy link

Subject of the feature

type OptionsItem = { label: string; value: string; disabled?: boolean };
Describe your issue here.
now,optionitem support string value,but sometimes the system developed surply number value of optionitem.
type OptionsItem = { label: string; value: string|number; disabled?: boolean };

Problem

but if change here,and change the api and mock interface to support number value,the console will get a warn info,as:
[Vue warn]: Invalid prop: type check failed for prop "value". Expected String with value "1", got Number with value 1.
runtime-dom.esm-bundler.c8ed2c92.js:1181
If the feature requests relates to a problem, please describe the problem you are trying to solve here.

Expected behaviour

What should happen? Please describe the desired behaviour.

Alternatives

What are the alternative solutions? Please describe what else you have considered?

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