{
return this._replaceArray;
}
render() {
return html`
${this.replaceArray.map((_, i) => this.RenameTemplate(i))}
`;
}
RenameTemplate(index: number) {
const replaceItem = this.replaceArray[index];
return html`
{
const target = e.target as HTMLInputElement;
let updatedReplaceArray = [...this.replaceArray];
updatedReplaceArray[index] = {
...updatedReplaceArray[index],
old: target.value,
};
this.replaceArray = updatedReplaceArray;
}}" />
{
const target = e.target as HTMLInputElement;
let updatedReplaceArray = [...this.replaceArray];
updatedReplaceArray[index] = {
...updatedReplaceArray[index],
new: target.value,
};
this.replaceArray = updatedReplaceArray;
}}" />
`;
}
}
declare global {
interface HTMLElementTagNameMap {
"rename-input": RenameInput;
}
}