在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ 如何在表格v-for出來的tr里面使用vux的Swipeout組件

如何在表格v-for出來的tr里面使用vux的Swipeout組件

這是我的table

 <x-table :cell-bordered="false" style="background-color:#fff;">
    <thead>
      <tr>
        <th>姓名</th>
        <th>年齡</th>
        <th>地址</th>
      </tr>
    </thead>
    <tbody>
      <div v-transfer-dom>
        <loading :show="show" :text="text"></loading>
      </div>
      <tr v-for="user in users">
        <td>{{user.name}}</td>
        <td>{{user.age}}</td>
        <td>{{user.addr}}</td>
      </tr>
    </tbody>
  </x-table>

我想要添加Swipeout組件讓每一個tr都能左滑以便編輯刪除
圖片描述

那么我的頁面結構應該怎么調整?換句話說就是我的Swipeout應該如何和tr td組合使用?

回答
編輯回答
氕氘氚

不使用table而是換成了flexbox組件解決了
圖片描述

2017年12月27日 12:29