forked from dexteryy/CardKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.html
368 lines (322 loc) · 15.4 KB
/
list.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>CardKit Reference</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no">
<link href="static/css/main.css" rel="stylesheet">
<link href="css/shCoreDefault.css" rel="stylesheet">
<link href="css/console.css" rel="stylesheet">
<link href="css/common.css" rel="stylesheet">
<style>
.ck-list-unit code {
text-decoration:underline;
}
</style>
<script>function ckControl(){return false}</script>
</head>
<body ontouchstart="return ckControl()">
<div class="ck-root"><div class="ck-main">
<header class="ck-header">
<span class="ck-top-title">CardKit Ref</span>
<span class="ck-top-nav"></span>
<span class="ck-top-actions"></span>
<div class="ckcfg-navdrawer">
<div class="ckd-hd">
<h2>CardKit Reference</h2>
</div>
<div class="ckd-content">
<div class="search">
<a class="ck-modal-link" href="#"
data-url="formcontent.html">search</a>
</div>
<ul>
<li><a class="ck-link" href="index.html">Home</a></li>
</ul>
<h6>Cross-platform</h6>
<ul>
<li><a class="ck-link" href="grade.html">Graded Browser Support</a></li>
<li><a class="ck-link" href="browsers.html">Compatibility testing</a></li>
<li><a class="ck-link" href="#consoleCard">Console</a></li>
</ul>
<h6>Component</h6>
<ul>
<li><a class="ck-link" href="control.html">Control</a></li>
<li><a class="ck-link" href="picker.html">Picker</a></li>
<li><a class="ck-link" href="overlay.html">Overlay</a></li>
</ul>
<h6>Unit</h6>
<ul>
<li><a class="ck-link" href="box.html">Box</a></li>
<li><a class="ck-link" href="list.html">List</a></li>
<li><a class="ck-link" href="mini.html">Mini</a></li>
<li><a class="ck-link" href="form.html">Form</a></li>
<li><a class="ck-link" href="extra.html">Extra</a></li>
</ul>
</div>
</div>
<div class="ckcfg-card-actions">
</div>
<div class="ckcfg-page-actions">
<button type="button" class="ckd-overflow-item switchstyle">切换界面风格</button>
</div>
</header>
<div class="ck-wrapper">
<div class="ck-card" id="ckDefault">
<div class="ck-banner-unit topbox">
<h2>CardKit / Unit</h2>
</div>
<div class="ck-box-unit" data-cfg-paper="true">
<header class="ckd-hd">List Unit</header>
</div>
<div class="ck-list-unit" data-style="menu">
<header class="ckd-hd">Source code</header>
<a href="https://github.com/douban-f2e/CardKit/tree/master/tpl/unit/list.tpl" class="ckd-item ckd-link-extern">tpl/unit/list</a>
<a href="https://github.com/douban-f2e/CardKit/tree/master/js/cardkit/parser/list.js" class="ckd-item ckd-link-extern">cardkit/parser/list</a>
</div>
<div class="ck-list-unit" data-style="more" data-cfg-paper="true">
<a href="#consoleCard" class="ckd-item">Console</a>
<a href="#rawCard" class="ckd-item">Raw source</a>
<a href="#optionsCard" class="ckd-item">Configure options</a>
</div>
<div class="ck-box-unit" data-cfg-paper="true">
<header class="ckd-hd">Usages</header>
</div>
<!--demo-->
<div class="ck-list-unit"
data-style="more"
data-cfg-plainhd="true"
data-source="ckdListA">
<a class="ckd-hd" href="#hdLink">List ("more" style)</a>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="more"
data-cfg-plainhd="true">
<a class="ckd-hd" href="#hdLink">Blank list ("plain" header)</a>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="menu"
data-source="ckdListA">
<div class="ckd-hd">List ("menu" style)</div>
<a class="ckd-hd-link" href="#hdLink"></a>
<span class="ckd-hdopt" data-source="ckdSelectA"></span>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="menu">
<div class="ckd-hd">Blank list</div>
<a class="ckd-hd-link" href="#hdLink"></a>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="post"
data-cfg-plainhd="true"
data-source="ckdListA">
<div class="ckd-hd">List ("post" style)</div>
<span class="ckd-hdopt" data-source="ckdSelectA"></span>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="split"
data-source="ckdListA">
<div class="ckd-hd">List ("split" style)</div>
<a class="ckd-hd-link" href="#hdLink"></a>
<span class="ckd-hdopt" data-source="ckdSelectA"></span>
<div class="ckd-ft">This is footer</div>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="post"
data-cfg-paper="true"
data-source="ckdListA">
<div class="ckd-hd">List (Paper "post" style) ... ... ... ... ... ...</div>
<span class="ckd-hdopt" data-source="ckdSelectA"></span>
<div class="ckd-ft">This is footer</div>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="post"
data-cfg-paper="true">
<div class="ckd-hd">Blank list (Paper "post" style)</div>
</div>
<!--demo end-->
<!--demo-->
<div class="ck-list-unit"
data-style="grid"
data-cfg-plainhd="true"
data-cfg-col="3"
data-source="ckdListA">
<div class="ckd-hd">List ("grid" style)</div>
<div class="ckd-item" data-source="ckdItemA"></div>
<div class="ckd-item" data-source="ckdItemB"></div>
<div class="ckd-item" data-source="ckdItemA"></div>
<div class="ckd-item" data-source="ckdItemB"></div>
</div>
<!--demo end-->
</div>
<div class="ck-card" id="hdLink" data-cfg-blank="Link of header">
</div>
<div class="ck-card" id="titleLink" data-cfg-blank="Link of title">
</div>
<div class="ck-card" id="authorLink" data-cfg-blank="Link of author">
</div>
<div class="ck-card" id="consoleCard">
<div class="ck-box-unit" data-cfg-paper="true">
<header class="ckd-hd">Console</header>
<div id="console"></div>
</div>
<script type="text/cardscript">
this.addEventListener('card:ready', function(e){
require(['mo/console'], function(console){
console.config({
record: false,
output: e.card.find('#console')[0]
});
});
});
</script>
</div>
<div class="ck-card" id="rawCard">
<div class="ck-box-unit" data-cfg-plainhd="true">
<header class="ckd-hd">Raw source</header>
<div class="ck-folder enabled"
data-disable-label="Hide the code"
data-label="header">
<header>Hide the code</header>
<div class="democode content" gsource="rawData1"></div>
</div>
</div>
</div>
<div class="ck-card" id="optionsCard">
</div>
<div class="ck-card ck-loading" id="ckLoading">
<div>
<p><span></span><span></span><span></span></p>
<p>加载中...</p>
</div>
</div>
<footer class="ck-footer">
<div class="copyright">© 2005-2012 douban.com, all rights reserved</div>
</footer>
</div>
<div class="ck-raw" id="rawData1">
<div class="ckd-source ckdListA">
<div class="ckd-item ckdItemA">
<img class="ckd-icon ckdItemAIcon" src="http://img3.douban.com/lpic/s1959726.jpg">
<a class="ckd-title ckdItemATitle" href="#titleLink">This is <code>title</code></a>
<span class="ckd-title-tag"><code>tag</code>1</span>
<span class="ckd-info ckdItemAInfo"><code>info</code></span>
<span class="ckd-desc ckdItemADesc">This is <code>desc</code> or <code>subtitle</code></span>
<span class="ckd-content ckdItemAContent">This is <code>content</code> A.</span>
<span class="ckd-content ckdItemAContent">This is content B.</span>
<span class="ckd-content ckdItemAContent">This is content C.</span>
<span class="ckd-content ckdItemAContent">This is content D.</span>
<span class="ckd-content ckdItemAContent">This is content E.</span>
<span class="ckd-content ckdItemAContent">This is content F.</span>
<span class="ckd-content ckdItemAContent">This is content G.</span>
<span class="ckd-meta ckdItemAMeta">This is <code>meta</code> A</span>
<span class="ckd-meta ckdItemAMeta">This is <code>meta</code> B</span>
<img class="ckd-avatar ckdItemAAvatar" src="http://img3.douban.com/icon/ul1137591-9.jpg">
<a class="ckd-author ckdItemAAuthor" href="#">This is <code>author</code></a>
<a class="ckd-author-link ckdItemAAuthorLink" href="#authorLink"></a>
<span class="ckd-author-prefix"><code>author-prefix</code></span>
<span class="ckd-author-suffix"><code>author-Suffix</code></span>
<span class="ckd-author-desc ckdItemAAuthorDesc">This is <code>author-desc</code> A</span>
<span class="ckd-author-desc ckdItemAAuthorDesc">This is <code>author-desc</code> B</span>
<span class="ckd-author-meta ckdItemAAuthorMeta">This is <code>author-meta</code></span>
</div>
<div class="ckd-item ckdItemB">
<img class="ckd-icon ckdItemBIcon" src="http://img5.douban.com/lpic/s25812589.jpg">
<span class="ckd-title ckdItemBTitle">This is <code>title</code> (open index.html in a new window)</span>
<a class="ckd-title-link-extern ckdItemBTitleLink" href="index.html"></a>
<!-- or:
<a class="ckd-title-link ckdItemBTitleLink" href="index.html"></a>
-->
<button type="button" class="ckd-opt ckdItemBOpt ck-modal-button" data-url="formcontent.html">i</button>
<span class="ckd-content ckdItemBContent">This is <code>content</code> A.</span>
<span class="ckd-content ckdItemBContent">This is content B.</span>
<span class="ckd-content ckdItemBContent">This is content C.</span>
<span class="ckd-content ckdItemBContent">This is content D.</span>
<span class="ckd-content ckdItemBContent">This is content E.</span>
<span class="ckd-content ckdItemBContent">This is content F.</span>
<span class="ckd-content ckdItemBContent">This is content G.</span>
<span class="ckd-content ckdItemBContent">This is content H.</span>
<span class="ckd-content ckdItemBContent">This is content I.</span>
<span class="ckd-content ckdItemBContent">This is content J.</span>
<span class="ckd-content ckdItemBContent">This is content K.</span>
<span class="ckd-meta ckdItemBMeta">This is <code>meta</code></span>
<img class="ckd-avatar ckdItemBAvatar" src="http://img3.douban.com/icon/ul24955975-13.jpg">
<a class="ckd-author ckdItemBAuthor" href="#authorLink">This is <code>author</code></a>
<span class="ckd-author-prefix"><code>author-prefix</code></span>
<span class="ckd-author-suffix"><code>author-Suffix</code></span>
<span class="ckd-author-desc ckdItemBAuthorDesc">This is <code>author-desc</code></span>
<span class="ckd-author-meta ckdItemBAuthorMeta">This is <code>author-meta</code></span>
</div>
<a class="ckd-item ckd-title-link-extern ckdItemE" href="index.html">This is <code>title</code></a>
<div class="ckd-item ckdItemC">
<span class="ckd-title">This is <code>title</code></span>
<span class="ckd-title-prefix"><code>prefix</code></span>
<span class="ckd-title-suffix"><code>Suffix</code></span>
<span class="ckd-title-tag"><code>tag</code>1</span>
<span class="ckd-title-tag"><code>tag</code>2</span>
<span class="ckd-info"><code>info</code></span>
<span class="ckd-desc">This is <code>desc</code> or <code>subtitle</code></span>
<span class="ckd-content">This is <code>content</code> A.</span>
<span class="ckd-content">This is content B.</span>
<span class="ckd-content">This is content C.</span>
<span class="ckd-content">This is content D.</span>
<span class="ckd-meta">This is <code>meta</code> A</span>
<span class="ckd-meta">This is <code>meta</code> B</span>
<a class="ckd-author" href="#authorLink">This is <code>author</code></a>
<span class="ckd-author-suffix"><code>author-Suffix</code></span>
<span class="ckd-author-info"><code>author-info</code></span>
<span class="ckd-author-meta">This is <code>author-meta</code></span>
</div>
<div class="ckd-item ckdItemD">
<img class="ckd-icon ckdItemAIcon" src="http://img3.douban.com/icon/ul1137591-9.jpg">
<a class="ckd-title ckd-title-link-alone ckd-title-link-extern" href="index.html">This is <code>title</code></a>
<span class="ckd-info"><code>info</code></span>
<span class="ckd-desc">This is <code>desc</code> or <code>subtitle</code></span>
<span class="ckd-content">This is <code>content</code> A.</span>
<span class="ckd-content">This is content B.</span>
<span class="ckd-content">This is content C.</span>
<span class="ckd-content">This is content D.</span>
<span class="ckd-meta">This is <code>meta</code> A</span>
<span class="ckd-meta">This is <code>meta</code> B</span>
<a class="ckd-author ckd-author-link-extern" href="index.html">This is <code>author</code></a>
<span class="ckd-author-info"><code>author-info</code></span>
<span class="ckd-author-desc">This is <code>author-desc</code></span>
<span class="ckd-author-meta">This is <code>author-meta</code></span>
</div>
</div>
<a href="#" class="ckdSelectA ckd-hdopt ck-modal-link" data-url="formcontent.html">Edit</a>
<button type="button" class="ck-select ckdSelectA ckd-hdopt"
data-fluid="true"
data-title="Choose the page">
<span>Filter</span>
<a href="picker.html" class="ck-option" target="_self">picker.html</a>
<a href="control.html" class="ck-option" target="_self">control.html</a>
<a href="index.html" class="ck-option" target="_self">index.html</a>
</button>
</div>
</div></div>
<script src="js/shCore.js"></script>
<script src="js/shBrushXml.js"></script>
<script src="js/shBrushJScript.js"></script>
<script src="static/js/main.js"></script>
<!-- COLLECTED JS -->
<script id="jsdemo1">
</script>
<script src="js/common.js"></script>
</body>
</html>