We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
slideItem:{ type : Array , default: ['列表一','列表二','列表三'] }
[Vue warn]: Invalid default value for prop "slideItem": Props with type Object/Array must use a factory function to return the default value.
应该改为如下
slideItem:{ type : Array , default: ()=> ['列表一','列表二','列表三'] }
参考 vuejs/vue#1032
The text was updated successfully, but these errors were encountered:
props: { propObject: { type: Object, default: () => ({ value1: '', value2: '', value3: '', }) }, propArray: { type: Array, default: () => ([ "a", "b", "c" ]) } },
vuejs/vue#1032
Sorry, something went wrong.
props: { propObject: { type: Object, default: () => ({ value1: '', value2: '', value3: '', }) }, propArray: { type: Array, default: () => ([ "a", "b", "c" ]) } }, vuejs/vue#1032
This one worked for me. I wonder why this issue is still open 🤔
No branches or pull requests
应该改为如下
参考 vuejs/vue#1032
The text was updated successfully, but these errors were encountered: