mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user