-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
282 lines (265 loc) · 7.43 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>wick</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*css变量*/
html {
--button-height: 32px;
--font-size: 16px;
--button-bg: white;
--button-active-bg: #eee;
--border-radius: 4px;
--color: #333;
--border-color: #999;
--border-color-hover: #666;
--background-color-hover: #f1f1f1;
}
/*临时样式*/
#app > div {
margin-bottom: 20px;
}
h5 {
margin: 20px 0px 10px 0px;
}
body {
font-size: var(--font-size);
}
.col-style {
border-radius: 5px;
}
</style>
</head>
<body>
<div id="app">
<div>
<h4>1. button 组件示例</h4>
<w-button type='success' round>
登录
</w-button>
<w-button :disabled="true">
禁用状态的登录
</w-button>
<w-button icon="settings" icon-position="right">
</w-button>
<w-button type='primary' icon="settings">
设置
</w-button>
<w-button icon="loading"
icon-position="right"
:loading="loading1"
@click="loading1 = !loading1">
加载中,图标在右边
</w-button>
<w-button icon="loading"
:loading="loading1"
@click="loading1 = !loading1">
加载中,图标在左边
</w-button>
<w-button-group>
<w-button icon="left">左按钮</w-button>
<w-button icon="right" icon-position="right">右按钮</w-button>
</w-button-group>
</div>
<div>
<h4>2. input组件示例</h4>
<w-input value="Sam"></w-input>
<w-input value="I am disabled" disabled></w-input>
<w-input value="I am readonly" readonly></w-input>
<w-input value="I am change event" @change="myInputChange"></w-input>
<w-input v-model="message"></w-input>
<span>{{ message }}</span>
</div>
<div>
<h4>3. 栅格系统 Row & Col 组件</h4>
<w-row :gutter="20">
<w-col span="1">
<div class="col-style" style="background-color: #666666"> </div>
</w-col>
<w-col span="1">
<div class="col-style" style="background-color: #666666"> </div>
</w-col>
<w-col span="1">
<div class="col-style" style="background-color: #666666"> </div>
</w-col>
<w-col span="18">
<div class="col-style" style="background-color: #999999"> </div>
</w-col>
<w-col span="3">
<div class="col-style" style="background-color: #666666"> </div>
</w-col>
</w-row>
<w-row :gutter="20">
<w-col span="22" offset="2">
<div class="col-style" style="background-color: #666666">22</div>
</w-col>
</w-row>
<w-row>
<w-col span="1">
<div class="col-style" style="background-color: #666666">1</div>
</w-col>
<w-col span="22" offset="1">
<div class="col-style" style="background-color: #999999">22</div>
</w-col>
</w-row>
<w-row>
<w-col span="12">
<div class="col-style" style="background-color: #999999"></div>
</w-col>
<w-col span="12">
<div class="col-style" style="background-color: #666666"></div>
</w-col>
</w-row>
</div>
<div>
<h4>4. 布局组件 Layout & Header & Aside & Content & Footer 组件</h4>
<h5>上中下布局</h5>
<w-layout>
<w-header>header</w-header>
<w-content>content</w-content>
<w-footer>footer</w-footer>
</w-layout>
<h5>上左右下布局</h5>
<w-layout>
<w-header>header</w-header>
<w-layout>
<w-aside>侧边栏</w-aside>
<w-content>content</w-content>
</w-layout>
<w-footer>footer</w-footer>
</w-layout>
<h5>上右左下布局</h5>
<w-layout>
<w-header>header</w-header>
<w-layout>
<w-content>content</w-content>
<w-aside>侧边栏</w-aside>
</w-layout>
<w-footer>footer</w-footer>
</w-layout>
<h5>左上中下布局</h5>
<w-layout>
<w-aside>侧边栏</w-aside>
<w-layout>
<w-header>header</w-header>
<w-content>content</w-content>
<w-footer>footer</w-footer>
</w-layout>
</w-layout>
</div>
<div>
<h4>5. toast组件</h4>
<span @click='showMe'>点我</span>
<span @click='showMe1'>点我1</span>
<span @click='showMe2'>点我2</span>
</div>
<div>
<h4>6. tabs组件</h4>
<w-tabs :selected.sync="selectedTab">
<w-tabs-head>
<w-tabs-item name="woman">
<w-icon name="settings"></w-icon>
beauty
</w-tabs-item>
<w-tabs-item name="IT" disabled>
IT
</w-tabs-item>
<w-tabs-item name="finance">
finance
</w-tabs-item>
<template v-slot:actions>
<span>松紧带</span>
</template>
</w-tabs-head>
<w-tabs-body>
<w-tabs-pane name="woman">
beauty相关
</w-tabs-pane>
<w-tabs-pane name="IT">
IT相关
</w-tabs-pane>
<w-tabs-pane name="finance">
finance相关
</w-tabs-pane>
</w-tabs-body>
</w-tabs>
</div>
<div>
<h4>7. popover组件</h4>
<div @click="popoverClick">
<w-popover trigger='click'>
<template slot='content' slot-scope='{close}'>
<div>popover内容
<w-button @click='close'>关闭</w-button>
</div>
</template>
<w-button>点这里</w-button>
</w-popover>
<w-popover position='right'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
<w-popover position='bottom'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
<w-popover position='left'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
</div>
<div @click="popoverClick">
<w-popover trigger='click'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
<w-popover trigger='click' position='right'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
<w-popover trigger='click' position='bottom'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
<w-popover trigger='click' position='left'>
<template slot='content'>
<div>popover内容</div>
</template>
<w-button>点这里</w-button>
</w-popover>
</div>
</div>
<div>
<h4>8. 手风琴组件</h4>
<w-collapse :selected.sync="selectedCollapse">
<w-collapse-item title='标题1' name="1">内容1</w-collapse-item>
<w-collapse-item title='标题2' name="2">内容2</w-collapse-item>
<w-collapse-item title='标题3' name="3">内容3</w-collapse-item>
</w-collapse>
</div>
</div>
<script src='//at.alicdn.com/t/font_1357628_6a8y46oukt3.css'></script>
<script src="./src/app.js"></script>
<script src="./src/svg.js"></script>
</body>
</html>