3
0

u--textarea.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>