[bugfix] Address & Contact list style (#230)

* [bugfix] Checkbox border render error in weixin browser

* [bugfix] TreeSelect dependency path error

* [bugfix] Swipe should clear autoplay timer when destroyed

* [bugfix] Optimize component dependency analyze when build style entry

* merge

* update yarn.lock

* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* [Doc] add more badges in README.md

* update README.md

* [bugfix] Address & Contact list style

* fix: contact test cases
This commit is contained in:
neverland
2017-10-22 21:01:30 -05:00
committed by GitHub
parent c1923bc87d
commit 0884cad227
5 changed files with 13 additions and 5 deletions

View File

@@ -24,13 +24,14 @@ function analyzeDependencies(componentName, libDir) {
})
const checkList = ['base'];
search(dependencies, checkList);
console.log(componentName ,checkList);
return checkList.filter(component => checkComponentHasStyle(component));
}
function search(tree, checkList) {
tree && Object.keys(tree).forEach(key => {
search(tree[key], checkList);
const component = key.split('/vant/lib/')[1].replace('/index.js', '');
const component = key.split('/vant/lib/')[1].replace('/index.js', '').replace('mixins/', '');
if (checkList.indexOf(component) === -1) {
checkList.push(component);
}