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

出现一个很奇怪的现象 #15

Open
keven-one opened this issue Sep 23, 2019 · 0 comments
Open

出现一个很奇怪的现象 #15

keven-one opened this issue Sep 23, 2019 · 0 comments

Comments

@keven-one
Copy link

1.同样的代码在不同文件中格式化后的样子不一样
2.而且有时需要按两次保存才能正确格式化。
正确的
image
image
代码如下

<!-- pages/index/inquiry/inquiry-picture.wxml -->
<view class="container" hover-class="none" hover-stop-propagation="false">
				<view class="select" hover-class="none" hover-stop-propagation="false">
								<text>选择宠物</text>
								<image src="/images/user/more.png" mode="aspectFit" />
				</view>
				<view class="symptom" hover-class="none" hover-stop-propagation="false">
								<text>症状:</text>
								<textarea value="{{symptom}}" placeholder="请输入症状描述" maxlength="150" auto-focus="true" />
				</view>
				<view class="picture" hover-class="none" hover-stop-propagation="false">
								<text>图片</text>
								<view class="pic-area" hover-class="none" hover-stop-propagation="false">
												<view class="picture-view" wx:for="{{images}}" wx:key="index" data-selectIndex="{{index}}" hover-class="none" hover-stop-propagation="false">
																<image class="cover" src="{{item}}" mode="aspectFit" bind:tap="upload"></image>
																<image class="close" src="/images/close.png" wx:if="{{item.substring(0,4) == 'http'}}" mode="aspectFit" bind:tap="close"></image>
												</view>
								</view>
				</view>
</view>
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

1 participant