分离部分工具函数

This commit is contained in:
Harvey Zack committed 2018-11-23 09:45:36 +08:00
1 parent d6e35781ca
commit 748ce304e6
15 files changed
+244 -417

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ export default class Info {
const { $info, $infoPanel } = this.art.refs;
setStyle($info, 'display', 'block');
if (!$infoPanel.innerHTML) {
append($infoPanel, this.creatInfo());
append($infoPanel, Info.creatInfo());
this.getHeader();
}
clearTimeout(this.timer);
@@ -33,7 +33,7 @@ export default class Info {
this.art.emit('info:show', $info);
}
creatInfo() {
static creatInfo() {
const infoHtml = [];
infoHtml.push(`