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

wxml代码折叠问题 #81

Open
Akiq2016 opened this issue Sep 10, 2020 · 1 comment
Open

wxml代码折叠问题 #81

Akiq2016 opened this issue Sep 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Akiq2016
Copy link

.vscode/settings.json 配置

{
  "editor.formatOnSave": true,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "minapp-vscode.wxmlFormatter": "prettier",
  "minapp-vscode.prettier": {
    "parser": "html",
    "useTabs": false,
    "tabWidth": 2,
    "printWidth": 120,
    "singleQuote": false,
    "jsxBracketSameLine": true
  },
  "files.associations": {
    "*.wxml": "wxml",
    "*.cjson": "jsonc",
    "*.wxss": "css",
    "*.wxs": "javascript"
  }
}

问题及预期表现

<!-- xx.html/xx.wxml 展开 -->
<view
    class="hotAct-top"
    style="background-color:{{ hotInit.back_color ? hotInit.back_color : '#fe6647' }}; background: url('{{hotInit.top_img}}') no-repeat top left/ 100% 550rpx;z-index:100"
  >
  <view>一些文字</view>
  <view>一些文字</view>
</view>

<!-- xx.html 折叠 -->
<view>
</view>

<!-- xx.wxml 折叠:预期能与xx.html折叠效果一致 -->
<view
>
  <view>一些文字</view>
  <view>一些文字</view>
</view>
@iChenLei iChenLei added the bug Something isn't working label Aug 29, 2021
@iChenLei
Copy link
Member

@Akiq2016 抱歉,没太明白你的问题,请问现在问题依然存在吗?是否已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants