index.axml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' ref='saveChildRef1'>
  3. <van-swipe-cell right-width='{{ 65 }}' left-width='{{ 65 }}' ref='saveChildRef2'>
  4. <view slot='left' class=" ">
  5. 选择
  6. </view>
  7. <van-cell-group ref='saveChildRef3'>
  8. <van-cell title='单元格' value='内容' ref='saveChildRef4'>
  9. </van-cell>
  10. </van-cell-group>
  11. <view slot='right'>
  12. 删除
  13. </view>
  14. </van-swipe-cell>
  15. </demo-block>
  16. <demo-block title='异步关闭' ref='saveChildRef5'>
  17. <van-swipe-cell id='swipe-cell' right-width='{{ 65 }}' left-width='{{ 65 }}' async-close=" " onClose='onClose' ref='saveChildRef6'>
  18. <view slot='left' class=" ">
  19. 选择
  20. </view>
  21. <van-cell-group ref='saveChildRef7'>
  22. <van-cell title='单元格' value='内容' ref='saveChildRef8'>
  23. </van-cell>
  24. </van-cell-group>
  25. <view slot='right'>
  26. 删除
  27. </view>
  28. </van-swipe-cell>
  29. </demo-block>
  30. <demo-block title='主动打开' ref='saveChildRef9'>
  31. <van-swipe-cell id='swipe-cell2' right-width='{{ 65 }}' left-width='{{ 65 }}' name='示例' onOpen='onOpen' ref='saveChildRef10'>
  32. <view slot='left'>
  33. 选择
  34. </view>
  35. <van-cell-group ref='saveChildRef11'>
  36. <van-cell title='单元格' value='内容' ref='saveChildRef12'>
  37. </van-cell>
  38. </van-cell-group>
  39. <view slot='right'>
  40. 删除
  41. </view>
  42. </van-swipe-cell>
  43. </demo-block>
  44. <van-dialog id='van-dialog' ref='saveChildRef13'>
  45. </van-dialog>
  46. <van-notify id='van-notify' ref='saveChildRef14'>
  47. </van-notify>
  48. </view>