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

Handle v-slot formatting #180

Closed
Shinigami92 opened this issue Feb 25, 2021 · 2 comments · Fixed by #181
Closed

Handle v-slot formatting #180

Shinigami92 opened this issue Feb 25, 2021 · 2 comments · Fixed by #181
Assignees
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected

Comments

@Shinigami92
Copy link
Member

Input

v-slide-group(v-model="model")
  v-slide-item(v-slot="{  active , toggle  }")
    v-card
      //- ...
  v-slide-item(v-slot="{  active,  toggle  }")
    v-card
      //- ...

Expected Output

v-slide-group(v-model="model")
  v-slide-item(v-slot="{ active, toggle }")
    v-card
      //- ...
  v-slide-item(v-slot="{ active, toggle }")
    v-card
      //- ...
@Shinigami92 Shinigami92 added the framework: Vue Related to the framework Vue label Feb 25, 2021
@Shinigami92 Shinigami92 self-assigned this Feb 25, 2021
@Shinigami92 Shinigami92 added the type: bug Functionality that does not work as intended/expected label Feb 27, 2021
@kaangokdemir
Copy link
Contributor

Even it works well with default and named slots, unfortunately it still not works well with named slot shorthand

Input

template(#header='{    alpha,beta }')
template(v-slot:footer='{    alpha,beta }')

Expected Output

template(#header='{ alpha, beta }') // ❌ Not formats
template(v-slot:footer='{ alpha, beta }') ✅ Formats

@Shinigami92
Copy link
Member Author

@kaangokdemir Could you open a new issue? That will create a new issue number and I need that cause my test directories (and changelog entries) are referencing these issue numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants