Closed gmm932 closed 2 years ago
这样设置为什么会报错?
<txv-video wx:if="{{video.vid}}" width="{{100%}}" height="{{'auto'}}" vid="{{video.vid}}" playerid="{{video.vid}}" autoplay="{{true}}"> </txv-video>
[ WXML 文件编译错误] ./pages/videodetail/index.wxml Bad attr width with message 24 | <txv-video 25 | wx:if="{{video.vid}}"
width
26 | width="{{100%}}" | ^ 27 | height="{{'auto'}}" 28 | vid="{{video.vid}}" 29 | playerid="{{video.vid}}" at files://miniprogram/pages/videodetail/index.wxml#26(env: macOS,mp,1.05.2105242; lib: 2.14.1)
width="100%" 试试
这样设置为什么会报错?
[ WXML 文件编译错误] ./pages/videodetail/index.wxml Bad attr
width
with message 24 | <txv-video 25 | wx:if="{{video.vid}}"