index.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="select-top-control">
  2. <input type="text" placeholder="Please select" bindinput="onChange"/>
  3. </view>
  4. <!-- <nz-option *ngFor="let item of options" [nzLabel]="item" [nzValue]="item"></nz-option> -->
  5. <view class='select-options' style='height:{{show?(options.length>5?325:options.length*50):0}}rpx;'>
  6. <text class='select-option' wx:for='{{options}}' wx:key='this' data-index='{{index}}' catchtap='optionTap'>{{item}}</text>
  7. </view>
  8. <!-- <nz-select
  9. [nzMaxTagCount]="3"
  10. [nzMaxTagPlaceholder]="tagPlaceHolder"
  11. nzMode="multiple"
  12. nzPlaceHolder="Please select"
  13. [(ngModel)]="listOfSelectedValue"
  14. >
  15. <nz-option *ngFor="let item of listOfOption" [nzLabel]="item" [nzValue]="item"></nz-option>
  16. </nz-select>
  17. <ng-template #tagPlaceHolder let-selectedList>and {{ selectedList.length }} more selected</ng-template> -->
  18. <!--
  19. <view class='select_box'>
  20. <view class='select' catchtap='selectTap'>
  21. <text class='select_text'>{{selectData[index]}}</text>
  22. <!-- <image class='select_img {{show&&"select_img_rotate"}}' src='../../images/b2.png' background-size="contain"></image>
  23. </view>{{show}}
  24. <view class='option_box' style='height:{{show?(selectData.length>5?325:selectData.length*50):0}}rpx;'>
  25. <text class='option' wx:for='{{selectData}}' wx:key='this' data-index='{{index}}' catchtap='optionTap'>{{item}}</text>
  26. </view>
  27. </view> -->