Error: Expect START descriptor with dept
发布于 5 年前 作者 yongxiao 12057 次浏览 来自 问答

自定义组件GenerateList.wxml代码如下:

<i-swipeout wx:for="{{dataList}}" wx:key=“rowId” wx:for-index=“rowIndex” wx:for-item=“row”

actions="{{actions}}" i-class=“i-swipeout-card” data-rowid="{{row.rowId}}"        

bind:change=“menuItemClick”>

<view slot=“content”>

<cui-rippleview cui-class=“list-card”>

<view class=“list-cells” data-rowid="{{row.rowId}}" bind:tap=“clickItem”>

<block wx:for="{{row.rowData}}" wx:key=“id” wx:for-index=“cellIndex” wx:for-item=“cell”>

<view class=“list-cell span-{{cell.span==0?24:12}} line-index-{{cell.lineIndex}}” wx:if="{{row.rowExpaned||cell.lineIndex<=maxLine}}">

<cui-marktext content="{{cell.showText}}" mark="{{mark}}"></cui-marktext>

<view class=“list-icons” wx:if="{{cellIndex==0}}">

<i class=“iconfont icon-share” data-rowid="{{row.rowId}}" catch:tap=“clickItemShare” />

</view>

</view>

</block>

</view>

<view wx:if="{{row.rowHasMore}}" data-rowid="{{row.rowId}}" class=“view-more-info” catch:tap=“clickItemMore”>{{row.rowExpaned?‘收起内容’:‘更多内容’}}</view>

</cui-rippleview>

</view>

</i-swipeout>

自定义组件cui-marktext.wxml代码如下(只有一行):

<text>{{content}}</text>

-------------------------------------

问题情况:只要把GenerateList.wxml里面的cui-marktext那行代码注释掉就不报错,否则就报错如下

回到顶部