huangxiaomin
3 years ago
5 changed files with 56 additions and 15 deletions
@ -0,0 +1,29 @@ |
|||
/** |
|||
* Created by Jacky.Gao on 2017-01-25. |
|||
*/ |
|||
import Tool from './Tool.js'; |
|||
|
|||
export default class OpenTool extends Tool{ |
|||
constructor(context){ |
|||
super(context); |
|||
} |
|||
execute(){ |
|||
window.parent.postMessage({'goback': -1},'*') |
|||
} |
|||
getTitle(){ |
|||
return `${window.i18n.openFile}`; |
|||
} |
|||
getIcon(){ |
|||
return `<img src='${window._contextPath}/ureport/res/ureport-asserts/icons/back.svg' width="22px" height="22px">`; |
|||
} |
|||
// buildButton(){
|
|||
// const btn=$(`<button type="button" class="btn btn-default" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" title="${this.getTitle()}">
|
|||
// ${this.getIcon()}
|
|||
// </button>`);
|
|||
// const _this=this;
|
|||
// btn.click(function(){
|
|||
// _this.execute();
|
|||
// });
|
|||
// return btn;
|
|||
// }
|
|||
} |
Loading…
Reference in new issue