Commit d1d64fc7 authored by 邓晓峰's avatar 邓晓峰

fix userRegistry

parent 83a32aad
#root {
& /deep/ {
.__dumi-default-navbar-logo {
padding-left: 86px!important;
padding-left: 86px !important;
}
}
}
......@@ -13,7 +13,6 @@ moment.locale('zh-cn');
export default ({ children, ...props }) => {
useEffect(() => {
(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
......
......@@ -4,4 +4,4 @@ module.exports = {
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
},
};
\ No newline at end of file
};
......@@ -11,6 +11,3 @@ nav:
## 安装
当前 wisdom-components 每一个组件都是一个独立的包,你需要在你的项目中安装对应的 npm 包并使用。
......@@ -13,6 +13,5 @@ hero:
## 组件看板
| 组件 | 下载量 | 版本 |
| --- | --- | --- |
| ---- | ------ | ---- |
......@@ -41,7 +41,6 @@ dataSource 用于存储从服务器请求的数据,为了优化体验,我们
在实际开发中我们也经常会碰到一些设计问题,比如经典的按钮应该放在左面还是右面,查询表单怎么布局,日期怎么格式化,数字对齐问题,在重型组件中都进行了抽象。对于各种行为我们都经过了设计师的讨论与设计。默认好看并且好用。
### 脚手架概览
当我们 clone 完项目之后我们会看到如下的目录结构。
......
......@@ -11,10 +11,7 @@ pkgList.forEach((shortName) => {
});
module.exports = {
collectCoverageFrom: [
'packages/**/src/**/*.{js}',
'!packages/**/src/demos/**',
],
collectCoverageFrom: ['packages/**/src/**/*.{js}', '!packages/**/src/demos/**'],
moduleNameMapper,
testURL: 'http://localhost',
verbose: true,
......
......@@ -7,4 +7,4 @@
"cacheDir": ".changelog"
},
"ignoreChanges": ["**/*.md", "**/*.test.js", "**/*.e2e.js", "**/fixtures/**", "**/test/**"]
}
\ No newline at end of file
}
console.log("hello world");
\ No newline at end of file
console.log('hello world');
......@@ -29,9 +29,7 @@ const { yParser } = require('@umijs/utils');
},
browserslist: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 11'],
keywords: ['antd', 'admin', 'ant-design', 'ant-design-pro'],
authors: [
'dengxiaofeng',
],
authors: ['dengxiaofeng'],
license: 'MIT',
bugs: 'http://github.com/umijs/plugins/issues',
homepage: `https://g.civnet.cn:8443/test/winsdom-components/tree/master/packages/${shortName}#readme`,
......
module.exports = function (version) {
return version.includes('-rc.') || version.includes('-beta.') || version.includes('-alpha.');
};
\ No newline at end of file
};
......@@ -6,7 +6,7 @@ const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const { readdirSync } = require('fs');
const tailPkgs = readdirSync(path.join(__dirname, 'packages')).filter(
(pkg) => pkg.charAt(0) !== '.'
(pkg) => pkg.charAt(0) !== '.',
);
const webPackConfigList = [];
......@@ -23,7 +23,7 @@ tailPkgs.forEach((pkg) => {
library: `WisDOM${pkg.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase())}`,
libraryExport: 'default',
path: path.resolve(__dirname, 'packages', pkg, 'dist'),
globalObject: 'this'
globalObject: 'this',
},
mode: 'production',
resolve: {
......@@ -142,7 +142,7 @@ tailPkgs.forEach((pkg) => {
filename: '[name].css',
chunkFilename: '[id].css',
}),
]
],
};
webPackConfigList.push(config);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment