chore: update

This commit is contained in:
xiaoxian521
2022-08-29 17:14:25 +08:00
parent fb2c016ebe
commit 67e8532d37
4 changed files with 523 additions and 495 deletions

View File

@@ -78,7 +78,7 @@ export default defineComponent({
const _width: number = await getOriginWidth(unref(renderText), options);
options.scale =
props.width === 0 ? undefined : (props.width / _width) * 4;
const canvasRef: HTMLCanvasElement = await toCanvas(
const canvasRef: any = await toCanvas(
unref(wrapRef) as HTMLCanvasElement,
unref(renderText),
options