index.axml 1.2 KB

1234567891011121314151617181920
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' ref='saveChildRef1'>
  3. <van-area value='{{ value }}' loading='{{ loading }}' area-list='{{ areaList }}' onChange='onChange' onConfirm='onConfirm' onCancel='onCancel' ref='saveChildRef2'>
  4. </van-area>
  5. </demo-block>
  6. <demo-block title='选中省市县' ref='saveChildRef3'>
  7. <van-area value='{{ value }}' loading='{{ loading }}' area-list='{{ areaList }}' onChange='onChange' onConfirm='onConfirm' ref='saveChildRef4'>
  8. </van-area>
  9. </demo-block>
  10. <demo-block title='配置显示列' ref='saveChildRef5'>
  11. <van-area title='标题' columns-num='{{ 2 }}' loading='{{ loading }}' area-list='{{ areaList }}' onChange='onChange' onConfirm='onConfirm' ref='saveChildRef6'>
  12. </van-area>
  13. </demo-block>
  14. <demo-block title='配置列占位提示文字' ref='saveChildRef7'>
  15. <van-area title='标题' columns-num='{{ 2 }}' loading='{{ loading }}' area-list='{{ areaList }}' columns-placeholder="{{ ['请选择', '请选择', '请选择'] }}" onChange='onChange' onConfirm='onConfirm' ref='saveChildRef8'>
  16. </van-area>
  17. </demo-block>
  18. <van-toast id='van-toast' ref='saveChildRef9'>
  19. </van-toast>
  20. </view>