-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
905 lines (903 loc) · 34.6 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>UI P2P Lending</title>
<link rel="stylesheet" href="/dist/ui-p2p-lending.css">
<style>
body{
background-color: #f3f3f3;
}
.component-wrapper{
width: 1000px;
margin: 10px auto;
}
.component-title{
color: #A59882;
}
.component-desc{
color: #333;
line-height: 22px;
}
.component-desc code{
margin: 0 3px;
padding: 0 5px;
background-color: #EBE8DE;
border: 1px solid #C3C1B9;
}
.component-code{
position: relative;
margin: 30px 0;
padding: 30px 15px 0;
color: #62635F;
word-break: break-word;
background-color: #EBE8DE;
border: 1px solid #C3C1B9;
}
.component-code:before{
content: 'CODE';
position: absolute;
top: 0;
left: 0;
color: #62635F;
padding: 3px 15px;
background-color: #fff;
border-bottom: 1px solid #C3C1B9;
border-right: 1px solid #C3C1B9;
}
.presentation-grids *[class^=col]{
padding: 10px;
border: 1px solid #ccc;
background-color: #fff;
}
</style>
</head>
<body>
<div class="component-wrapper">
<h2 class="component-title">栅格系统</h2>
<p class="component-desc">可实现页面基本的排版布局,共分十二栏,总宽度默认为 1000 px,可在<code>settings.less</code>中进行配置。</p>
<div class="container presentation-grids">
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
</div>
<div class="container presentation-grids">
<div class="col-2">col-2</div>
<div class="col-10">col-10</div>
</div>
<pre class="component-code">
<div class="container">
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
<div class="col-1">col-1</div>
</div>
<div class="container">
<div class="col-2">col-2</div>
<div class="col-10">col-10</div>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">文字样式</h2>
<h3 class="component-desc text-dark">颜色(可在<code>settings.less</code>中进行配置):</h3>
<span class="text-danger">text-danger 危险</span>
<span class="text-warning">text-warning 警告</span>
<span class="text-calm">text-calm 冷静</span>
<span class="text-dream">text-dream 梦幻</span>
<span class="text-cute">text-cute 可爱</span>
<span class="text-growth">text-growth 生长</span>
<span class="text-dark">text-dark 黑暗</span>
<h3 class="component-desc text-dark">超链接:</h3>
<p>
<a href="javascript:;" class="text-danger">红色链接</a>
</p>
<h3 class="component-desc text-dark">对齐方式:</h3>
<p class="text-left">text-left 靠左对齐</p>
<p class="text-center">text-center 居中对齐</p>
<p class="text-right">text-right 靠右对齐</p>
<p class="text-indent">text-indent 首行缩进两个字符</p>
<p class="text-ellipsis">text-ellipsis CSS 3省略号:文字超出容器宽度时自动显示省略号,文字超出容器宽度时自动显示省略号,文字超出容器宽度时自动显示省略号,文字超出容器宽度时自动显示省略号</p>
<pre class="component-code">
<h3 class="component-desc text-dark">颜色(可在 <code>settings.less</code> 中进行配置):</h3>
<span class="text-danger">text-danger 危险</span>
<span class="text-warning">text-warning 警告</span>
<span class="text-calm">text-calm 冷静</span>
<span class="text-dream">text-dream 梦幻</span>
<span class="text-cute">text-cute 可爱</span>
<span class="text-growth">text-growth 生长</span>
<span class="text-dark">text-dark 黑暗</span>
<h3 class="component-desc text-dark">对齐方式:</h3>
<p class="text-left">text-left 靠左对齐</p>
<p class="text-center">text-center 居中对齐</p>
<p class="text-right">text-right 靠右对齐</p>
<p class="text-indent">text-indent 首行缩进两个字符</p>
<p class="text-ellipsis">text-ellipsis CSS 3省略号:文字超出容器宽度时自动显示省略号,文字超出容器宽度时自动显示省略号,文字超出容器宽度时自动显示省略号,文字超出容器宽度时自动显示省略号</p>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">标的组件</h2>
<p class="component-desc">基本的标列表样式及布局,利用栅格系统可以对每个属性的宽度进行修改。</p>
<div class="container">
<div class="col-8">
<div class="project-list">
<div class="project-item">
<h3>
<a href="javascript:;">项目名称</a>
</h3>
<div class="project-attr rate col-3">
<p class="project-attr-desc">预期年化收益率</p>
<strong class="project-attr-val">15%</strong>
</div>
<div class="project-attr periods col-2">
<p class="project-attr-desc">借款期限</p>
<strong class="project-attr-val">12 <small>天</small></strong>
</div>
<div class="project-attr amount col-4">
<p class="project-attr-desc">项目金额</p>
<strong class="project-attr-val">100000 <small>元</small></strong>
</div>
<div class="project-attr invest col-3">
<a href="javascript:;" class="button button-danger">立即投标</a>
</div>
</div>
</div>
</div>
</div>
<pre class="component-code">
<div class="project-list">
<div class="project-item">
<h3>
<a href="javascript:;">项目名称</a>
</h3>
<div class="project-attr rate col-3">
<p class="project-attr-desc">预期年化收益率</p>
<strong class="project-attr-val">15%</strong>
</div>
<div class="project-attr periods col-2">
<p class="project-attr-desc">借款期限</p>
<strong class="project-attr-val">12 <small>天</small></strong>
</div>
<div class="project-attr amount col-4">
<p class="project-attr-desc">项目金额</p>
<strong class="project-attr-val">100000 <small>元</small></strong>
</div>
<div class="project-attr invest col-3">
<button>立即投标</button>
</div>
</div>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">按钮样式</h2>
<button class="button">默认按钮</button>
<button class="button button-danger">危险按钮</button>
<button class="button button-warning">警告按钮</button>
<button class="button button-calm">蓝色按钮</button>
<button class="button button-dream">紫色按钮</button>
<button class="button button-cute">粉色按钮</button>
<button class="button button-growth">绿色按钮</button>
<button class="button button-dark">黑色按钮</button>
<p>
<button class="button button-clear">默认无边框背景按钮</button>
<button class="button button-danger button-clear">危险无边框背景按钮</button>
<button class="button button-warning button-clear">警告无边框背景按钮</button>
<button class="button button-calm button-clear">蓝色无边框背景按钮</button>
<button class="button button-dream button-clear">紫色无边框背景按钮</button>
<button class="button button-cute button-clear">粉色无边框背景按钮</button>
<button class="button button-growth button-clear">绿色无边框背景按钮</button>
<button class="button button-dark button-clear">黑色无边框背景按钮</button>
</p>
<p>
<button class="button button-calm" disabled="disabled">禁用状态按钮</button>
</p>
<p>
<button class="button button-block button-calm">块级按钮</button>
</p>
<pre class="component-code">
<button class="button">默认按钮</button>
<button class="button button-danger">危险按钮</button>
<button class="button button-warning">警告按钮</button>
<button class="button button-calm">蓝色按钮</button>
<button class="button button-dream">紫色按钮</button>
<button class="button button-cute">粉色按钮</button>
<button class="button button-growth">绿色按钮</button>
<p>
<button class="button button-clear">默认无边框背景按钮</button>
<button class="button button-danger button-clear">危险无边框背景按钮</button>
<button class="button button-warning button-clear">警告无边框背景按钮</button>
<button class="button button-calm button-clear">蓝色无边框背景按钮</button>
<button class="button button-dream button-clear">紫色无边框背景按钮</button>
<button class="button button-cute button-clear">粉色无边框背景按钮</button>
<button class="button button-growth button-clear">绿色无边框背景按钮</button>
<button class="button button-dark button-clear">黑色无边框背景按钮</button>
</p>
<p>
<button class=" button-calm" disabled="disabled">禁用状态按钮</button>
</p>
<p>
<button class=" button-block button-calm">块级按钮</button>
</p>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">表单样式</h2>
<p class="component-desc">
除垂直排列的表单之外,给<code>form</code>加上<code>form-inline</code>的 className,则会以行内表单样式呈现。
</p>
<p class="component-desc">
表单可具备三种状态:错误(红色)、警告(橙色)、成功(绿色),给<code>form-group</code>分别加上<code>form-group-error</code>、<code>form-group-warning</code>、<code>form-group-success</code>即可显示对应状态。
</p>
<div class="container">
<div class="col-2"></div>
<div class="col-8">
<form>
<div class="form-group form-group-error">
<label for="username" class="col-3 text-right">用户名:</label>
<input id="username" type="text" class="form-control">
<span class="form-control-note">*用户名为必填</span>
</div>
<div class="form-group">
<label for="lasttime" class="col-3 text-right">上次登录时间:</label>
<div class="input-group">
<input id="lasttime" type="text" class="form-control" readonly="readonly" value="123">
<span class="input-group-addon">只读</span>
</div>
</div>
<div class="form-group">
<label for="mobile_vcode" class="col-3 text-right">手机验证码:</label>
<div class="input-group">
<input id="mobile_vcode" type="text" class="form-control" readonly="readonly" value="123">
<span class="input-group-addon input-group-addon-button">
<button class="button" type="button">发送验证码</button>
</span>
</div>
</div>
<div class="form-group">
<label for="status-saved" class="col-3 text-right">登录状态保存:</label>
<div class="input-group">
<input id="status-saved" type="text" class="form-control" value="1">
<span class="input-group-addon input-group-addon-select">
<select class="form-control">
<option value="1">天</option>
<option value="2">个月</option>
</select>
</span>
</div>
</div>
<div class="form-group">
<label for="usertype" class="col-3 text-right">用户类型:</label>
<select id="usertype" class="form-control">
<option value="1">普通用户</option>
<option value="2">管理员</option>
</select>
</div>
<div class="form-group">
<label for="vcode" class="col-3 text-right">验证码:</label>
<input id="vcode" type="text" class="form-control form-control-small">
<a href="javascript:;">
<img src="https://www.baidu.com/img/bd_logo1.png" alt="验证码" class="form-vcode">
</a>
</div>
<div class="form-group">
<div class="col-3"></div>
<label class="checkbox">
<input type="checkbox">
记住我一星期
</label>
</div>
<div class="form-group">
<div class="col-3"></div>
<label class="radio">
<input type="radio" name="sex">
男
</label>
<label class="radio">
<input type="radio" name="sex">
女
</label>
</div>
<div class="form-group">
<div class="col-3"></div>
<textarea class="form-control"></textarea>
</div>
<div class="form-group">
<div class="col-3"></div>
<button class="button button-calm">立即登录</button>
</div>
</form>
</div>
<div class="col-2"></div>
</div>
<pre class="component-code">
<div class="container">
<div class="col-2"></div>
<div class="col-8">
<form>
<div class="form-group form-group-error">
<label for="username" class="col-3 text-right">用户名:</label>
<input id="username" type="text" class="form-control">
<span class="form-control-note">*用户名为必填</span>
</div>
<div class="form-group">
<label for="lasttime" class="col-3 text-right">上次登录时间:</label>
<div class="input-group">
<input id="lasttime" type="text" class="form-control" readonly="readonly" value="123">
<span class="input-group-addon">只读</span>
</div>
</div>
<div class="form-group">
<label for="mobile_vcode" class="col-3 text-right">手机验证码:</label>
<div class="input-group">
<input id="mobile_vcode" type="text" class="form-control" readonly="readonly" value="123">
<span class="input-group-addon input-group-addon-button">
<button class="button" type="button">发送验证码</button>
</span>
</div>
</div>
<div class="form-group">
<label for="status-saved" class="col-3 text-right">登录状态保存:</label>
<div class="input-group">
<input id="status-saved" type="text" class="form-control" value="1">
<span class="input-group-addon input-group-addon-select">
<select class="form-control">
<option value="1">天</option>
<option value="2">个月</option>
</select>
</span>
</div>
</div>
<div class="form-group">
<label for="usertype" class="col-3 text-right">用户类型:</label>
<select id="usertype" class="form-control">
<option value="1">普通用户</option>
<option value="2">管理员</option>
</select>
</div>
<div class="form-group">
<label for="vcode" class="col-3 text-right">验证码:</label>
<input id="vcode" type="text" class="form-control form-control-small">
<a href="javascript:;">
<img src="https://www.baidu.com/img/bd_logo1.png" alt="验证码" class="form-vcode">
</a>
</div>
<div class="form-group">
<div class="col-3"></div>
<label class="checkbox">
<input type="checkbox">
记住我一星期
</label>
</div>
<div class="form-group">
<div class="col-3"></div>
<label class="radio">
<input type="radio" name="sex">
男
</label>
<label class="radio">
<input type="radio" name="sex">
女
</label>
</div>
<div class="form-group">
<div class="col-3"></div>
<textarea class="form-control"></textarea>
</div>
<div class="form-group">
<div class="col-3"></div>
<button class="button button-calm">立即登录</button>
</div>
</form>
</div>
<div class="col-2"></div>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">信息提示样式</h2>
<div class="caution-box">
默认提示
</div>
<div class="caution-box caution-danger">
危险提示
</div>
<div class="caution-box caution-warning">
警告提示
</div>
<div class="caution-box caution-info">
信息提示
</div>
<div class="caution-box caution-success">
成功提示
</div>
<pre class="component-code">
<div class="caution-box">
默认提示
</div>
<div class="caution-box caution-danger">
危险提示
</div>
<div class="caution-box caution-warning">
警告提示
</div>
<div class="caution-box caution-info">
信息提示
</div>
<div class="caution-box caution-success">
成功提示
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">表格组件</h2>
<p class="component-desc">
表格组件提供默认的表格样式去除了 collapse 及 spacing,并且给 th 添加了下边框。与此同时也提供了<code>table-bordered</code>className 给表格加上边框、<code>table-hover</code>给表格加上鼠标悬浮效果、<code>table-striped</code>使<code>tbody</code>中奇数行与偶数行的背景颜色不一致。
</p>
<table class="table">
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>男</td>
<td>28</td>
</tr>
<tr>
<td>小丽</td>
<td>女</td>
<td>24</td>
</tr>
</tbody>
</table>
<table class="table table-bordered table-hover table-striped light-bg">
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th class="sorter desc">年龄</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>男</td>
<td>28</td>
</tr>
<tr>
<td>小丽</td>
<td>女</td>
<td>24</td>
</tr>
</tbody>
</table>
<pre class="component-code">
<table class="table">
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>男</td>
<td>28</td>
</tr>
<tr>
<td>小丽</td>
<td>女</td>
<td>24</td>
</tr>
</tbody>
</table>
<table class="table table-bordered table-hover table-striped light-bg">
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th class="sorter desc">年龄</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>男</td>
<td>28</td>
</tr>
<tr>
<td>小丽</td>
<td>女</td>
<td>24</td>
</tr>
</tbody>
</table>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">选项卡切换样式</h2>
<p class="component-desc">给<code>tabs-header</code>中的<code>li</code>标签和对应的<code>tabs-content</code>加上<code>active</code>className 则会选中中该选项卡。</p>
<p class="component-desc">
<span class="text-danger">注:暂不支持点击切换不同的选项卡</span>
</p>
<div class="tabs">
<ul class="tabs-header">
<li class="active">
<a href="javascript:;">工作经历</a>
</li>
<li>
<a href="javascript:;">曾获荣誉</a>
</li>
</ul>
<div class="tabs-content active">
<p>2011 家里蹲大学</p>
<p>2012 车库研究院</p>
<p>2015 社会大学</p>
</div>
<div class="tabs-content">
<p>2011 家里蹲大学</p>
<p>2012 车库研究院</p>
<p>2015 社会大学</p>
</div>
</div>
<pre class="component-code">
<div class="tabs">
<ul class="tabs-header">
<li class="active">
<a href="javascript:;">工作经历</a>
</li>
<li>
<a href="javascript:;">曾获荣誉</a>
</li>
</ul>
<div class="tabs-content active">
<p>2011 家里蹲大学</p>
<p>2012 车库研究院</p>
<p>2015 社会大学</p>
</div>
<div class="tabs-content">
<p>2011 家里蹲大学</p>
<p>2012 车库研究院</p>
<p>2015 社会大学</p>
</div>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">过滤器样式</h2>
<dl class="filter">
<dt>时间</dt>
<dd>
<input type="date" class="form-control">
</dd>
<dd>~</dd>
<dd>
<input type="date" class="form-control">
</dd>
<dt>成色</dt>
<dd class="active">
<a href="javascript:;">全新</a>
</dd>
<dd>
<a href="javascript:;">九成新</a>
</dd>
<dd>
<a href="javascript:;">八成新</a>
</dd>
</dl>
<pre class="component-code">
<dl class="filter">
<dt>时间</dt>
<dd>
<input type="date" class="form-control">
</dd>
<dd>~</dd>
<dd>
<input type="date" class="form-control">
</dd>
<dt>成色</dt>
<dd class="active">
<a href="javascript:;">全新</a>
</dd>
<dd>
<a href="javascript:;">九成新</a>
</dd>
<dd>
<a href="javascript:;">八成新</a>
</dd>
</dl>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">翻页按钮样式</h2>
<p class="component-desc">可以通过<code>text-center</code>和<code>text-right</code>使翻页器居中或靠右。</p><p class="component-desc">给其中的<code>a</code>、<code>span</code>标签添加<code>disabled</code>className 可以使其显示被禁用的样式,<span class="text-danger">但点击事件并不能真正的被禁用</span>。</p>
<div class="pagination text-center">
<a href="javascript:;" class="disabled">上一页</a>
<a href="javascript:;">1</a>
<a href="javascript:;">2</a>
<a href="javascript:;">3</a>
...
<a href="javascript:;">20</a>
<a href="javascript:;">下一页</a>
</div>
<pre class="component-code">
<div class="pagination text-center">
<a href="javascript:;" class="disabled">上一页</a>
<a href="javascript:;">1</a>
<a href="javascript:;">2</a>
<a href="javascript:;">3</a>
...
<a href="javascript:;">20</a>
<a href="javascript:;">下一页</a>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">标签组件</h2>
<p class="component-desc">加上label属性便变成一个标签,自动调整大小</p>
<span class="label">New</span>
<span class="label label-danger">New</span>
<span class="label label-warning">New</span>
<span class="label label-calm">New</span>
<span class="label label-cute">New</span>
<span class="label label-growth">New</span>
<span class="label label-dark">New</span>
<pre class="component-code">
<span class="label">New</span>
<span class="label label-danger">New</span>
<span class="label label-warning">New</span>
<span class="label label-calm">New</span>
<span class="label label-cute">New</span>
<span class="label label-dark">New</span>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">徽章组件</h2>
<p class="component-desc">分别为普通状态,在按钮中的状态。当不存在值时,就隐藏</p>
<p>
<span class="badge badge-danger">2</span>
<span class="badge badge-warning">2</span>
<span class="badge badge-calm">2</span>
<span class="badge badge-cute">2</span>
<span class="badge badge-growth">2</span>
<span class="badge badge-dark">2</span>
</p>
<button class="button button-danger">新消息<span class="badge">99</span></button>
<pre class="component-code">
<p>
<span class="badge badge-danger">2</span>
<span class="badge badge-warning">2</span>
<span class="badge badge-calm">2</span>
<span class="badge badge-cute">2</span>
<span class="badge badge-growth">2</span>
<span class="badge badge-dark">2</span>
</p>
<button class="button button-danger">新消息<span class="badge">99</span></button>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">消息提示组件</h2>
<p class="component-desc">定义消息位置:给<code>prompt-box-queue</code>元素加上<code>top-right</code>(右上方)、<code>bottom-right</code>(右下方)、<code>top-center</code>(中上方)、<code>bottom-center</code>(中下方)。</p>
<p class="component-desc">定义消息样式:给<code>prompt-box</code>元素加上<code>prompt-info</code>(蓝色信息框)、<code>prompt-danger</code>(红色错误框)、<code>prompt-success</code>(绿色成功框)。</p>
<p class="component-desc">
<span class="text-danger">
注意:暂无 JavaScript 代码,消息框的显示与隐藏需要额外编写 JavaScript 代码。
</span>
</p>
<div class="prompt-box-queue top-center" id="demo-prompt-queue" style="display: none;">
<div class="prompt-box">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>这是提示内容</p>
</div>
<div class="prompt-box prompt-info">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>有一个提示框出现了</p>
</div>
<div class="prompt-box prompt-danger">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>操作错误了</p>
</div>
<div class="prompt-box prompt-success">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>操作成功了</p>
</div>
<div class="prompt-box prompt-warning">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>操作将会影响到系统稳定</p>
</div>
</div>
<button class="button button-calm" onclick="document.getElementById('demo-prompt-queue').style.display = 'block'">点击显示消息提示框</button>
<pre class="component-code">
<div class="prompt-box-queue top-center" id="demo-prompt-queue" style="display: none;">
<div class="prompt-box">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>这是提示内容</p>
</div>
<div class="prompt-box prompt-info">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>有一个提示框出现了</p>
</div>
<div class="prompt-box prompt-danger">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>操作错误了</p>
</div>
<div class="prompt-box prompt-success">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>操作成功了</p>
</div>
<div class="prompt-box prompt-warning">
<i class="prompt-icon"></i>
<h3>系统提示</h3>
<p>操作将会影响到系统稳定</p>
</div>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">对话框组件</h2>
<p class="component-desc">如果需要模态背景,则给<code>dialog-container</code>加上<code>has-backdrop</code>的 className。</p>
<p class="component-desc">
<span class="text-danger">
注意:暂无 JavaScript 代码,对话框的显示与隐藏需要额外编写 JavaScript 代码。
</span>
</p>
<div class="dialog-container has-backdrop" id="demo-dialog">
<div class="dialog-box">
<h3>确认框</h3>
<p>您确定要继续吗?</p>
<div class="dialog-box-buttons">
<button class="button">取消</button>
<button class="button button-growth">确定</button>
</div>
</div>
</div>
<button class="button button-growth" onclick="document.getElementById('demo-dialog').className += ' active'">点击显示对话框</button>
<pre class="component-code">
<div class="dialog-container has-backdrop" id="demo-dialog">
<div class="dialog-box">
<h3>确认框</h3>
<p>您确定要继续吗?</p>
<div class="dialog-box-buttons">
<button class="button">取消</button>
<button class="button button-growth">确定</button>
</div>
</div>
</div>
</pre>
</div>
<div class="component-wrapper">
<h2 class="component-title">模态框组件</h2>
<p class="component-desc">
<span class="text-danger">
注意:暂无 JavaScript 代码,对话框的显示与隐藏需要额外编写 JavaScript 代码。
</span>
</p>
<div class="modal-container" id="demo-modal">
<div class="modal-box">
<h3>
请确认您的机票预定信息
<button class="button modal-close-button"></button>
</h3>
<div class="modal-content">
<table class="table table-bordered table-hover table-striped light-bg">
<thead>
<tr>
<th>乘机人</th>
<th>身份证号码</th>
<th>时间</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
<tr>
<td>李四</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
<tr>
<td>王麻子</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
<tr>
<td>二子</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-box-buttons">
<button class="button">返回修改</button>
<button class="button button-danger">确认无误</button>
</div>
</div>
</div>
<button class="button button-dream" onclick="document.getElementById('demo-modal').className += ' active'">点击显示模态框</button>
<pre class="component-code">
<div class="modal-container" id="demo-modal">
<div class="modal-box">
<h3>
请确认您的机票预定信息
<button class="button modal-close-button"></button>
</h3>
<div class="modal-content">
<table class="table table-bordered table-hover table-striped light-bg">
<thead>
<tr>
<th>乘机人</th>
<th>身份证号码</th>
<th>时间</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
<tr>
<td>李四</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
<tr>
<td>王麻子</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
<tr>
<td>二子</td>
<td>330284759238420192</td>
<td>2015-12-06</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-box-buttons">
<button class="button">返回修改</button>
<button class="button button-danger">确认无误</button>
</div>
</div>
</div>
</pre>
</div>
</body>
</html>