-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTabbar.html
53 lines (51 loc) · 1.2 KB
/
Tabbar.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- 引入样式 -->
<link rel="stylesheet" href="CSS/style.css">
</head>
<body>
<div id="app">
<mt-header title="标题过长会隐藏后面的内容啊哈哈哈哈">
<router-link to="/" slot="left">
<mt-button icon="back">返回</mt-button>
</router-link>
<mt-button icon="more" slot="right"></mt-button>
</mt-header>
<mt-button @click.native="handleClick">按钮</mt-button>
<mt-tabbar v-model="selected">
<mt-tab-item id="外卖">
<img slot="icon" src="img/100x100.png">
外卖
</mt-tab-item>
<mt-tab-item id="订单">
<img slot="icon" src="img/100x100.png">
订单
</mt-tab-item>
<mt-tab-item id="发现">
<img slot="icon" src="img/100x100.png">
发现
</mt-tab-item>
<mt-tab-item id="我的">
<img slot="icon" src="img/100x100.png">
我的
</mt-tab-item>
</mt-tabbar>
</div>
</body>
<!-- 先引入 Vue -->
<script src="JS/vue.js"></script>
<!-- 引入组件库 -->
<script src="JS/index.js"></script>
<script>
new Vue({
el: '#app',
methods: {
handleClick: function() {
this.$toast('Hello world!')
}
}
})
</script>
</html>