, TableState<
{ this.refTable = ref; }}
>
{
prefixCls?: string;
dropdownPrefixCls?: string;
noFilter?: boolean;
+ autoScroll?: boolean;
rowSelection?: TableRowSelection;
pagination?: TablePaginationConfig | false;
size?: 'default' | 'middle' | 'small';
diff --git a/package.json b/package.json
index a452e256ba..9dc431a21d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "choerodon-ui",
- "version": "0.4.5",
+ "version": "0.5.0",
"title": "Choerodon UI",
"description": "An enterprise-class UI design language and React-based implementation",
"homepage": "",
@@ -44,6 +44,7 @@
"async": "~0.9.0",
"async-validator": "1.x",
"babel-runtime": "6.x",
+ "choerodon-ui-font": "~0.0.1",
"classnames": "~2.2.0",
"component-classes": "1.x",
"core-js": "^2.5.1",
@@ -64,9 +65,9 @@
"object-assign": "^4.0.1",
"omit.js": "^1.0.0",
"prop-types": "^15.5.7",
+ "rc-editor-core": "~0.8.3",
"react-lazy-load": "^3.0.12",
"react-slick": "~0.22.3",
- "rc-editor-core": "~0.8.3",
"rmc-feedback": "^1.0.0",
"shallow-equal": "^1.0.0",
"shallowequal": "^1.0.1",
@@ -179,9 +180,9 @@
"sort-api": "node ./scripts/sort-api-table.js",
"dist": "antd-tools run dist",
"compile-rc": "node ./scripts/compile-rc.js",
- "compile": "antd-tools run compile && npm run compile-rc",
+ "compile": "antd-tools run compile && npm run compile-rc && node ./scripts/copyFont.js",
"tsc": "tsc",
- "start": "rimraf _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development BROWSER=chrome bisheng start -c ./site/bisheng.config.js",
+ "start": "node ./scripts/copyFont.js && rimraf _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development BROWSER=chrome bisheng start -c ./site/bisheng.config.js",
"start:preact": "node ./scripts/generateColorLess.js && cross-env NODE_ENV=development REACT_ENV=preact bisheng start -c ./site/bisheng.config.js",
"site": "cross-env NODE_ENV=production bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js",
"predeploy": "antd-tools run clean && npm run site && npm run autodev",
diff --git a/scripts/copyFont.js b/scripts/copyFont.js
new file mode 100644
index 0000000000..f446a4cf06
--- /dev/null
+++ b/scripts/copyFont.js
@@ -0,0 +1,10 @@
+const gulp = require('gulp');
+
+function copyFont(dir) {
+ gulp.src('node_modules/choerodon-ui-font/fonts/*')
+ .pipe(gulp.dest(dir));
+}
+
+copyFont('lib/style/core/fonts');
+copyFont('es/style/core/fonts');
+copyFont('components/style/core/fonts');
diff --git a/site/bisheng.config.js b/site/bisheng.config.js
index 63f7217a2f..029a462f02 100644
--- a/site/bisheng.config.js
+++ b/site/bisheng.config.js
@@ -24,6 +24,7 @@ function alertBabelConfig(rules) {
module.exports = {
port: 8001,
+ root: '/choerodon-ui/',
source: {
components: './components',
docs: './docs',
diff --git a/site/theme/static/icons.less b/site/theme/static/icons.less
index 905fee80fb..4893ff0a6b 100644
--- a/site/theme/static/icons.less
+++ b/site/theme/static/icons.less
@@ -24,6 +24,10 @@ ul.anticons-list {
will-change: transform;
}
+ i {
+ font-size: 36px;
+ }
+
.anticon-class {
display: block;
text-align: center;
diff --git a/site/theme/template/utils.jsx b/site/theme/template/utils.jsx
index 782e27ac06..a15bde9d69 100644
--- a/site/theme/template/utils.jsx
+++ b/site/theme/template/utils.jsx
@@ -50,10 +50,10 @@ export function isZhCN(pathname) {
export function getLocalizedPathname(path, zhCN) {
const pathname = path.startsWith('/') ? path : `/${path}`;
if (!zhCN) { // to enUS
- return /\/?index-cn/.test(pathname) ? '/' : pathname.replace('-cn', '');
+ return /\/?index-cn/.test(pathname) ? '/choerodon-ui/' : pathname.replace('-cn', '');
}
if (pathname === '/') {
- return '/index-cn';
+ return '/choerodon-ui/index-cn';
}
if (pathname.endsWith('/')) {
return pathname.replace(/\/$/, '-cn/');