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

vue-cli 3.0生成的template元素比2.0的少一个空格 #3209

Closed
GitHdu opened this issue Dec 28, 2018 · 1 comment
Closed

vue-cli 3.0生成的template元素比2.0的少一个空格 #3209

GitHdu opened this issue Dec 28, 2018 · 1 comment

Comments

@GitHdu
Copy link

GitHdu commented Dec 28, 2018

Version

3.2.1

Environment info

System:
    OS: macOS 10.14.2
    CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
  Binaries:
    Node: 10.14.1 - /usr/local/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 71.0.3578.98
    Firefox: Not Found
    Safari: 12.0.2
  npmGlobalPackages:
    @vue/cli: 3.2.1

Steps to reproduce

1 分别用vue-cli2和3新建工程
2 在template中写两个button

<template>
  <div>
    <button data-v-9fa485f6="">a</button>
    <button data-v-9fa485f6="">b</button>
  </div>
</template>
  1. 控制台检查元素

What is expected?

a b
两个button之间有个空格

What is actually happening?

ab


有没有空格可能影响display:inline-block元素的样式

@haoqunjiang
Copy link
Member

See #1020 (comment)

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

No branches or pull requests

2 participants