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.

46 lines
1.1 KiB

3 years ago
  1. <template>
  2. <uvText
  3. :type="type"
  4. :show="show"
  5. :text="text"
  6. :prefixIcon="prefixIcon"
  7. :suffixIcon="suffixIcon"
  8. :mode="mode"
  9. :href="href"
  10. :format="format"
  11. :call="call"
  12. :encrypt="encrypt"
  13. :openType="openType"
  14. :bold="bold"
  15. :block="block"
  16. :lines="lines"
  17. :color="color"
  18. :size="size"
  19. :iconStyle="iconStyle"
  20. :precision="precision"
  21. :decoration="decoration"
  22. :margin="margin"
  23. :lineHeight="lineHeight"
  24. :align="align"
  25. :wordWrap="wordWrap"
  26. :customStyle="customStyle"
  27. @click="$emit('click')"
  28. ></uvText>
  29. </template>
  30. <script>
  31. /**
  32. * 此组件存在的理由是在nvue下u-text被uni-app官方占用了u-text在nvue中相当于input组件
  33. * 所以在nvue下取名为u--input内部其实还是u-text.vue只不过做一层中转
  34. * 不使用v-bind="$attrs"而是分开独立写传参是因为微信小程序不支持此写法
  35. */
  36. import uvText from '../u-text/u-text.vue'
  37. import props from '../u-text/props.js'
  38. export default {
  39. name: 'u--text',
  40. mixins: [uni.$u.mpMixin, props, uni.$u.mixin],
  41. components: {
  42. uvText
  43. },
  44. }
  45. </script>