index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo.png"></image>
  4. <view class="text-area">
  5. <text class="title">
  6. uView - 多平台快速开发的UI框架
  7. </text>
  8. </view>
  9. <view class="button-demo">
  10. <u-button :ripple="true">按钮组件演示</u-button>
  11. </view>
  12. <view class="link-demo">
  13. <u-link :color="$u.color['primary']" :under-line="true" href="http://www.uviewui.com">跳转uView文档:www.uviewui.com</u-link>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. title: 'Hello'
  22. }
  23. },
  24. onLoad() {
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .content {
  32. display: flex;
  33. flex-direction: column;
  34. align-items: center;
  35. justify-content: center;
  36. padding: 40rpx;
  37. }
  38. .logo {
  39. height: 200rpx;
  40. width: 200rpx;
  41. margin-top: 100rpx;
  42. margin-left: auto;
  43. margin-right: auto;
  44. margin-bottom: 50rpx;
  45. }
  46. .text-area {
  47. display: flex;
  48. justify-content: center;
  49. }
  50. .title {
  51. font-size: 28rpx;
  52. color: $u-content-color;
  53. }
  54. .button-demo {
  55. margin-top: 80rpx;
  56. }
  57. .link-demo {
  58. margin-top: 80rpx;
  59. }
  60. </style>