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

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