Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

form-cascader.wxml 1.1KB

1 år sedan
12345678910111213141516171819202122232425
  1. <wux-cell wx:if="{{activeMode}}" hover-class="none" wux-class="wux-cell-class-1">
  2. <view class="view-input" bind:tap="openPopup">
  3. <text wx:if="{{child_value}}">{{child_value}}</text>
  4. <text wx:else style="color: #999999;">{{placeholder}}</text>
  5. </view>
  6. </wux-cell>
  7. <wux-cell wx:else hover-class="none" wux-class="wux-cell-class">
  8. <wux-input label="{{label}}" placeholder="{{placeholder}}" value="{{child_value}}" requiredMark="{{requiredMark}}" labelWrap controlled readOnly bind:tap="openPopup" />
  9. </wux-cell>
  10. <wux-popup position="{{position}}" visible="{{ show }}" title="{{placeholder}}">
  11. <wux-wing-blank size="default">
  12. <wux-cascader-view full controlled value="{{ select_value }}" options="{{ cascaderOption }}" bind:change="onChange" bind:load="onLoadOptions" defaultFieldNames="{{cascaderOptionNames}}" />
  13. <wux-row gutter="10">
  14. <wux-col span="4">
  15. <wux-button block outline type="assertive" bind:tap="close">关闭</wux-button>
  16. </wux-col>
  17. <wux-col span="8">
  18. <wux-button block type="balanced" bind:tap="comfirm">确定</wux-button>
  19. </wux-col>
  20. </wux-row>
  21. </wux-wing-blank>
  22. </wux-popup>