myInput.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--myComponents/myInput/myInput.wxml-->
  2. <view class="myInput">
  3. <view class="left">
  4. <view class="input_type">
  5. <slot></slot>
  6. </view>
  7. <input class="default" type="text" placeholder="{{placeholder}}" placeholder-class="placeholder" value="{{value}}" bindinput="changeInput" bindblur="inputBlur"/>
  8. <view class="inner_icon" bind:tap="clickInnerIcon">
  9. <view class="btn_icon">
  10. <slot name="inner_icon"></slot>
  11. </view>
  12. <view class="default iconfont myIconzhaoxiangji"></view>
  13. </view>
  14. </view>
  15. <view class="right">
  16. <button class="btn" bind:tap="buttonClick">
  17. <view class="btn_icon">
  18. <slot name="btn_icon"> </slot>
  19. </view>
  20. <view class="default iconfont myIconsousuo"></view>
  21. </button>
  22. </view>
  23. </view>
  24. <view wx:if="{{showEdit && show}}" class="editBox">
  25. <view class="upload">
  26. <wux-upload
  27. max='1'
  28. listType="picture-card"
  29. fileList="{{ fileList }}"
  30. controlled
  31. uploaded="false"
  32. bind:before="beforeUpload"
  33. bind:change="onChange"
  34. bind:success="onSuccess"
  35. bind:fail="onFail"
  36. bind:complete="onComplete"
  37. bind:preview="onPreview"
  38. bind:remove="onRemove"
  39. >
  40. <text>+</text>
  41. </wux-upload>
  42. </view>
  43. <!-- <view class="form">
  44. <my-form-item label="产品名称">
  45. <input type="text"/>
  46. </my-form-item>
  47. <my-form-item label="关键词">
  48. <wux-textarea clear autoHeight/>
  49. </my-form-item>
  50. </view> -->
  51. </view>