From 28520c27b3de87cb8d6129e8020975ebc0e79a22 Mon Sep 17 00:00:00 2001 From: hdx Date: Fri, 15 Nov 2024 15:07:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas-context):=20web=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=AD=A6=E5=91=8A=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas-context.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/canvas/canvas-context.uvue b/pages/component/canvas/canvas-context.uvue index 0103183a..f56cdfbb 100644 --- a/pages/component/canvas/canvas-context.uvue +++ b/pages/component/canvas/canvas-context.uvue @@ -708,7 +708,7 @@ context.lineWidth = 10; ['butt', 'round', 'square'].forEach((item : string, index : number) => { context.beginPath() - context.lineCap = item + context.lineCap = item as 'butt' | 'round' | 'square' context.moveTo(20, 20 + 20 * index) context.lineTo(100, 20 + 20 * index) context.stroke() @@ -720,7 +720,7 @@ context.lineWidth = 10; ['bevel', 'round', 'miter'].forEach((item : string, index : number) => { context.beginPath() - context.lineJoin = item + context.lineJoin = item as 'bevel' | 'round' | 'miter' context.moveTo(20 + 80 * index, 20) context.lineTo(100 + 80 * index, 50) context.lineTo(20 + 80 * index, 100) -- GitLab