bi-element-ui 0.1.85 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/App.vue CHANGED
@@ -8,6 +8,7 @@
8
8
  <router-link to="/scene">场景使用</router-link>
9
9
  <router-link to="/table">Table</router-link>
10
10
  <router-link to="/showData">Data</router-link>
11
+ <router-link to="/layout">布局</router-link>
11
12
  </div>
12
13
  </el-aside>
13
14
  <el-main>
package/src/main.js CHANGED
@@ -7,7 +7,12 @@ import store from './store'
7
7
  import BiUi from '../packages'
8
8
 
9
9
  Vue.use(ElementUI)
10
- Vue.use(BiUi)
10
+ Vue.use(BiUi, {
11
+ dev: process.env.NODE_ENV !== 'production',
12
+ env: process.env.NODE_ENV,
13
+ system: 'pigeon'
14
+ }
15
+ )
11
16
 
12
17
  Vue.config.productionTip = false
13
18
 
@@ -20,6 +20,11 @@ const routes = [
20
20
  name: 'Date',
21
21
  component: () => import(/* webpackChunkName: "about" */ '../views/Date.vue')
22
22
  },
23
+ {
24
+ path: '/layout',
25
+ name: 'Layout',
26
+ component: () => import(/* webpackChunkName: "about" */ '../views/Layout.vue')
27
+ },
23
28
  {
24
29
  path: '/table',
25
30
  name: 'Table',
@@ -0,0 +1,35 @@
1
+ <template>
2
+ <div class="box">
3
+ <header>
4
+
5
+ <BiNavbarTool
6
+ :token="token"
7
+ :avatar="avatar"
8
+ />
9
+ </header>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ data() {
16
+ return {
17
+ token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxNTc1NzE4NTMyMiIsImxvZ2luX2VudiI6IiIsImlhdCI6MTcwNTA1ODgwOSwiZXhwIjoxNzA1NjYzNjA5LCJuYmYiOjE3MDUwNTg4MDksInN1YiI6InRva2Vu6K6k6K-BIiwianRpIjoiNmM3ODMzNjlhNDcyODg1YTRhNTFjNGIzYmQ3ZjNmMmQifQ.I6CB6nKNoibs-yVqmclcybApNy1e0WU4tRcy3_7l-WA',
18
+ avatar: 'https://static-legacy.dingtalk.com/media/lADPBbCc1SE7SD7NAuzNAug_744_748.jpg?imageView2/1/w/80/h/80'
19
+ }
20
+ },
21
+ methods: {}
22
+ }
23
+ </script>
24
+
25
+ <style scoped>
26
+ .box {
27
+ background: #ccc;
28
+ height: 200px;
29
+ padding: 10px 50px;
30
+ }
31
+ header {
32
+ height: 50px;
33
+ background: #fff;
34
+ }
35
+ </style>