This commit is contained in:
2024-08-30 17:36:21 +08:00
parent a3f0288c92
commit eec9d6045c
19 changed files with 332 additions and 219 deletions

View File

@@ -37,7 +37,7 @@ export default class Signature extends OptionBase {
async show() {
const popup = new Popup({
title: this.r('P_IPT_SIGNATURE', 'Signature'),
title: this.r('FLTL_02770', 'Signature'),
content: this._var.canvas = createElement('canvas', canvas => {
canvas.style.width = '100%';
canvas.style.height = '100%';
@@ -56,7 +56,7 @@ export default class Signature extends OptionBase {
},
buttons: [
{
text: this.r('P_GRID_OK', 'OK'),
text: this.r('FLTL_02057', 'OK'),
trigger: () => {
if (this._var.allPoints.length === 0) {
return false;
@@ -65,14 +65,14 @@ export default class Signature extends OptionBase {
}
},
{
text: this.r('P_GRID_RESET', 'Reset'),
text: this.r('FLTL_02479', 'Reset'),
trigger: () => {
const ctx = this._var.canvas.getContext('2d');
ctx.clearRect(0, 0, this._var.canvas.width, this._var.canvas.height);
return false
}
},
{ text: this.r('P_WO_CANCEL', 'Cancel') }
{ text: this.r('FLTL_00499', 'Cancel') }
]
});
this._var.popup = popup;