uni-events-helper-wx
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.

47 lines
1.3 KiB

3 years 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. @focus="$emit('focus')"
  25. @blur="$emit('blur')"
  26. @linechange="$emit('linechange')"
  27. @confirm="$emit('confirm')"
  28. @input="e => $emit('input', e)"
  29. @keyboardheightchange="$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>