Skip to content

Revise default prop value handling for the Vue.js script-setup skill#7

Open
MrNightingale wants to merge 1 commit into
PatternsDev:mainfrom
MrNightingale:patch-1
Open

Revise default prop value handling for the Vue.js script-setup skill#7
MrNightingale wants to merge 1 commit into
PatternsDev:mainfrom
MrNightingale:patch-1

Conversation

@MrNightingale

Copy link
Copy Markdown

Vue.js 3.5+ allows to destructure and declare default prop value by using JavaScript's native default value syntax.

  • Update the method for providing default prop values by destructuring from defineProps() instead of using withDefaults().

Updated the method for providing default prop values by destructuring from defineProps() instead of using withDefaults().
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

Successfully merging this pull request may close these issues.

1 participant