myInput.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <!-- <textarea style="width:100%" auto-height="true"/> -->
  49. <wux-textarea clear autoHeight/>
  50. </my-form-item>
  51. </view>
  52. </view>