提交 bd06ca05 编写于 作者: C Catouse

* improve document UI.

上级 ca3f0682
......@@ -1466,6 +1466,9 @@
};
var isInLib = function(name, libNames, lib) {
if(name === 'button') {
console.log('isInLib', name, libNames, lib);
}
if(libNames) {
var len = libNames.length;
name = name.toLowerCase();
......@@ -1474,11 +1477,14 @@
namesDot = name + 's.';
for(var i = 0; i < len; ++i) {
var item = libNames[i];
if(item === name || item === names || (lib && !lib.src && isInLib(name, lib.dpds))) {
if(item === name || item === names || item.startsWith(nameDot) || item.startsWith(namesDot)) {
if(name === 'button') console.log('isInLib>', true);
return true;
}
}
// return lib && !lib.src && isInLib(name, lib.dpds);
}
if(name === 'button') console.log('isInLib>', false);
return false;
};
......@@ -1564,9 +1570,9 @@
}
});
}
if(lib.dpds && lib.dpds) {
if(lib.dpds) {
lib.dpds.forEach(function(dpdsName) {
if(dpdsName.startsWith(libName) && pkg.lib[dpdsName] && !pkg.lib[dpdsName]) {
if(dpdsName.startsWith(libName) && pkg.lib[dpdsName] && !pkg.lib[dpdsName].thirdpart) {
getLibSource(pkg.lib[dpdsName], src, libName);
}
});
......
......@@ -270,9 +270,9 @@
-webkit-animation-timing-function: ease-in-out
}
.example.no-padding {
padding: 0;
}
.example.no-padding {padding: 0;}
.example.borderless {border: none}
.example > *:last-child {
margin-bottom: 0;
......@@ -285,6 +285,9 @@ pre {
border-color: #ddd;
padding: 10px 20px;
}
pre.linenums {
padding: 10px;
}
.example + pre,
pre + pre {
margin: -15px 0 15px;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册