forked from qfstudy/vivue-vuepress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
320 lines (307 loc) · 12.3 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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>vue-view</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
</style>
<style>
.vi-row {
margin-bottom: 20px;
}
.el-col {
border-radius: 4px;
}
.bg-purple-dark {
background: #99a9bf;
}
.bg-purple {
background: #d3dce6;
}
.bg-purple-light {
background: #e5e9f2;
}
.grid-content {
border: 1px solid red;
border-radius: 4px;
min-height: 36px;
}
.row-bg {
padding: 10px 0;
background-color: #f9fafc;
}
.tabs{
/* background: red; */
margin-left: 25px;
/* padding: 50px; */
}
</style>
</head>
<body>
<div id="app">
<div class="icon">
<vi-icon class="test" vi-icon-name="info" vi-icon-size="small"></vi-icon>
<vi-icon vi-icon-name="search" vi-icon-size=small></vi-icon>
<vi-icon vi-icon-name="error" vi-icon-size=small></vi-icon>
<vi-icon vi-icon-name="info" vi-icon-size=small></vi-icon>
</div>
<div class="button">
<vi-button type="primary">默认按钮</vi-button>
<!-- <vi-button type="default">默认样式</vi-button> -->
<vi-button type="primary" icon-name="upload" >主要按钮</vi-button>
<vi-button type="primary" icon-name="upload" icon-size="medium" circle="circle"></vi-button>
<vi-button type="primary" icon-name="upload" icon-position="right">主要按钮</vi-button>
<vi-button type="primary" icon-name="upload" icon-size="medium" circle="circle" disabled="disabled"></vi-button>
</div>
<div class="buttonGroup">
<vi-button-group>
<vi-icon class="ss" vi-icon-name="left" vi-icon-size=small></vi-icon>
<vi-icon class="ss" vi-icon-name="pause" vi-icon-size=small></vi-icon>
<vi-icon class="ss" vi-icon-name="right" vi-icon-size=small></vi-icon>
</vi-button-group>
<br>
<vi-button-group>
<vi-button type="primary">默认样式</vi-button>
<vi-button type="primary">主要按钮</vi-button>
</vi-button-group>
<br>
<vi-button-group>
<vi-button>默认样式</vi-button>
<vi-button >主要按钮</vi-button>
</vi-button-group>
<vi-button-group>
<vi-button type="primary" icon-name="left" icon-size=small>上一页</vi-button>
<vi-button type="primary" icon-name="loading" icon-size=small>上一页</vi-button>
<vi-button type="primary" icon-name="search" icon-size=small icon-position="right">下一页</vi-button>
</vi-button-group>
</div>
<hr>
<br>
<div class="input">
<vi-input placeholder="图标靠右" suffix-icon="info" @click="aa"></vi-input>
<vi-input placeholder="图标靠左" prefix-icon="info" @click="aa"></vi-input>
<vi-input placeholder="可清除" clearable suffix-icon="error" @input="yyy"></vi-input>
<vi-input placeholder="双向绑定" v-model="input1"></vi-input>
<vi-input placeholder="只读" readonly></vi-input>
<vi-input placeholder="普通输入框" @change="aa"></vi-input>
<vi-input disabled placeholder="禁止修改"></vi-input>
</div>
<hr>
<br>
<br>
<!-- <div class="grid">
<vi-row class="row">
<vi-col class="col" :span="24">
<div class="grid-content bg-purple-dark">gfg</div>
</vi-col>
</vi-row>
<vi-row class="row" :gutter="20">
<vi-col class="col" :span="12">
<div class="grid-content bg-purple">dd</div>
</vi-col>
<vi-col class="col" :span="12">
<div class="grid-content bg-purple-light">s</div>
</vi-col>
</vi-row>
<vi-row class="row" :gutter="0">
<vi-col class="col" :span="8" :offse0t="0">
<div class="grid-content bg-purple">d</div>
</vi-col>
<vi-col class="col" :span="8" :offset="0">
<div class="grid-content bg-purple-light">ss</div>
</vi-col>
<vi-col class="col" :span="8" :offset="0">
<div class="grid-content bg-purple">g</div>
</vi-col>
</vi-row>
<vi-row class="row" :gutter="12">
<vi-col class="col" :span="1" :offset="2">
<div class="grid-content bg-purple">r</div>
</vi-col>
<vi-col class="col" :span="4" :offset="8">
<div class="grid-content bg-purple-light">u</div>
</vi-col>
<vi-col class="col" :span="2" :offset="3">
<div class="grid-content bg-purple">o</div>
</vi-col>
<vi-col class="col" :span="3" :offset="1">
<div class="grid-content bg-purple-light">l</div>
</vi-col>
</vi-row>
<vi-row class="row" :gutter="12">
<vi-col class="col" :span="6" >
<div class="grid-content bg-purple">r</div>
</vi-col>
<vi-col class="col" :span="5" >
<div class="grid-content bg-purple-light">o</div>
</vi-col>
<vi-col class="col" :span="9" >
<div class="grid-content bg-purple">l</div>
</vi-col>
</vi-row>
<vi-row class="row" :gutter="12" :justify="'end'">
<vi-col class="col" :span="6" >
<div class="grid-content bg-purple-light">r</div>
</vi-col>
<vi-col class="col" :span="5" >
<div class="grid-content bg-purple">o</div>
</vi-col>
<vi-col class="col" :span="9" >
<div class="grid-content bg-purple-light">l</div>
</vi-col>
</vi-row>
<vi-row class="row" :gutter="12" :justify="'center'">
<vi-col class="col" :span="6" >
<div class="grid-content bg-purple">r</div>
</vi-col>
<vi-col class="col" :span="5" >
<div class="grid-content bg-purple-light">o</div>
</vi-col>
<vi-col class="col" :span="9" >
<div class="grid-content bg-purple">l</div>
</vi-col>
</vi-row>
</div> -->
<hr>
<br>
<div class="layout">
<vi-container>
<vi-header>header</vi-header>
<vi-main>main</vi-main>
<vi-footer>footer</vi-footer>
</vi-container>
<vi-container>
<vi-aside>aside</vi-aside>
<vi-container>
<vi-header>header</vi-header>
<vi-main>main</vi-main>
<vi-footer>footer</vi-footer>
</vi-container>
</vi-container>
</div>
<div class="toast test">
<button @click="showToast">点我</button>
<button @click="showToast1">点我1</button>
<button @click="showToast2">点我2</button>
<button @click="showToast3">点我3</button>
<button @click="showToast4">点我4</button>
</div>
<vi-tabs class="tabs" :selected.sync="selectedTab">
<vi-tabs-bar color="teal" space="around" line-color="aqua">
<vi-tabs-item name="woman" line-color="aqua">标签1</vi-tabs-item>
<vi-tabs-item name="finance" line-color="aqua">标签2</vi-tabs-item>
<vi-tabs-item name="sport" line-color="aqua">标签3</vi-tabs-item>
</vi-tabs-bar>
<vi-tabs-body>
<vi-tabs-content name="woman">标签1的内容</vi-tabs-content>
<vi-tabs-content name="finance">标签2的内容</vi-tabs-content>
<vi-tabs-content name="sport">标签3的内容</vi-tabs-content>
</vi-tabs-body>
</vi-tabs>
<vi-tabs class="tabs" :selected.sync="selectedTab">
<vi-tabs-bar color="teal" space="between" line-color="aqua">
<vi-tabs-item name="woman" icon-name="loading">标签1</vi-tabs-item>
<vi-tabs-item name="finance" icon-name="loading">标签2</vi-tabs-item>
<vi-tabs-item name="sport" icon-name="sports">标签3</vi-tabs-item>
</vi-tabs-bar>
<vi-tabs-body>
<vi-tabs-content name="woman">标签1的内容</vi-tabs-content>
<vi-tabs-content name="finance">标签2的内容</vi-tabs-content>
<vi-tabs-content name="sport">标签3的内容</vi-tabs-content>
</vi-tabs-body>
</vi-tabs>
<vi-tabs class="tabs" :selected.sync="selectedTab">
<vi-tabs-bar color="teal" space="center" line-color="aqua">
<vi-tabs-item name="woman" icon-name="search" icon-size="large" position="right">标签1</vi-tabs-item>
<vi-tabs-item name="finance" icon-name="search" icon-size="large" position="right">标签2</vi-tabs-item>
<vi-tabs-item name="sport" icon-name="search" icon-size="large" position="right">标签3</vi-tabs-item>
</vi-tabs-bar>
<vi-tabs-body>
<vi-tabs-content name="woman">标签1的内容</vi-tabs-content>
<vi-tabs-content name="finance">标签2的内容</vi-tabs-content>
<vi-tabs-content name="sport">标签3的内容</vi-tabs-content>
</vi-tabs-body>
</vi-tabs>
<div class="popover" style="padding: 50px;border: 1px solid greenyellow;">
<vi-popover position="top">
<template slot="content">
<div>popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容</div>
</template>
<vi-button type="primary">点击</vi-button>
</vi-popover>
<vi-popover position="bottom">
<template slot="content">
<div>popoverhjkfdhforiegjiiogjjjjjjjjjjjjjjkdf</div>
</template>
<vi-button>点击</vi-button>
</vi-popover>
<vi-popover position="left">
<template slot="content">
<div>popover内容</div>
</template>
<vi-button type="primary">点击</vi-button>
</vi-popover>
<vi-popover position="right">
<template slot="content">
<div>popover内容popover内容popover内容</div>
</template>
<vi-button type="primary">点击</vi-button>
</vi-popover>
</div>
<div class="popover" style="overflow: hidden;padding-top: 50px;border: 1px solid greenyellow;">
<vi-popover position="bottom" trigger="hover">
<template slot="content">
<div>popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容popover内容</div>
</template>
<vi-button type="primary">点击</vi-button>
</vi-popover>
<vi-popover trigger="hover">
<template slot="content" >
<div>popoverhjkfdhforiegjiiogjjjjjjjjjjjjjjkdf</div>
</template>
<vi-button>点击</vi-button>
</vi-popover>
<vi-popover position="left" trigger="hover">
<template slot="content">
<div>popover内容</div>
</template>
<vi-button type="primary">点击</vi-button>
</vi-popover>
<vi-popover position="right" trigger="hover">
<template slot="content">
<div>popover内容popover内容popover内容</div>
</template>
<vi-button type="primary">点击</vi-button>
</vi-popover>
</div>
<div class="collapse" style="padding: 100px;">
<vi-collapse :selected.sync="selectedCola">
<vi-collapse-item title="标题1" name="1">内容1</vi-collapse-item>
<vi-collapse-item title="标题2" name="2">内容2</vi-collapse-item>
<vi-collapse-item title="标题3" name="3">内容3</vi-collapse-item>
</vi-collapse>
{{selectedCola}}
<br>
<vi-collapse :selected.sync="selectedCola1" single>
<vi-collapse-item title="标题1" name="1">内容1</vi-collapse-item>
<vi-collapse-item title="标题2" name="2">内容2</vi-collapse-item>
<vi-collapse-item title="标题3" name="3">内容3</vi-collapse-item>
</vi-collapse>
{{selectedCola1}}
<br>
<vi-collapse :selected.sync="selectedCola2" single>
<vi-collapse-item title="标题1" name="1">内容1</vi-collapse-item>
<vi-collapse-item title="标题2" name="2">内容2</vi-collapse-item>
<vi-collapse-item title="标题3" name="3">内容3</vi-collapse-item>
</vi-collapse>
{{selectedCola2}}
</div>
</div>
</body>
</html>