Browse Source

Merge branch 'master' into antd-3.0

pull/8064/head
afc163 7 years ago
parent
commit
a5074bf475
  1. 1
      scripts/generateColorLess.js
  2. 2
      scripts/sort-api-table.js

1
scripts/generateColorLess.js

@ -58,7 +58,6 @@ styles.forEach((style) => {
content += `@import "${style}";\n`;
});
content += `@import "${path.join(antd, 'site/theme/static/index.less')}";\n`;
fs.writeFileSync('/tmp/style.less', content);
less.render.call(less, content, {
paths: [path.join(antd, 'components/style')],

2
scripts/sort-api-table.js

@ -29,7 +29,7 @@ const sizeBreakPoints = ['xs', 'sm', 'md', 'lg', 'xl'];
const groups = {
isDynamic: val => /^on[A-Z]/.test(val),
isSize: val => sizeBreakPoints.indexOf(val) > 0,
isSize: val => sizeBreakPoints.indexOf(val) > -1,
};
function asciiSort(prev, next) {

Loading…
Cancel
Save