From 9dc64709dae79af38b0a4832939e16c5de5dde2e Mon Sep 17 00:00:00 2001 From: Marvin <454846659@qq.com> Date: Mon, 23 Oct 2023 15:05:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(picker):=20=E5=8E=BB=E9=99=A4columns?= =?UTF-8?q?=E6=9C=89=E5=80=BC=E6=89=8D=E8=A7=A6=E5=8F=91watch=E7=9B=91?= =?UTF-8?q?=E5=90=AC(#2590)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/__VUE/picker/usePicker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/__VUE/picker/usePicker.ts b/src/packages/__VUE/picker/usePicker.ts index 5b6f7e5bf6..038ee47f6f 100644 --- a/src/packages/__VUE/picker/usePicker.ts +++ b/src/packages/__VUE/picker/usePicker.ts @@ -183,7 +183,7 @@ export const usePicker = (props: any, emit: any) => { watch( () => props.columns, (val) => { - if (val.length) state.formattedColumns = val as PickerOption[]; + state.formattedColumns = val as PickerOption[]; } );