{"componentChunkName":"component---antv-gatsby-theme-antv-site-templates-document-tsx","path":"/zh/docs/other/introduce","result":{"data":{"site":{"siteMetadata":{"title":"Choerodon UI","githubUrl":"https://github.com/open-hand/choerodon-ui","docs":[]},"pathPrefix":"/choerodon-ui"},"markdownRemark":{"html":"<div><p>自研 DataSet 数据源，基于 DataSet 结合组件，实现数据驱动，符合低代码理念，专为中后台企业项目提高开发效率而生，稳定强大。</p><h2 id=\"特性\" style=\"position:relative;\"><a href=\"#%E7%89%B9%E6%80%A7\" aria-label=\"特性 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>特性</h2><ul>\n<li>提炼自企业级中后台产品的交互语言和视觉风格。</li>\n<li>开箱即用的高质量 React 组件。</li>\n<li>使用 TypeScript 构建，提供完整的类型定义文件。</li>\n<li>全链路开发和设计工具体系。</li>\n<li>开发高效，支持稳定。</li>\n</ul><h2 id=\"支持环境\" style=\"position:relative;\"><a href=\"#%E6%94%AF%E6%8C%81%E7%8E%AF%E5%A2%83\" aria-label=\"支持环境 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>支持环境</h2><ul>\n<li>现代浏览器和 IE9 及以上（需要 polyfills）。</li>\n<li>支持服务端渲染。</li>\n<li><a href=\"http://electron.atom.io/\" target=\"_self\" rel=\"nofollow\">Electron</a></li>\n</ul><table>\n  <tr>\n    <th>Edge</th>\n    <th>Firefox</th>\n    <th>Chrome</th>\n    <th>Safari (macOS)</th>\n    <th>IE</th>\n  </tr>\n  <tr>\n    <td>>= 91</td>\n    <td>>= 78</td>\n    <td>>= 90</td>\n    <td>>= 14</td>\n    <td>11 (partial support) </td>\n  </tr>\n</table><p>我们对 IE9/10 提供有限度的支持，部分样式和动画在 IE9/10 下的表现会比较裸。少数组件使用到了 Flex 布局，在 IE9/10 下也会有问题。\n某些组件的支持已降级。 例如，轮廓输入边框半径缺失，组合框未删除变音符号，圆形进度动画摇摆不定，表格虚拟滚动等。</p><p>对于 IE 系列浏览器，需要提供相应的 Polyfill 支持，建议使用 babel-preset-env 来解决浏览器兼容问题。如果你在使用 umi，可以直接使用 targets 配置。</p><h2 id=\"版本\" style=\"position:relative;\"><a href=\"#%E7%89%88%E6%9C%AC\" aria-label=\"版本 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>版本</h2><ul>\n<li>稳定版：<a href=\"https://www.npmjs.org/package/choerodon-ui\" target=\"_self\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/v/choerodon-ui.svg?style=flat-square\" alt=\"npm package\"></a></li>\n</ul><h2 id=\"安装\" style=\"position:relative;\"><a href=\"#%E5%AE%89%E8%A3%85\" aria-label=\"安装 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>安装</h2><h3 id=\"使用-npm-或-yarn-安装\" style=\"position:relative;\"><a href=\"#%E4%BD%BF%E7%94%A8-npm-%E6%88%96-yarn-%E5%AE%89%E8%A3%85\" aria-label=\"使用 npm 或 yarn 安装 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>使用 npm 或 yarn 安装</h3><p><strong>我们推荐使用 npm 或 yarn 的方式进行开发</strong>，不仅可在开发环境轻松调试，也可放心地在生产环境打包部署使用，享受整个生态圈和工具链带来的诸多好处。</p><div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">$ <span class=\"token function\">npm</span> <span class=\"token function\">install</span> choerodon-ui <span class=\"token parameter variable\">--save</span></code></pre></div><div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">$ <span class=\"token function\">yarn</span> <span class=\"token function\">add</span> choerodon-ui</code></pre></div><p>如果你的网络环境不佳，推荐使用 <a href=\"https://github.com/cnpm/cnpm\" target=\"_self\" rel=\"nofollow\">cnpm</a>。</p><h3 id=\"浏览器引入\" style=\"position:relative;\"><a href=\"#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%BC%95%E5%85%A5\" aria-label=\"浏览器引入 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>浏览器引入</h3><p>在浏览器中使用 <code class=\"language-text\">script</code> 和 <code class=\"language-text\">link</code> 标签直接引入文件，并使用全局变量 <code class=\"language-text\">choerodon-ui</code>。</p><p>我们在 npm 发布包内的 <code class=\"language-text\">choerodon-ui/dist</code> 目录下提供了 <code class=\"language-text\">choerodon-ui.js</code> <code class=\"language-text\">choerodon-ui.css</code> 以及 <code class=\"language-text\">choerodon-ui.min.js</code> <code class=\"language-text\">choerodon-ui.min.css</code>。你也可以通过 <a href=\"https://unpkg.com/choerodon-ui/dist/\" target=\"_self\" rel=\"nofollow\">UNPKG</a> 进行下载。</p><blockquote>\n<p><strong>强烈不推荐使用已构建文件</strong>，这样无法按需加载，而且难以获得底层依赖模块的 bug 快速修复支持。</p>\n</blockquote><h2 id=\"示例\" style=\"position:relative;\"><a href=\"#%E7%A4%BA%E4%BE%8B\" aria-label=\"示例 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>示例</h2><div class=\"gatsby-highlight\" data-language=\"jsx\"><pre class=\"language-jsx\"><code class=\"language-jsx\"><span class=\"token keyword\">import</span> <span class=\"token punctuation\">{</span> DatePicker <span class=\"token punctuation\">}</span> <span class=\"token keyword\">from</span> <span class=\"token string\">'choerodon-ui'</span><span class=\"token punctuation\">;</span>\nReactDOM<span class=\"token punctuation\">.</span><span class=\"token function\">render</span><span class=\"token punctuation\">(</span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span><span class=\"token class-name\">DatePicker</span></span> <span class=\"token punctuation\">/></span></span><span class=\"token punctuation\">,</span> mountNode<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre></div><p>引入样式：</p><div class=\"gatsby-highlight\" data-language=\"jsx\"><pre class=\"language-jsx\"><code class=\"language-jsx\"><span class=\"token keyword\">import</span> <span class=\"token string\">'choerodon-ui/dist/choerodon-ui.css'</span><span class=\"token punctuation\">;</span> <span class=\"token comment\">// or 'choerodon-ui/dist/choerodon-ui.less'</span></code></pre></div><h3 id=\"按需加载\" style=\"position:relative;\"><a href=\"#%E6%8C%89%E9%9C%80%E5%8A%A0%E8%BD%BD\" aria-label=\"按需加载 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>按需加载</h3><p>下面两种方式都可以只加载用到的组件。</p><ul>\n<li>\n<p>使用 <a href=\"https://github.com/ant-design/babel-plugin-import\" target=\"_self\" rel=\"nofollow\">babel-plugin-import</a>（推荐）。</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token comment\">// .babelrc or babel-loader option</span>\n<span class=\"token punctuation\">{</span>\n<span class=\"token property\">\"plugins\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">[</span>\n  <span class=\"token punctuation\">[</span>\n    <span class=\"token string\">\"import\"</span><span class=\"token punctuation\">,</span>\n    <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">\"libraryName\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"choerodon-ui\"</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"libraryDirectory\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"es\"</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"style\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"css\"</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">]</span> <span class=\"token comment\">// `style: true` 会加载 less 文件</span>\n<span class=\"token punctuation\">]</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<blockquote>\n<p>注意：webpack 1 无需设置 <code class=\"language-text\">libraryDirectory</code>。</p>\n</blockquote>\n<p>然后只需从 choerodon-ui 引入模块即可，无需单独引入样式。等同于下面手动引入的方式。</p>\n<div class=\"gatsby-highlight\" data-language=\"jsx\"><pre class=\"language-jsx\"><code class=\"language-jsx\"><span class=\"token comment\">// babel-plugin-import 会帮助你加载 JS 和 CSS</span>\n<span class=\"token keyword\">import</span> <span class=\"token punctuation\">{</span> DatePicker <span class=\"token punctuation\">}</span> <span class=\"token keyword\">from</span> <span class=\"token string\">'choerodon-ui'</span><span class=\"token punctuation\">;</span></code></pre></div>\n</li>\n<li>\n<p>手动引入</p>\n<div class=\"gatsby-highlight\" data-language=\"jsx\"><pre class=\"language-jsx\"><code class=\"language-jsx\"><span class=\"token keyword\">import</span> DatePicker <span class=\"token keyword\">from</span> <span class=\"token string\">'choerodon-ui/lib/date-picker'</span><span class=\"token punctuation\">;</span> <span class=\"token comment\">// 加载 JS</span>\n<span class=\"token keyword\">import</span> <span class=\"token string\">'choerodon-ui/lib/date-picker/style/css'</span><span class=\"token punctuation\">;</span> <span class=\"token comment\">// 加载 CSS</span>\n<span class=\"token comment\">// import 'choerodon-ui/lib/date-picker/style';         // 加载 LESS</span></code></pre></div>\n</li>\n</ul><h2 id=\"谁在使用\" style=\"position:relative;\"><a href=\"#%E8%B0%81%E5%9C%A8%E4%BD%BF%E7%94%A8\" aria-label=\"谁在使用 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>谁在使用</h2><ul>\n<li><a href=\"https://www.hand-china.com/\" target=\"_self\" rel=\"nofollow\">汉得信息</a></li>\n<li><a href=\"https://www.zknow.com/\" target=\"_self\" rel=\"nofollow\">甄知科技</a></li>\n<li><a href=\"https://www.going-link.com/\" target=\"_self\" rel=\"nofollow\">甄云科技</a></li>\n<li><a href=\"https://zone.hand-china.com/#/\" target=\"_self\" rel=\"nofollow\">甄一科技</a></li>\n<li><a href=\"https://www.dingyi-china.cn/\" target=\"_self\" rel=\"nofollow\">鼎医信息</a></li>\n<li><a href=\"https://www.1mabc.com/\" target=\"_self\" rel=\"nofollow\">1m筑造</a></li>\n<li><a href=\"https://www.onecontract-cloud.com/\" target=\"_self\" rel=\"nofollow\">甄零一诺</a>\n...</li>\n</ul><h2 id=\"如何贡献\" style=\"position:relative;\"><a href=\"#%E5%A6%82%E4%BD%95%E8%B4%A1%E7%8C%AE\" aria-label=\"如何贡献 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>如何贡献</h2><p>在任何形式的参与前，请先阅读 <a href=\"https://open.hand-china.com/choerodon-ui/zh/docs/other/CONTRIBUTING\" target=\"_self\" rel=\"nofollow\">贡献者文档</a>。如果你希望参与贡献，欢迎 <a href=\"https://github.com/open-hand/choerodon-ui/pulls\" target=\"_self\" rel=\"nofollow\">Pull Request</a>，或给我们 <a href=\"https://github.com/open-hand/choerodon-ui/issues\" target=\"_self\" rel=\"nofollow\">报告 Bug</a>。</p><blockquote>\n<p>强烈推荐阅读 <a href=\"https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way\" target=\"_self\" rel=\"nofollow\">《提问的智慧》</a>、<a href=\"https://github.com/seajs/seajs/issues/545\" target=\"_self\" rel=\"nofollow\">《如何向开源社区提问题》</a> 和 <a href=\"http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html\" target=\"_self\" rel=\"nofollow\">《如何有效地报告 Bug》</a>、<a href=\"https://zhuanlan.zhihu.com/p/25795393\" target=\"_self\" rel=\"nofollow\">《如何向开源项目提交无法解答的问题》</a>，更好的问题更容易获得帮助。</p>\n</blockquote></div>","htmlAst":{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"自研 DataSet 数据源，基于 DataSet 结合组件，实现数据驱动，符合低代码理念，专为中后台企业项目提高开发效率而生，稳定强大。"}]},{"type":"element","tagName":"h2","properties":{"id":"特性","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E7%89%B9%E6%80%A7","ariaLabel":"特性 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"特性"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"提炼自企业级中后台产品的交互语言和视觉风格。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"开箱即用的高质量 React 组件。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"使用 TypeScript 构建，提供完整的类型定义文件。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"全链路开发和设计工具体系。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"开发高效，支持稳定。"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"h2","properties":{"id":"支持环境","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E6%94%AF%E6%8C%81%E7%8E%AF%E5%A2%83","ariaLabel":"支持环境 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"支持环境"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"现代浏览器和 IE9 及以上（需要 polyfills）。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"支持服务端渲染。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"http://electron.atom.io/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"Electron"}]}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n  "},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Edge"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Firefox"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Chrome"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Safari (macOS)"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"IE"}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":">= 91"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":">= 78"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":">= 90"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":">= 14"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"11 (partial support) "}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"我们对 IE9/10 提供有限度的支持，部分样式和动画在 IE9/10 下的表现会比较裸。少数组件使用到了 Flex 布局，在 IE9/10 下也会有问题。\n某些组件的支持已降级。 例如，轮廓输入边框半径缺失，组合框未删除变音符号，圆形进度动画摇摆不定，表格虚拟滚动等。"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"对于 IE 系列浏览器，需要提供相应的 Polyfill 支持，建议使用 babel-preset-env 来解决浏览器兼容问题。如果你在使用 umi，可以直接使用 targets 配置。"}]},{"type":"element","tagName":"h2","properties":{"id":"版本","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E7%89%88%E6%9C%AC","ariaLabel":"版本 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"版本"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"稳定版："},{"type":"element","tagName":"a","properties":{"href":"https://www.npmjs.org/package/choerodon-ui","target":"_self","rel":["nofollow"]},"children":[{"type":"element","tagName":"img","properties":{"src":"https://img.shields.io/npm/v/choerodon-ui.svg?style=flat-square","alt":"npm package"},"children":[]}]}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"h2","properties":{"id":"安装","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E5%AE%89%E8%A3%85","ariaLabel":"安装 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"安装"}]},{"type":"element","tagName":"h3","properties":{"id":"使用-npm-或-yarn-安装","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E4%BD%BF%E7%94%A8-npm-%E6%88%96-yarn-%E5%AE%89%E8%A3%85","ariaLabel":"使用 npm 或 yarn 安装 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"使用 npm 或 yarn 安装"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"我们推荐使用 npm 或 yarn 的方式进行开发"}]},{"type":"text","value":"，不仅可在开发环境轻松调试，也可放心地在生产环境打包部署使用，享受整个生态圈和工具链带来的诸多好处。"}]},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"$ "},{"type":"element","tagName":"span","properties":{"className":["token","function"]},"children":[{"type":"text","value":"npm"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","function"]},"children":[{"type":"text","value":"install"}]},{"type":"text","value":" choerodon-ui "},{"type":"element","tagName":"span","properties":{"className":["token","parameter","variable"]},"children":[{"type":"text","value":"--save"}]}]}]}]},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"$ "},{"type":"element","tagName":"span","properties":{"className":["token","function"]},"children":[{"type":"text","value":"yarn"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","function"]},"children":[{"type":"text","value":"add"}]},{"type":"text","value":" choerodon-ui"}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"如果你的网络环境不佳，推荐使用 "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/cnpm/cnpm","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"cnpm"}]},{"type":"text","value":"。"}]},{"type":"element","tagName":"h3","properties":{"id":"浏览器引入","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%BC%95%E5%85%A5","ariaLabel":"浏览器引入 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"浏览器引入"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"在浏览器中使用 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"script"}]},{"type":"text","value":" 和 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"link"}]},{"type":"text","value":" 标签直接引入文件，并使用全局变量 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui"}]},{"type":"text","value":"。"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"我们在 npm 发布包内的 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui/dist"}]},{"type":"text","value":" 目录下提供了 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui.js"}]},{"type":"text","value":" "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui.css"}]},{"type":"text","value":" 以及 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui.min.js"}]},{"type":"text","value":" "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui.min.css"}]},{"type":"text","value":"。你也可以通过 "},{"type":"element","tagName":"a","properties":{"href":"https://unpkg.com/choerodon-ui/dist/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"UNPKG"}]},{"type":"text","value":" 进行下载。"}]},{"type":"element","tagName":"blockquote","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"强烈不推荐使用已构建文件"}]},{"type":"text","value":"，这样无法按需加载，而且难以获得底层依赖模块的 bug 快速修复支持。"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"h2","properties":{"id":"示例","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E7%A4%BA%E4%BE%8B","ariaLabel":"示例 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"示例"}]},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"jsx"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":" DatePicker "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"from"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":"\nReactDOM"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","function"]},"children":[{"type":"text","value":"render"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"("}]},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"element","tagName":"span","properties":{"className":["token","class-name"]},"children":[{"type":"text","value":"DatePicker"}]}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"/>"}]}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":" mountNode"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":")"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"引入样式："}]},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"jsx"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui/dist/choerodon-ui.css'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// or 'choerodon-ui/dist/choerodon-ui.less'"}]}]}]}]},{"type":"element","tagName":"h3","properties":{"id":"按需加载","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E6%8C%89%E9%9C%80%E5%8A%A0%E8%BD%BD","ariaLabel":"按需加载 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"按需加载"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"下面两种方式都可以只加载用到的组件。"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"使用 "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/ant-design/babel-plugin-import","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"babel-plugin-import"}]},{"type":"text","value":"（推荐）。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"json"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-json"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// .babelrc or babel-loader option"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"plugins\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"["}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"["}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"import\""}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"\n      "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"libraryName\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"choerodon-ui\""}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n      "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"libraryDirectory\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"es\""}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n      "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"style\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"css\""}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"]"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// `style: true` 会加载 less 文件"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"]"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"注意：webpack 1 无需设置 "},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"libraryDirectory"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"然后只需从 choerodon-ui 引入模块即可，无需单独引入样式。等同于下面手动引入的方式。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"jsx"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// babel-plugin-import 会帮助你加载 JS 和 CSS"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":" DatePicker "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"from"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]}]}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"手动引入"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"jsx"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" DatePicker "},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"from"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui/lib/date-picker'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// 加载 JS"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui/lib/date-picker/style/css'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// 加载 CSS"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","comment"]},"children":[{"type":"text","value":"// import 'choerodon-ui/lib/date-picker/style';         // 加载 LESS"}]}]}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"h2","properties":{"id":"谁在使用","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E8%B0%81%E5%9C%A8%E4%BD%BF%E7%94%A8","ariaLabel":"谁在使用 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"谁在使用"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.hand-china.com/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"汉得信息"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.zknow.com/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"甄知科技"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.going-link.com/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"甄云科技"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://zone.hand-china.com/#/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"甄一科技"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.dingyi-china.cn/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"鼎医信息"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.1mabc.com/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"1m筑造"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.onecontract-cloud.com/","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"甄零一诺"}]},{"type":"text","value":"\n..."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"h2","properties":{"id":"如何贡献","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#%E5%A6%82%E4%BD%95%E8%B4%A1%E7%8C%AE","ariaLabel":"如何贡献 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"如何贡献"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"在任何形式的参与前，请先阅读 "},{"type":"element","tagName":"a","properties":{"href":"https://open.hand-china.com/choerodon-ui/zh/docs/other/CONTRIBUTING","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"贡献者文档"}]},{"type":"text","value":"。如果你希望参与贡献，欢迎 "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/open-hand/choerodon-ui/pulls","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"Pull Request"}]},{"type":"text","value":"，或给我们 "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/open-hand/choerodon-ui/issues","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"报告 Bug"}]},{"type":"text","value":"。"}]},{"type":"element","tagName":"blockquote","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"强烈推荐阅读 "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"《提问的智慧》"}]},{"type":"text","value":"、"},{"type":"element","tagName":"a","properties":{"href":"https://github.com/seajs/seajs/issues/545","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"《如何向开源社区提问题》"}]},{"type":"text","value":" 和 "},{"type":"element","tagName":"a","properties":{"href":"http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"《如何有效地报告 Bug》"}]},{"type":"text","value":"、"},{"type":"element","tagName":"a","properties":{"href":"https://zhuanlan.zhihu.com/p/25795393","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"《如何向开源项目提交无法解答的问题》"}]},{"type":"text","value":"，更好的问题更容易获得帮助。"}]},{"type":"text","value":"\n"}]}]},"tableOfContents":"<ul>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E7%89%B9%E6%80%A7\">特性</a></li>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E6%94%AF%E6%8C%81%E7%8E%AF%E5%A2%83\">支持环境</a></li>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E7%89%88%E6%9C%AC\">版本</a></li>\n<li>\n<p><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E5%AE%89%E8%A3%85\">安装</a></p>\n<ul>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E4%BD%BF%E7%94%A8-npm-%E6%88%96-yarn-%E5%AE%89%E8%A3%85\">使用 npm 或 yarn 安装</a></li>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%BC%95%E5%85%A5\">浏览器引入</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E7%A4%BA%E4%BE%8B\">示例</a></p>\n<ul>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E6%8C%89%E9%9C%80%E5%8A%A0%E8%BD%BD\">按需加载</a></li>\n</ul>\n</li>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E8%B0%81%E5%9C%A8%E4%BD%BF%E7%94%A8\">谁在使用</a></li>\n<li><a href=\"/choerodon-ui/zh/docs/other/introduce/#%E5%A6%82%E4%BD%95%E8%B4%A1%E7%8C%AE\">如何贡献</a></li>\n</ul>","fields":{"slug":"/zh/docs/other/introduce","readingTime":{"text":"5 min read","time":255000}},"frontmatter":{"title":"Choerodon UI of React"},"parent":{"__typename":"File","relativePath":"other/introduce.zh.md"}},"allMarkdownRemark":{"edges":[{"node":{"fields":{"slug":"/en/docs/other/introduce"},"frontmatter":{"title":"Choerodon UI of React","order":1}}},{"node":{"fields":{"slug":"/zh/docs/other/introduce"},"frontmatter":{"title":"Choerodon UI of React","order":1}}},{"node":{"fields":{"slug":"/en/docs/other/use-with-create-react-app"},"frontmatter":{"title":"Use in create-react-app","order":2}}},{"node":{"fields":{"slug":"/zh/docs/other/use-with-create-react-app"},"frontmatter":{"title":"在 create-react-app 中使用","order":2}}},{"node":{"fields":{"slug":"/en/docs/other/ued-theme"},"frontmatter":{"title":"Custom Theme","order":3}}},{"node":{"fields":{"slug":"/zh/docs/other/ued-theme"},"frontmatter":{"title":"主题切换","order":3}}},{"node":{"fields":{"slug":"/en/docs/other/ued-versions-association"},"frontmatter":{"title":"Themes Version Relationships","order":3}}},{"node":{"fields":{"slug":"/zh/docs/other/ued-versions-association"},"frontmatter":{"title":"主题依赖版本关系","order":3}}},{"node":{"fields":{"slug":"/zh/docs/other/customize-theme"},"frontmatter":{"title":"定制主题","order":4}}},{"node":{"fields":{"slug":"/zh/docs/other/recommendation"},"frontmatter":{"title":"社区精选组件","order":5}}},{"node":{"fields":{"slug":"/en/docs/other/recommendation"},"frontmatter":{"title":"Third-Party Libraries","order":5}}},{"node":{"fields":{"slug":"/zh/docs/other/i18n"},"frontmatter":{"title":"国际化","order":6}}},{"node":{"fields":{"slug":"/en/docs/other/i18n"},"frontmatter":{"title":"Internationalization","order":6}}},{"node":{"fields":{"slug":"/zh/docs/other/vscode-plugin"},"frontmatter":{"title":"Vscode 插件","order":7}}},{"node":{"fields":{"slug":"/en/docs/other/vscode-plugin"},"frontmatter":{"title":"Vscode plugin","order":7}}},{"node":{"fields":{"slug":"/zh/docs/other/typescript"},"frontmatter":{"title":"TypeScript 友好支持","order":8}}},{"node":{"fields":{"slug":"/en/docs/other/typescript"},"frontmatter":{"title":"TypeScript Friendly support","order":8}}},{"node":{"fields":{"slug":"/en/docs/other/CONTRIBUTING"},"frontmatter":{"title":"Contributing","order":9}}},{"node":{"fields":{"slug":"/zh/docs/other/CONTRIBUTING"},"frontmatter":{"title":"贡献指南","order":9}}},{"node":{"fields":{"slug":"/en/docs/other/release-cycle"},"frontmatter":{"title":"Release strategy","order":10}}},{"node":{"fields":{"slug":"/zh/docs/other/release-cycle"},"frontmatter":{"title":"发版策略","order":10}}},{"node":{"fields":{"slug":"/en/docs/other/big-number"},"frontmatter":{"title":"Large Numbers","order":20}}},{"node":{"fields":{"slug":"/zh/docs/other/big-number"},"frontmatter":{"title":"大数字","order":20}}},{"node":{"fields":{"slug":"/en/docs/other/only-key"},"frontmatter":{"title":"Explanation of Common Unique Key Scenarios for Components","order":21}}},{"node":{"fields":{"slug":"/zh/docs/other/only-key"},"frontmatter":{"title":"组件常见唯一 Key 场景说明","order":21}}},{"node":{"fields":{"slug":"/en/docs/other/ short-cut-key"},"frontmatter":{"title":"Keyboard Shortcuts","order":22}}},{"node":{"fields":{"slug":"/zh/docs/other/ short-cut-key"},"frontmatter":{"title":"快捷键","order":22}}},{"node":{"fields":{"slug":"/en/docs/other/style-restore-consideration"},"frontmatter":{"title":"Design & Style Restoration Development Notes","order":23}}},{"node":{"fields":{"slug":"/zh/docs/other/style-restore-consideration"},"frontmatter":{"title":"设计&样式还原开发注意事项","order":23}}},{"node":{"fields":{"slug":"/en/docs/other/version-upgrade"},"frontmatter":{"title":"Version Upgrade Guide","order":98}}},{"node":{"fields":{"slug":"/zh/docs/other/version-upgrade"},"frontmatter":{"title":"版本升级指南","order":98}}},{"node":{"fields":{"slug":"/en/docs/other/CHANGELOG"},"frontmatter":{"title":"Change Log","order":999}}},{"node":{"fields":{"slug":"/zh/docs/other/CHANGELOG"},"frontmatter":{"title":"更新日志","order":999}}},{"node":{"fields":{"slug":"/en/docs/other/customize-theme"},"frontmatter":{"title":"Custom theme","order":null}}}]}},"pageContext":{}},"staticQueryHashes":["3000541721","3000541721","653731124"]}