You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

12 months ago
  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>