-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
121 lines (113 loc) · 3.07 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!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;
}
*::before,
*::after {
box-sizing: border-box;
}
:root {
--button-height: 32px;
--font-size: 14px;
--button-bg: white;
--button-active-bg: #eee;
--button-radius: 4px;
--color: #333;
--border-color: #999;
--border-color-hover: #666;
}
body {
font-size: var(--font-size);
font-family: "Open Sans";
font-weight: 300;
line-height: 1.5em;
text-align: center;
}
</style>
<style>
.demo {
border: 1px solid #666;
min-height: 100px;
}
.sider {
background: #333;
width: 200px;
}
.side-enter-active,
.side-leave-active {
transition: all 0.5s;
}
.side-enter,
.side-leave-to {
margin-left: -150px;
}
.header {
background: #999;
height: 100px;
}
.footer {
background: #ccc;
height: 50px;
}
</style>
</head>
<body>
<div id="app">
<div>
<w-button @click="$toast('点击弹出提示')">顶部弹出</w-button>
<w-button @click="$toast('点击弹出提示', {position:'middle'})"
>中间弹出</w-button
>
<w-button @click="$toast('点击弹出提示', {position:'bottom'})"
>底部弹出</w-button
>
</div>
<div>
<w-tabs :selected="selected" direction="vertical">
<w-tabs-head>
<w-tabs-item name="1">1</w-tabs-item>
<w-tabs-item name="2">2</w-tabs-item>
</w-tabs-head>
<w-tabs-body>
<w-tabs-pane name="1">content 1</w-tabs-pane>
<w-tabs-pane name="2">content 2</w-tabs-pane>
</w-tabs-body>
</w-tabs>
</div>
<div>
<w-input v-model="value"></w-input>
<div>
value: {{value}}
</div>
</div>
<div class="container">
<w-button readonly>默认按钮</w-button>
<w-button readonly :border="true">默认按钮</w-button>
<w-button icon="settings">默认按钮</w-button>
<w-button :loading="true">默认按钮</w-button>
<w-button disabled>默认按钮</w-button>
</div>
<div style="padding: 100px;">
<w-collapse :selected.sync="selectedTab">
<w-collapse-item title="item-1" name="1">content-1</w-collapse-item>
<w-collapse-item title="item-2" name="2">content-2</w-collapse-item>
<w-collapse-item title="item-3" name="3">content-3</w-collapse-item>
</w-collapse>
{{selectedTab}}
</div>
</div>
<script src="./src/app.js"></script>
</body>
</html>