You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

form-picker.wxml 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <block wx:if="{{columns == 1}}">
  2. <picker bindchange="onePickerChange" value="{{index}}" range="{{pickerList}}" range-key="dictValue">
  3. <view-flex styleCss="{{styleCss}}" justify="space-between" align="center">
  4. <view class="form-label">{{label}}</view>
  5. <view-flex class="form-value" justify="flex-end">
  6. <input style="width: 550rpx;text-align: right;height: 35rpx;" value="{{pickerTxt}}" placeholder="请选择{{label}}" disabled />
  7. </view-flex>
  8. </view-flex>
  9. </picker>
  10. </block>
  11. <!-- 多列 -->
  12. <block wx:else>
  13. <picker bindchange="multiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" value="{{multiIndex}}" range="{{pickerList}}" range-key="name" mode="multiSelector">
  14. <view-flex styleCss="{{styleCss}}" justify="space-between" align="center">
  15. <view class="form-label">{{label}}</view>
  16. <view-flex class="form-value" justify="flex-end">
  17. <input style="width: 550rpx;text-align: right;" value="{{pickerTxt}}" placeholder="请选择{{label}}" disabled />
  18. </view-flex>
  19. </view-flex>
  20. </picker>
  21. </block>
  22. <!-- <wux-popup position="{{position}}" visible="{{ show }}" title="{{placeholder}}">
  23. <wux-wing-blank size="default">
  24. <wux-picker-view options="{{ pickerColumns }}" value="{{select_value}}" bind:scrollChange="pickerScroll" defaultFieldNames="{{cascaderOptionNames}}" />
  25. <wux-row gutter="10">
  26. <wux-col span="4">
  27. <wux-button block outline type="assertive" bind:tap="close">关闭</wux-button>
  28. </wux-col>
  29. <wux-col span="8">
  30. <wux-button block type="balanced" bind:tap="comfirm">确定</wux-button>
  31. </wux-col>
  32. </wux-row>
  33. </wux-wing-blank> -->
  34. <!-- </wux-popup> -->