3
0

u--text.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. :openType="openType"
  13. :bold="bold"
  14. :block="block"
  15. :lines="lines"
  16. :color="color"
  17. :decoration="decoration"
  18. :size="size"
  19. :iconStyle="iconStyle"
  20. :margin="margin"
  21. :lineHeight="lineHeight"
  22. :align="align"
  23. :wordWrap="wordWrap"
  24. :customStyle="customStyle"
  25. ></uvText>
  26. </template>
  27. <script>
  28. /**
  29. * 此组件存在的理由是,在nvue下,u-text被uni-app官方占用了,u-text在nvue中相当于input组件
  30. * 所以在nvue下,取名为u--input,内部其实还是u-text.vue,只不过做一层中转
  31. * 不使用v-bind="$attrs",而是分开独立写传参,是因为微信小程序不支持此写法
  32. */
  33. import uvText from "../u-text/u-text.vue";
  34. import { props } from "../u-text/props.js";
  35. import { mpMixin } from '../../libs/mixin/mpMixin.js'
  36. import { mixin } from '../../libs/mixin/mixin.js'
  37. export default {
  38. name: "u--text",
  39. mixins: [mpMixin, mixin, props,],
  40. components: {
  41. uvText,
  42. },
  43. };
  44. </script>