u--textarea.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. :ignoreCompositionEvent="ignoreCompositionEvent"
  25. @focus="e => $emit('focus')"
  26. @blur="e => $emit('blur')"
  27. @linechange="e => $emit('linechange', e)"
  28. @confirm="e => $emit('confirm')"
  29. @input="e => $emit('input', e)"
  30. @keyboardheightchange="e => $emit('keyboardheightchange')"
  31. ></uvTextarea>
  32. </template>
  33. <script>
  34. /**
  35. * 此组件存在的理由是,在nvue下,u--textarea被uni-app官方占用了,u-textarea在nvue中相当于textarea组件
  36. * 所以在nvue下,取名为u--textarea,内部其实还是u-textarea.vue,只不过做一层中转
  37. */
  38. import uvTextarea from '../u-textarea/u-textarea.vue';
  39. import props from '../u-textarea/props.js'
  40. export default {
  41. name: 'u--textarea',
  42. mixins: [uni.$u.mpMixin, props, uni.$u.mixin],
  43. components: {
  44. uvTextarea
  45. },
  46. }
  47. </script>