index.wxml 1.3 KB

12345678910111213141516171819202122
  1. <view class="page">
  2. <view class="page__hd">
  3. <view class="page__title">CascaderView</view>
  4. <view class="page__desc">级联选择视图</view>
  5. </view>
  6. <view class="page__bd">
  7. <view class="sub-title">Default</view>
  8. <wux-cascader-view options="{{ options1 }}" bind:change="onChange1" />
  9. <view class="sub-title">Full</view>
  10. <wux-cascader-view full options="{{ options1 }}" bind:change="onChange1" />
  11. <view class="sub-title">Custom Height</view>
  12. <wux-cascader-view height="540rpx" options="{{ options1 }}" bind:change="onChange1" />
  13. <view class="sub-title">Skip Animation</view>
  14. <wux-cascader-view skipAnimation options="{{ options1 }}" bind:change="onChange1" />
  15. <view class="sub-title">Custom FieldName</view>
  16. <wux-cascader-view options="{{ fieldNamesOptions }}" defaultFieldNames="{{ fieldNames }}" />
  17. <view class="sub-title">Controlled</view>
  18. <wux-cascader-view controlled value="{{ value2 }}" options="{{ options2 }}" bind:change="onChange2" bind:tabsChange="onTabsChange2" />
  19. <view class="sub-title">Async</view>
  20. <wux-cascader-view controlled value="{{ value3 }}" options="{{ options3 }}" bind:change="onChange3" bind:load="onLoadOptions" />
  21. </view>
  22. </view>