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.

45 lines
1.2 KiB

4 months 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. :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>