您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
29 行
855 B
29 行
855 B
/**
|
|
* 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;
|
|
// }
|
|
}
|