u--textarea.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <uvTextarea
  3. :value="value"
  4. :placeholder="placeholder"
  5. :height="height"
  6. :confirmType="confirmType"
  7. :disabled="disabled"
  8. :count="count"
  9. :focus="focus"
  10. :autoHeight="autoHeight"
  11. :fixed="fixed"
  12. :cursorSpacing="cursorSpacing"
  13. :cursor="cursor"
  14. :showConfirmBar="showConfirmBar"
  15. :selectionStart="selectionStart"
  16. :selectionEnd="selectionEnd"
  17. :adjustPosition="adjustPosition"
  18. :disableDefaultPadding="disableDefaultPadding"
  19. :holdKeyboard="holdKeyboard"
  20. :maxlength="maxlength"
  21. :border="border"
  22. :customStyle="customStyle"
  23. :formatter="formatter"
  24. @focus="e => $emit('focus')"
  25. @blur="e => $emit('blur')"
  26. @linechange="e => $emit('linechange', e)"
  27. @confirm="e => $emit('confirm')"
  28. @input="e => $emit('input', e)"
  29. @keyboardheightchange="e => $emit('keyboardheightchange')"
  30. ></uvTextarea>
  31. </template>
  32. <script>
  33. /**
  34. * 此组件存在的理由是,在nvue下,u--textarea被uni-app官方占用了,u-textarea在nvue中相当于textarea组件
  35. * 所以在nvue下,取名为u--textarea,内部其实还是u-textarea.vue,只不过做一层中转
  36. */
  37. import uvTextarea from '../u-textarea/u-textarea.vue';
  38. import props from '../u-textarea/props.js'
  39. export default {
  40. name: 'u--textarea',
  41. mixins: [uni.$u.mpMixin, props, uni.$u.mixin],
  42. components: {
  43. uvTextarea
  44. },
  45. }
  46. </script>