Skip to content

Commit

Permalink
misc:save
Browse files Browse the repository at this point in the history
  • Loading branch information
nupthale committed Aug 28, 2017
1 parent 7e44696 commit 7931ee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ const doc = (isDev, callback) => {
// 组件文档
CATES.forEach((c) => {
const components = getComponents(c.cate).filter((comp) => {
if (!/^KL(Notify|Form|Mask|Modal)$/.test(comp)) {
return false;
}
// if (!/^KL(Loading|Table|Row)$/.test(comp)) {
// return false;
// }

const mdPath = path.join(COMPONENTS_PATH, c.cate, comp, 'index.md');
if (fs.existsSync(mdPath)) return true;
Expand Down
3 changes: 3 additions & 0 deletions src/js/components/widget/KLImagePreview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ const KLImagePreview = Component.extend({
},
init(data) {
this.supr(data);

// 如果不是内嵌组件,则嵌入到document.body中
if (this.$root === this) this.$inject(document.body);
},
onClose() {
this.destroy();
Expand Down

0 comments on commit 7931ee5

Please sign in to comment.