-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (28 loc) · 11.5 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Ant Design Pro Generator | Codetrial</title>
<meta name="description" content="Codetrial 相关项目官方文档">
<link rel="icon" href="/logo.png">
<link rel="preload" href="/assets/css/0.styles.25a19db8.css" as="style"><link rel="preload" href="/assets/js/app.ce9406c5.js" as="script"><link rel="preload" href="/assets/js/3.9439ee4d.js" as="script"><link rel="preload" href="/assets/js/8.c8aee36a.js" as="script"><link rel="preload" href="/assets/js/4.3a202793.js" as="script"><link rel="prefetch" href="/assets/js/10.8592d631.js"><link rel="prefetch" href="/assets/js/11.f3914cff.js"><link rel="prefetch" href="/assets/js/12.5779ca7d.js"><link rel="prefetch" href="/assets/js/13.14237679.js"><link rel="prefetch" href="/assets/js/14.f87f6e17.js"><link rel="prefetch" href="/assets/js/15.c1e279a2.js"><link rel="prefetch" href="/assets/js/16.9b681a3f.js"><link rel="prefetch" href="/assets/js/17.32a8db7d.js"><link rel="prefetch" href="/assets/js/18.9f283422.js"><link rel="prefetch" href="/assets/js/19.d65d1264.js"><link rel="prefetch" href="/assets/js/20.a699d921.js"><link rel="prefetch" href="/assets/js/21.4348454a.js"><link rel="prefetch" href="/assets/js/22.7983bbb5.js"><link rel="prefetch" href="/assets/js/23.34865231.js"><link rel="prefetch" href="/assets/js/24.a777064d.js"><link rel="prefetch" href="/assets/js/25.def07cba.js"><link rel="prefetch" href="/assets/js/26.82131356.js"><link rel="prefetch" href="/assets/js/27.2e5123d5.js"><link rel="prefetch" href="/assets/js/28.4b0fe011.js"><link rel="prefetch" href="/assets/js/29.53a3f67b.js"><link rel="prefetch" href="/assets/js/30.57b1d29f.js"><link rel="prefetch" href="/assets/js/31.9aed76e2.js"><link rel="prefetch" href="/assets/js/32.f6c13dfd.js"><link rel="prefetch" href="/assets/js/5.78f997ba.js"><link rel="prefetch" href="/assets/js/6.8ac54e21.js"><link rel="prefetch" href="/assets/js/7.d32245a6.js"><link rel="prefetch" href="/assets/js/9.783bfd8b.js"><link rel="prefetch" href="/assets/js/vendors~notification.950601c6.js">
<link rel="stylesheet" href="/assets/css/0.styles.25a19db8.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">Codetrial</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/guide/" class="nav-link">指南</a></div><div class="nav-item"><a href="/antd-pro/" class="nav-link router-link-exact-active router-link-active">Yo Antd Pro</a></div><div class="nav-item"><a href="/element-admin/" class="nav-link">Element Admin</a></div><div class="nav-item"><a href="/gotauth/" class="nav-link">GOT Auth</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">更多</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/wishtodo/" class="nav-link">Wishtodo</a></li><li class="dropdown-item"><!----> <a href="/egg-token/" class="nav-link">Egg Token</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">选择语言</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/antd-pro/" class="nav-link router-link-exact-active router-link-active">简体中文</a></li><li class="dropdown-item"><!----> <a href="/en/antd-pro/" class="nav-link">English</a></li></ul></div></div> <a href="https://github.com/codetrial" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/guide/" class="nav-link">指南</a></div><div class="nav-item"><a href="/antd-pro/" class="nav-link router-link-exact-active router-link-active">Yo Antd Pro</a></div><div class="nav-item"><a href="/element-admin/" class="nav-link">Element Admin</a></div><div class="nav-item"><a href="/gotauth/" class="nav-link">GOT Auth</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">更多</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/wishtodo/" class="nav-link">Wishtodo</a></li><li class="dropdown-item"><!----> <a href="/egg-token/" class="nav-link">Egg Token</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">选择语言</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/antd-pro/" class="nav-link router-link-exact-active router-link-active">简体中文</a></li><li class="dropdown-item"><!----> <a href="/en/antd-pro/" class="nav-link">English</a></li></ul></div></div> <a href="https://github.com/codetrial" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <!----> </div> <div class="page"> <div class="content default"><h1 id="ant-design-pro-generator"><a href="#ant-design-pro-generator" aria-hidden="true" class="header-anchor">#</a> Ant Design Pro Generator</h1> <p>基于 Yeoman 的 Ant Design Pro 命令行工具,支持拉取最新模板或从本地创建一个简单版本。</p> <p>在线预览:</p> <ul><li>简单模板 - <a href="https://generator-antd-pro.netlify.com" target="_blank" rel="noopener noreferrer">Yo Antd Pro<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul> <p><img src="https://user-images.githubusercontent.com/2902215/50769859-3ee92b80-12c0-11e9-85be-f94b3980502d.gif" alt="Screen Capture"></p> <p>仓库地址:</p> <ul><li>Generator - <a href="https://github.com/codetrial/generator-antd-pro" target="_blank" rel="noopener noreferrer">codetrial/generator-antd-pro<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li> <li>Demo - <a href="https://github.com/felixpy/generator-antd-pro-simple" target="_blank" rel="noopener noreferrer">Yo Antd Pro<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul> <p>主要技术:</p> <ul><li>Yeoman</li> <li>Ant Design Pro</li></ul> <h2 id="使用文档"><a href="#使用文档" aria-hidden="true" class="header-anchor">#</a> 使用文档</h2> <h3 id="前置依赖"><a href="#前置依赖" aria-hidden="true" class="header-anchor">#</a> 前置依赖</h3> <p>在开始前,你必须先安装 Yeoman 命令行工具:</p> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">npm</span> <span class="token function">install</span> -g yo
<span class="token comment"># OR</span>
yarn global add yo
</code></pre></div><h3 id="安装"><a href="#安装" aria-hidden="true" class="header-anchor">#</a> 安装</h3> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">npm</span> <span class="token function">install</span> -g generator-antd-pro
<span class="token comment"># OR</span>
yarn global add generator-antd-pro
</code></pre></div><h3 id="创建项目"><a href="#创建项目" aria-hidden="true" class="header-anchor">#</a> 创建项目</h3> <h4 id="完整模板"><a href="#完整模板" aria-hidden="true" class="header-anchor">#</a> 完整模板</h4> <p>直接从 Ant Design Pro 官方仓库下载:</p> <div class="language-bash extra-class"><pre class="language-bash"><code>yo antd-pro
</code></pre></div><h4 id="简单模板"><a href="#简单模板" aria-hidden="true" class="header-anchor">#</a> 简单模板</h4> <p>只包含简单的列表页及表单页,删除了各种冗余文件:</p> <div class="language-bash extra-class"><pre class="language-bash"><code>yo antd-pro:simple
</code></pre></div></div> <div class="page-edit"><div class="edit-link"><a href="https://github.com/codetrial/docs/edit/master/docs/antd-pro/README.md" target="_blank" rel="noopener noreferrer">在 GitHub 上编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">上次更新: </span> <span class="time">2019-1-7 21:19:36</span></div></div> <!----> </div></div><div class="global-ui"><!----><!----></div></div>
<script src="/assets/js/app.ce9406c5.js" defer></script><script src="/assets/js/3.9439ee4d.js" defer></script><script src="/assets/js/8.c8aee36a.js" defer></script><script src="/assets/js/4.3a202793.js" defer></script>
</body>
</html>