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

Bug: What's wrong? This code can't be formatted #144

Closed
tucke opened this issue Oct 27, 2020 · 2 comments
Closed

Bug: What's wrong? This code can't be formatted #144

tucke opened this issue Oct 27, 2020 · 2 comments
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected type: duplicate This issue or pull request already exists

Comments

@tucke
Copy link

tucke commented Oct 27, 2020

Info

Tool Version
Plugin v1.10.0
Prettier v2.1.2
Node v14.14.0
OS mac

Input

div(class="icons-container")
    aside
          a(href="#"             target="_blank") Add and use
    el-tabs(type="border-card")
      el-tab-pane(label="Icons")
        div(v-for="item of svgIcons"         :key="item")
          el-tooltip(placement="top")
            div(slot="content") {{ generateIconCode(item) }}
            div(class="icon-item")
              svg-icon(:icon-class="item"     class="disabled")
              span {{ item }}
      el-tab-pane(label="Element-UI Icons")
        div(v-for="item of elementIcons" :key="item")
          el-tooltip(placement="top")
            div(slot="content") {{ generateElementIconCode(item) }}
            div(class="icon-item")
              i(:class="'el-icon-' + item")
              span {{ item }}

Output or Error

Expected Output

.icons-container
  aside
    a(href="#", target="_blank") Add and use
  el-tabs(type="border-card")
    el-tab-pane(label="Icons")
      div(v-for="item of svgIcons", :key="item")
        el-tooltip(placement="top")
          div(slot="content") {{ generateIconCode(item) }}
          .icon-item
            svg-icon.disabled(:icon-class="item")
            span {{ item }}
    el-tab-pane(label="Element-UI Icons")
      div(v-for="item of elementIcons", :key="item")
        el-tooltip(placement="top")
          div(slot="content") {{ generateElementIconCode(item) }}
          .icon-item
            i(:class="'el-icon-' + item")
            span {{ item }}

Additional Context

There seems to be no work!why?

@Shinigami92
Copy link
Member

Duplicate of #129
Try to workaround it with in instead of of

@Shinigami92 Shinigami92 added framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected type: duplicate This issue or pull request already exists labels Oct 27, 2020
@tucke
Copy link
Author

tucke commented Oct 27, 2020

@Shinigami92 thank you

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 type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants