Footer

页脚。

引入

import { Footer } from 'we-vue'

Vue.use(Footer)
1
2
3

例子

<template>
  <div class="page">
    <wv-footer class="footer-demo" text="Copyright © 2017 wevue.org"></wv-footer>
    <wv-footer class="footer-demo" text="Copyright © 2017 wevue.org" :links="links1"></wv-footer>
    <wv-footer class="footer-demo" text="Copyright © 2017 wevue.org" :links="links2"></wv-footer>
    <wv-footer class="footer-demo" text="Copyright © 2017 wevue.org" :links="links3"></wv-footer>
  </div>
</template>

<script>
export default {
  data () {
    return {
      links1: [
        {
          text: '底部链接',
          link: '/'
        }
      ],
      links2: [
        {
          text: '底部链接',
          link: '/footer'
        },
        {
          text: '底部链接',
          link: '/footer'
        }
      ],
      links3: [
        {
          text: '返回首页',
          link: '/'
        }
      ]
    }
  }
}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

API

参数 类型 说明 可选值 默认值
text String 页脚文字
links Array 页脚链接
中国联通
20.45