1
|
-<style>
|
|
|
2
|
- .demo-page {
|
|
|
3
|
- padding: 10px;
|
|
|
4
|
- }
|
|
|
5
|
-
|
|
|
6
|
- .demo-page .title {
|
|
|
7
|
- padding: 10px 0;
|
|
|
8
|
- }
|
|
|
9
|
-
|
|
|
10
|
- .demo-page .btn {
|
|
|
11
|
- margin-bottom: 10px;
|
|
|
12
|
- }
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
- .demo-page .icon_lists span{
|
|
|
16
|
- float: left;
|
|
|
17
|
- width: 50px;
|
|
|
18
|
- height: 30px;
|
|
|
19
|
- text-align: center;
|
|
|
20
|
- margin-top: 10px;
|
|
|
21
|
- }
|
|
|
22
|
-
|
|
|
23
|
- .demo-page .modality {
|
|
|
24
|
- color: #219dd6;
|
|
|
25
|
- }
|
|
|
26
|
-
|
|
|
27
|
- .demo-page .modality span{
|
|
|
28
|
- font-size: 20px;
|
|
|
29
|
- }
|
|
|
30
|
-
|
|
|
31
|
- .demo-page .sort {
|
|
|
32
|
- color: #999;
|
|
|
33
|
- }
|
|
|
34
|
-
|
|
|
35
|
- .demo-page .sort span {
|
|
|
36
|
- font-size: 20px;
|
|
|
37
|
- }
|
|
|
38
|
-</style>
|
|
|
39
|
-<div class="demo-page blk-page">
|
|
|
40
|
- {{# content}}
|
|
|
41
|
- <p class="title">1.复选按钮</p>
|
|
|
42
|
- {{#each checkbox}}
|
|
|
43
|
- {{> icon/checkbox}}
|
|
|
44
|
- <br><br>
|
|
|
45
|
- {{/each}}
|
|
|
46
|
-
|
|
|
47
|
- <p class="title">2.单选按钮</p>
|
|
|
48
|
- {{#each radio}}
|
|
|
49
|
- {{> icon/radio}}
|
|
|
50
|
- <br><br>
|
|
|
51
|
- {{/each}}
|
|
|
52
|
-
|
|
|
53
|
- <p class="title">2.1 选中状态切换</p>
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
- {{#each genders}}
|
|
|
57
|
- <div class="input-radio" data-value="{{value}}">
|
|
|
58
|
- {{> icon/radio}}
|
|
|
59
|
- <label>{{name}}</label>
|
|
|
60
|
- </div>
|
|
|
61
|
- {{/each}}
|
|
|
62
|
-
|
|
|
63
|
- {{#each genders}}
|
|
|
64
|
- <div class="input-checkbox" data-value="{{value}}">
|
|
|
65
|
- {{> icon/checkbox}}
|
|
|
66
|
- <label>{{name}}</label>
|
|
|
67
|
- </div>
|
|
|
68
|
- {{/each}}
|
|
|
69
|
-
|
|
|
70
|
- <div class="check-msg"></div>
|
|
|
71
|
-
|
|
|
72
|
- <p class="title">3. 按钮</p>
|
|
|
73
|
- <span class="btn">普通按钮</span>
|
|
|
74
|
- <span class="btn disable">不可点按钮</span>
|
|
|
75
|
- <span class="btn red">红色按钮</span>
|
|
|
76
|
- <span class="btn white">白色按钮</span>
|
|
|
77
|
-
|
|
|
78
|
- <p class="title">4. 提示文字或者某些链接文字颜色</p>
|
|
|
79
|
- <span class="blue">提示文字</span>
|
|
|
80
|
- <a class="blue">Link text</a>
|
|
|
81
|
-
|
|
|
82
|
- <p class="title">5. input</p>
|
|
|
83
|
- <input class="input" type="text">
|
|
|
84
|
-
|
|
|
85
|
- <p class="bold title">6.文字加粗</p>
|
|
|
86
|
-
|
|
|
87
|
- <p class="title">7. 浮动和clearfix</p>
|
|
|
88
|
- <div class="clearfix" style="width: 300px;border: 1px solid #000;">
|
|
|
89
|
- <p class="left">左浮动</p>
|
|
|
90
|
- <p class="right">右浮动</p>
|
|
|
91
|
- </div>
|
|
|
92
|
-
|
|
|
93
|
- <p class="title">8. 显示和隐藏</p>
|
|
|
94
|
- <div style="border: 1px solid #000;">
|
|
|
95
|
- <p><span class="hide">我是存在的</span>(左边有个家伙消失啦)</p>
|
|
|
96
|
- <p><span class="block">我是block</span></p>
|
|
|
97
|
- <p><span class="inline-block" style="height: 30px;border:1px solid #f00;">我是inline-block,我原本是inline元素,现在可以设置高度了</span></p>
|
|
|
98
|
- <p><span class="vhide">我是存在的</span>(左边有个家伙隐身了)</p>
|
|
|
99
|
- </div>
|
|
|
100
|
-
|
|
|
101
|
- <p class="title">9. 分页组件</p>
|
|
|
102
|
- <div style="border: 1px solid #000; height: 200px; padding: 5px;">
|
|
|
103
|
- {{{ pagination paginationOpts }}}
|
|
|
104
|
- </div>
|
|
|
105
|
-
|
|
|
106
|
- <p class="title">10. 商品信息</p>
|
|
|
107
|
- {{# goods}}
|
|
|
108
|
- {{> goods}}
|
|
|
109
|
- {{/ goods}}
|
|
|
110
|
-
|
|
|
111
|
- <p class="title">11. 面包屑</p>
|
|
|
112
|
- {{# navPath}}
|
|
|
113
|
- {{> path-nav}}
|
|
|
114
|
- {{/ navPath}}
|
|
|
115
|
-
|
|
|
116
|
- <p class="title">12. 楼层</p>
|
|
|
117
|
- {{# floor}}
|
|
|
118
|
- {{> floor}}
|
|
|
119
|
- {{/ floor}}
|
|
|
120
|
-
|
|
|
121
|
- <p class="title">13. 各类图标</p>
|
|
|
122
|
- <div style="border: 1px solid #000;overflow: hidden;">
|
|
|
123
|
- <ul class="icon_lists clear">
|
|
|
124
|
- <div class="modality">
|
|
|
125
|
- {{> icon/truck}}
|
|
|
126
|
- {{# hook}}
|
|
|
127
|
- {{> icon/round-hook}}
|
|
|
128
|
- {{/ hook}}
|
|
|
129
|
- {{> icon/error-round}}
|
|
|
130
|
- {{> icon/doubt}}
|
|
|
131
|
- {{# warn}}
|
|
|
132
|
- {{> icon/warn}}
|
|
|
133
|
- {{/ warn}}
|
|
|
134
|
- </div>
|
|
|
135
|
-
|
|
|
136
|
- <div class="sort">
|
|
|
137
|
- {{> icon/clock}}
|
|
|
138
|
- {{> icon/praise}}
|
|
|
139
|
- {{> icon/delete}}
|
|
|
140
|
- {{> icon/up}}
|
|
|
141
|
- {{> icon/down}}
|
|
|
142
|
- {{> icon/solid-round}}
|
|
|
143
|
- {{> icon/collection}}
|
|
|
144
|
- {{> icon/bookmarks}}
|
|
|
145
|
- {{> icon/refresh}}
|
|
|
146
|
- {{> icon/headset}}
|
|
|
147
|
- </div>
|
|
|
148
|
- </ul>
|
|
|
149
|
- </div>
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
- <p style="margin-top: 20px;">14. 区域/选择地址组件</p>
|
|
|
153
|
- <div style="padding: 5px; height: 300px;">
|
|
|
154
|
- <p>使用手册详见yohoblk/public/js/plugins/README.md</p>
|
|
|
155
|
- <div id="address"></div>
|
|
|
156
|
- </div>
|
|
|
157
|
-
|
|
|
158
|
- <p class="title">14. tips</p>
|
|
|
159
|
- <div>
|
|
|
160
|
- <button id="change" >show or hide tip</button>
|
|
|
161
|
- </div>
|
|
|
162
|
- <div id="tips" style="width: 200px;">
|
|
|
163
|
- <input style="width: 100%;" type="text" name="" id="">
|
|
|
164
|
- </div>
|
|
|
165
|
-
|
|
|
166
|
- <p class="title">15. 头像</p>
|
|
|
167
|
-
|
|
|
168
|
- <div>
|
|
|
169
|
- <img class="avatar" src="http://devlup.com/wp-content/uploads/2013/07/images.jpg" alt="Braden Hamm">
|
|
|
170
|
- </div>
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
- <p class="title">16. 对话框(弹窗)</p>
|
|
|
174
|
- <span class="btn alert-btn">alert</span>
|
|
|
175
|
- <span class="btn red confirm-btn">confirm</span>
|
|
|
176
|
- <span class="btn white dialog-btn">dialog</span>
|
|
|
177
|
-
|
|
|
178
|
- <p class="title">17. 分享</p>
|
|
|
179
|
- {{> share}}
|
|
|
180
|
-
|
|
|
181
|
- {{/ content}}
|
|
|
182
|
- </div>
|
|
|
183
|
-
|
|
|
184
|
-</div> |
|
|
|
|
1
|
+<style>
|
|
|
2
|
+ .demo-page {
|
|
|
3
|
+ padding: 10px;
|
|
|
4
|
+ }
|
|
|
5
|
+
|
|
|
6
|
+ .demo-page .title {
|
|
|
7
|
+ padding: 10px 0;
|
|
|
8
|
+ }
|
|
|
9
|
+
|
|
|
10
|
+ .demo-page .btn {
|
|
|
11
|
+ margin-bottom: 10px;
|
|
|
12
|
+ }
|
|
|
13
|
+
|
|
|
14
|
+
|
|
|
15
|
+ .demo-page .icon_lists span{
|
|
|
16
|
+ float: left;
|
|
|
17
|
+ width: 50px;
|
|
|
18
|
+ height: 30px;
|
|
|
19
|
+ text-align: center;
|
|
|
20
|
+ margin-top: 10px;
|
|
|
21
|
+ }
|
|
|
22
|
+
|
|
|
23
|
+ .demo-page .modality {
|
|
|
24
|
+ color: #219dd6;
|
|
|
25
|
+ }
|
|
|
26
|
+
|
|
|
27
|
+ .demo-page .modality span{
|
|
|
28
|
+ font-size: 20px;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+ .demo-page .sort {
|
|
|
32
|
+ color: #999;
|
|
|
33
|
+ }
|
|
|
34
|
+
|
|
|
35
|
+ .demo-page .sort span {
|
|
|
36
|
+ font-size: 20px;
|
|
|
37
|
+ }
|
|
|
38
|
+
|
|
|
39
|
+ .your-div {
|
|
|
40
|
+ width: 500px;
|
|
|
41
|
+ height: 200px;
|
|
|
42
|
+ }
|
|
|
43
|
+</style>
|
|
|
44
|
+<div class="demo-page blk-page">
|
|
|
45
|
+ {{# content}}
|
|
|
46
|
+ <p class="title">1.复选按钮</p>
|
|
|
47
|
+ {{#each checkbox}}
|
|
|
48
|
+ {{> icon/checkbox}}
|
|
|
49
|
+ <br><br>
|
|
|
50
|
+ {{/each}}
|
|
|
51
|
+
|
|
|
52
|
+ <p class="title">2.单选按钮</p>
|
|
|
53
|
+ {{#each radio}}
|
|
|
54
|
+ {{> icon/radio}}
|
|
|
55
|
+ <br><br>
|
|
|
56
|
+ {{/each}}
|
|
|
57
|
+
|
|
|
58
|
+ <p class="title">2.1 选中状态切换</p>
|
|
|
59
|
+
|
|
|
60
|
+
|
|
|
61
|
+ {{#each genders}}
|
|
|
62
|
+ <div class="input-radio" data-value="{{value}}">
|
|
|
63
|
+ {{> icon/radio}}
|
|
|
64
|
+ <label>{{name}}</label>
|
|
|
65
|
+ </div>
|
|
|
66
|
+ {{/each}}
|
|
|
67
|
+
|
|
|
68
|
+ {{#each genders}}
|
|
|
69
|
+ <div class="input-checkbox" data-value="{{value}}">
|
|
|
70
|
+ {{> icon/checkbox}}
|
|
|
71
|
+ <label>{{name}}</label>
|
|
|
72
|
+ </div>
|
|
|
73
|
+ {{/each}}
|
|
|
74
|
+
|
|
|
75
|
+ <div class="check-msg"></div>
|
|
|
76
|
+
|
|
|
77
|
+ <p class="title">3. 按钮</p>
|
|
|
78
|
+ <span class="btn">普通按钮</span>
|
|
|
79
|
+ <span class="btn disable">不可点按钮</span>
|
|
|
80
|
+ <span class="btn red">红色按钮</span>
|
|
|
81
|
+ <span class="btn white">白色按钮</span>
|
|
|
82
|
+
|
|
|
83
|
+ <p class="title">4. 提示文字或者某些链接文字颜色</p>
|
|
|
84
|
+ <span class="blue">提示文字</span>
|
|
|
85
|
+ <a class="blue">Link text</a>
|
|
|
86
|
+
|
|
|
87
|
+ <p class="title">5. input</p>
|
|
|
88
|
+ <input class="input" type="text">
|
|
|
89
|
+
|
|
|
90
|
+ <p class="bold title">6.文字加粗</p>
|
|
|
91
|
+
|
|
|
92
|
+ <p class="title">7. 浮动和clearfix</p>
|
|
|
93
|
+ <div class="clearfix" style="width: 300px;border: 1px solid #000;">
|
|
|
94
|
+ <p class="left">左浮动</p>
|
|
|
95
|
+ <p class="right">右浮动</p>
|
|
|
96
|
+ </div>
|
|
|
97
|
+
|
|
|
98
|
+ <p class="title">8. 显示和隐藏</p>
|
|
|
99
|
+ <div style="border: 1px solid #000;">
|
|
|
100
|
+ <p><span class="hide">我是存在的</span>(左边有个家伙消失啦)</p>
|
|
|
101
|
+ <p><span class="block">我是block</span></p>
|
|
|
102
|
+ <p><span class="inline-block" style="height: 30px;border:1px solid #f00;">我是inline-block,我原本是inline元素,现在可以设置高度了</span></p>
|
|
|
103
|
+ <p><span class="vhide">我是存在的</span>(左边有个家伙隐身了)</p>
|
|
|
104
|
+ </div>
|
|
|
105
|
+
|
|
|
106
|
+ <p class="title">9. 分页组件</p>
|
|
|
107
|
+ <div style="border: 1px solid #000; height: 200px; padding: 5px;">
|
|
|
108
|
+ {{{ pagination paginationOpts }}}
|
|
|
109
|
+ </div>
|
|
|
110
|
+
|
|
|
111
|
+ <p class="title">10. 商品信息</p>
|
|
|
112
|
+ {{# goods}}
|
|
|
113
|
+ {{> goods}}
|
|
|
114
|
+ {{/ goods}}
|
|
|
115
|
+
|
|
|
116
|
+ <p class="title">11. 面包屑</p>
|
|
|
117
|
+ {{# navPath}}
|
|
|
118
|
+ {{> path-nav}}
|
|
|
119
|
+ {{/ navPath}}
|
|
|
120
|
+
|
|
|
121
|
+ <p class="title">12. 楼层</p>
|
|
|
122
|
+ {{# floor}}
|
|
|
123
|
+ {{> floor}}
|
|
|
124
|
+ {{/ floor}}
|
|
|
125
|
+
|
|
|
126
|
+ <p class="title">13. 各类图标</p>
|
|
|
127
|
+ <div style="border: 1px solid #000;overflow: hidden;">
|
|
|
128
|
+ <ul class="icon_lists clear">
|
|
|
129
|
+ <div class="modality">
|
|
|
130
|
+ {{> icon/truck}}
|
|
|
131
|
+ {{# hook}}
|
|
|
132
|
+ {{> icon/round-hook}}
|
|
|
133
|
+ {{/ hook}}
|
|
|
134
|
+ {{> icon/error-round}}
|
|
|
135
|
+ {{> icon/doubt}}
|
|
|
136
|
+ {{# warn}}
|
|
|
137
|
+ {{> icon/warn}}
|
|
|
138
|
+ {{/ warn}}
|
|
|
139
|
+ </div>
|
|
|
140
|
+
|
|
|
141
|
+ <div class="sort">
|
|
|
142
|
+ {{> icon/clock}}
|
|
|
143
|
+ {{> icon/praise}}
|
|
|
144
|
+ {{> icon/delete}}
|
|
|
145
|
+ {{> icon/up}}
|
|
|
146
|
+ {{> icon/down}}
|
|
|
147
|
+ {{> icon/solid-round}}
|
|
|
148
|
+ {{> icon/collection}}
|
|
|
149
|
+ {{> icon/bookmarks}}
|
|
|
150
|
+ {{> icon/refresh}}
|
|
|
151
|
+ {{> icon/headset}}
|
|
|
152
|
+ </div>
|
|
|
153
|
+ </ul>
|
|
|
154
|
+ </div>
|
|
|
155
|
+
|
|
|
156
|
+
|
|
|
157
|
+ <p style="margin-top: 20px;">14. 区域/选择地址组件</p>
|
|
|
158
|
+ <div style="padding: 5px; height: 300px;">
|
|
|
159
|
+ <p>使用手册详见yohoblk/public/js/plugins/README.md</p>
|
|
|
160
|
+ <div id="address"></div>
|
|
|
161
|
+ </div>
|
|
|
162
|
+
|
|
|
163
|
+ <p class="title">14. tips</p>
|
|
|
164
|
+ <div>
|
|
|
165
|
+ <button id="change" >show or hide tip</button>
|
|
|
166
|
+ </div>
|
|
|
167
|
+ <div id="tips" style="width: 200px;">
|
|
|
168
|
+ <input style="width: 100%;" type="text" name="" id="">
|
|
|
169
|
+ </div>
|
|
|
170
|
+
|
|
|
171
|
+ <p class="title">15. 头像</p>
|
|
|
172
|
+
|
|
|
173
|
+ <div>
|
|
|
174
|
+ <img class="avatar" src="http://devlup.com/wp-content/uploads/2013/07/images.jpg" alt="Braden Hamm">
|
|
|
175
|
+ </div>
|
|
|
176
|
+
|
|
|
177
|
+
|
|
|
178
|
+ <p class="title">16. 对话框(弹窗)</p>
|
|
|
179
|
+ <span class="btn alert-btn">alert</span>
|
|
|
180
|
+ <span class="btn red confirm-btn">confirm</span>
|
|
|
181
|
+ <span class="btn white dialog-btn">dialog</span>
|
|
|
182
|
+
|
|
|
183
|
+ <p class="title">17. 分享</p>
|
|
|
184
|
+ {{> share}}
|
|
|
185
|
+
|
|
|
186
|
+
|
|
|
187
|
+ <p class="title">18. 个性化滚动条</p>
|
|
|
188
|
+
|
|
|
189
|
+ <div class="your-div nano">
|
|
|
190
|
+ <div class="nano-content">
|
|
|
191
|
+ <pre>
|
|
|
192
|
+ // html 添加样式 .nano .nano-content
|
|
|
193
|
+ <div class="your-div nano">
|
|
|
194
|
+ <div class="nano-content">
|
|
|
195
|
+ your content...
|
|
|
196
|
+ </div>
|
|
|
197
|
+ </div>
|
|
|
198
|
+
|
|
|
199
|
+
|
|
|
200
|
+ // js
|
|
|
201
|
+
|
|
|
202
|
+ require('yoho-jquery-nanoscroller');
|
|
|
203
|
+ $('.nano').nanoScroller();
|
|
|
204
|
+ </pre>
|
|
|
205
|
+ </div>
|
|
|
206
|
+ </div>
|
|
|
207
|
+ {{/ content}}
|
|
|
208
|
+ </div>
|
|
|
209
|
+
|
|
|
210
|
+</div> |