-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (63 loc) · 2.11 KB
/
index.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>轱辘</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
img {max-width:100%}
/*设置变量*/
/*:root {*/
/* --button-height: 32px;*/
/* --font-size: 14px;*/
/* --button-bg: white;*/
/* --button-active-bg: #eee;*/
/* --border-radius: 4px;*/
/* --color: #333;*/
/* --border-color: #999;*/
/* --border-color-hover: #666;*/
/*}*/
#app {
}
body {
font-size: var(--font-size)
}
</style>
</head>
<body>
<div id="app" style="padding: 100px">
<g-button @click="$toast('点击弹出提示')">上方弹出</g-button>
<g-button>打开</g-button>
<g-button icon="setting">默认按钮</g-button>
<g-button :loading="true">默认按钮</g-button>
<g-button disabled>默认按钮</g-button>
<g-icon :name="'setting'"></g-icon>
<g-icon :name="'left'"></g-icon>
<g-collapse :selected="selectedTab" :selected.sync="selectedTab" single>
<g-collapse-item title="标题1" name="1">内容1 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus consequatur </g-collapse-item>
<g-collapse-item title="标题2" name="2">内容2 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cupiditate dolore d! </g-collapse-item>
<g-collapse-Item title="标题3" name="3"> 内容3 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, magnam. </g-collapse-Item>
{{selectedTab}}
</g-collapse>
<g-tabs :selected="selected">
<g-tabs-head>
<g-tabs-item name="1">1</g-tabs-item>
<g-tabs-item name="2">2</g-tabs-item>
</g-tabs-head>
<g-tabs-body>
<g-tabs-pane name="1">content 1</g-tabs-pane>
<g-tabs-pane name="2">content 2</g-tabs-pane>
</g-tabs-body>
</g-tabs>
</div>
<script src="./src/app.js"></script>
<!--最外层的index.js依赖app.js-->
</body>
</html>