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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs]: improve slot scope auto exposing "params" behaviour #1924

Merged

Commits on Dec 27, 2022

  1. Copy the full SHA
    97a87e2 View commit details
    Browse the repository at this point in the history
  2. docs(guide): note about slot scope when not wrapped in template tag

    https://github.com/vuejs/test-utils/blob/39d86ad5abe71bac8d76c5b82f11f30225cf8673/src/utils/compileSlots.ts#L10
    
    The only example provided used an explicit #default="params", but it doesn't mention that if you don't explicitly wrap it, the slot scope becomes also available as params. In VTU1, they were exposed as props, so i think it's better to be explicit about it.
    renatodeleao committed Dec 27, 2022
    Copy the full SHA
    dfce58e View commit details
    Browse the repository at this point in the history