We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 中 下拉加载更多 前的 - 留在了上一行。
下拉加载更多
-
开发者工具中的错误提示如下:
复现步骤
如上,提供下代码:
import { View } from '@tarojs/components' import { Component } from '@tarojs/taro' import { More } from '../../store' import './index.scss' export default class Loading extends Component<{ more?: More['more'] }> { render () { const more = this.props.more return ( <View className='loading'> {( !more || more.loading ? '加载中...' : more.finished ? '- 我也是有底线的 -' : '- 下拉加载更多 -' )} </View> ) } }
系统信息
win8
^1.1.0
v10.11.0
weapp
The text was updated successfully, but these errors were encountered:
看了一下原因在于使用依赖的 wxml 格式化库无法解析三元表达式嵌套的情况,我们将在 prettier/prettier@5e8a4a1 发布版本之后使用 prettier 作为格式化 wxml 的依赖。
wxml
Sorry, something went wrong.
@yuche 测试把 - 下拉加载更多 - 去除空格后改为 -下拉加载更多- 则一切正常。期待修复🎈
- 下拉加载更多 -
-下拉加载更多-
3a20233
yuche
No branches or pull requests
问题描述
这是代码:
它会被编译为:
显而易见,wxml 中
下拉加载更多
前的-
留在了上一行。开发者工具中的错误提示如下:
复现步骤
如上,提供下代码:
系统信息
win8
^1.1.0
v10.11.0
weapp
The text was updated successfully, but these errors were encountered: