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
存在动态绑定class类的情况下,编译到支付宝小程序里直接报错。
Module build failed (from C:/snapshot/code-repo/out/target/bundle/node_modules/@ali/antcube-thread-loader/lib/cjs.js): Thread Loader (Worker 0) Expected " at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322) at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322) Module build failed (from C:/snapshot/code-repo/out/target/bundle/node_modules/@ali/antcube-thread-loader/lib/cjs.js): Thread Loader (Worker 1) Expected " at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322) at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322)
报错情况:
<view v-for="(item,index) in table.list" :key="index" class="mt-[41rpx] text-center tracking-[2.8rpx]" :class="[table.index === index ? 'text-theme' : 'text-main']" @tap="fetchHotDetail(item, index)" > {{ item.name }} </view>
不报错:
<view class="hot-item"> <view v-for="(item,index) in table.list" :key="index" class="base-item" :class="[table.index === index ? 'text-theme' : 'text-main']" @tap="fetchHotDetail(item, index)" > {{ item.name }} </view> </view> css: .base-item{ @apply @apply mt-[41rpx] text-center tracking-[2.8rpx]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
存在动态绑定class类的情况下,编译到支付宝小程序里直接报错。
报错情况:
不报错:
The text was updated successfully, but these errors were encountered: