Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

wxml 属性变量自动换行问题 #40

Closed
w0330t opened this issue Sep 22, 2019 · 4 comments
Closed

wxml 属性变量自动换行问题 #40

w0330t opened this issue Sep 22, 2019 · 4 comments

Comments

@w0330t
Copy link

w0330t commented Sep 22, 2019

我原本写的代码是这样
image
但是保存了之后代码格式化之后变成了这样
image
微信的编译器就开始报错
image
我把代码改成了这样,问题依旧
image

还有一个事,我这边情况有点特殊,开发和微信的ide分别是两个电脑,我:目前在开发机远程访问的微信ide,有点慢,请问dist目录能否可以自定义设置目录,比如输出为D:\dist这种绝对路径

@w0330t
Copy link
Author

w0330t commented Sep 22, 2019

我尝试更改.prettierrc文件中的printWidth,好像没起作用
image

@NewFuture
Copy link
Owner

NewFuture commented Sep 23, 2019

这是微信开发工具模板解析的bug,
暂时可以通过

<!-- prettier-ignore-attribute style -->

class 名过长可以用

<!-- prettier-ignore-attribute class -->

来阻止自动格式化

输入的时候应该有自动提示

@w0330t
Copy link
Author

w0330t commented Sep 25, 2019

关于dist目录输出的事,请问可以实现吗?或者我另外开一个issus?

@NewFuture
Copy link
Owner

关于dist目录输出的事,请问可以实现吗?或者我另外开一个issus?

这个是指什么?可以开一个issue说明一下

@w0330t w0330t closed this as completed Sep 25, 2019
@NewFuture NewFuture changed the title 关于自动格式化的Bug scss 引用路径 Sep 26, 2019
@NewFuture NewFuture changed the title scss 引用路径 wxml 换行问题 Sep 30, 2019
@NewFuture NewFuture changed the title wxml 换行问题 wxml 属性变量自动换行问题 Sep 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants