-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathindex.html
123 lines (84 loc) · 3.72 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8" />
<title>React UXcore Uploader</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="../node_modules/highlight.js/styles/github.css" />
<link rel="stylesheet" href="//g.alicdn.com/platform/common/s/1.1/global/global.css" />
<link rel="stylesheet" href="../node_modules/uxcore-kuma/dist/orange.css" />
<link rel="stylesheet" href="./dist/demo.css" />
<script src="../node_modules/spark-md5/spark-md5.min.js"></script>
<script src="../node_modules/babel-polyfill/dist/polyfill.min.js"></script>
<script src="../node_modules/es5-shim/es5-sham.min.js"></script>
<script src="../node_modules/react/umd/react.production.min.js"></script>
<script src="../node_modules/react-dom/umd/react-dom.production.min.js"></script>
</head>
<body>
<section class="page-header">
<h1 class="project-name">uxcore-uploader</h1>
<h2 class="project-tagline">Uxcore Uploader component for React</h2>
<a href="https://github.com/uxcore/uxcore-uploader" class="btn">View on GitHub</a>
<a href="https://github.com/uxcore/uxcore-uploader/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/uxcore/uxcore-uploader/tarball/master" class="btn">Download .tar.gz</a>
</section>
<section class="main-content">
<p><strong>安装</strong></p>
<pre><code class="shell">npm install uxcore-uploader</code></pre>
<p><strong>引入依赖库</strong></p>
<pre><code class="html">
<!--optional-->
<script src="path/to/spark-md5.js"></script>
<script src="path/to/es5-shim/es5-shim.min.js"></script>
<script src="path/to/es5-shim/es5-sham.min.js"></script></code></pre>
<p><strong>导入资源</strong></p>
<pre><code class="javascript">import Uploader, {Dropzoom} from 'uxcore-uploader';</code></pre>
<!--Sample 1-->
<h3>Sample1 - 图片上传</h3>
<div class="sample" id="sample1"></div>
<!--Sample 2-->
<h3>Sample2 - 预览上传</h3>
<div class="sample" id="sample2"></div>
<!--Sample 3-->
<h3>Sample3 - 只读样式图片</h3>
<div class="sample" id="sample3"></div>
<!--Sample 3-1-->
<h3>Sample3-1 - 只读样式附件</h3>
<div class="sample" id="sample3-1"></div>
<!--Sample 4-->
<h3>Sample4 - 图片可视化上传</h3>
<div class="sample" id="sample4"></div>
<!--Sample 4-1 -->
<h3>Sample4-1 - 图片可视化上传(无默认图)</h3>
<div class="sample" id="sample4-1"></div>
<!--Sample 5-->
<h3>Sample5 - 自动上传</h3>
<div class="sample" id="sample5"></div>
<!--Sample 6-->
<h3>Sample6 - 多文件上传</h3>
<div class="sample" id="sample6"></div>
<!--Sample 7-->
<h3>Sample7 - prefixCls="kuma-upload"</h3>
<div class="sample" id="sample7"></div>
<!--Sample 8-->
<h3>Sample8 - 包裹UI-1</h3>
<div class="sample" id="sample8"></div>
<!--Sample 9-->
<h3>Sample9 - 包裹UI-2</h3>
<div class="sample" id="sample9"></div>
<!--Sample 10-->
<h3>Sample10 - 文件预览</h3>
<div class="sample" id="sample10"></div>
<footer class="site-footer">
<span class="site-footer-owner">
<a href="https://github.com/uxcore/uxcore-uploader">uxcore-uploader</a>
is maintained by <a
href="https://github.com/uxcore">uxcore</a>.</span>
<span class="site-footer-credits">This page using the <a
href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a
href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>
</section>
<script src="./dist/demo.js"></script>
</body>
</html>