From 44b1877eaedca1716aa40b8d819d5fe7cbd26ba0 Mon Sep 17 00:00:00 2001 From: Electrolux <59329360+electroluxcode@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:30:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(demo):=20=E4=BF=AE=E5=A4=8Dform=20demo?= =?UTF-8?q?=E7=9A=84=E8=BF=9C=E7=A8=8B=E6=90=9C=E7=B4=A2=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E7=9A=84bug=20(#3770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/form/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/demo/form/index.vue b/src/views/demo/form/index.vue index 0f8ca2e3b..18efb54a4 100644 --- a/src/views/demo/form/index.vue +++ b/src/views/demo/form/index.vue @@ -48,7 +48,7 @@ labelField="name" valueField="id" :params="searchParams" - @search="useDebounceFn(onSearch, 300)" + @search="debounceOptionsFn" /> @@ -71,6 +71,7 @@ import { areaRecord } from '@/api/demo/cascader'; import { uploadApi } from '@/api/sys/upload'; + let debounceOptionsFn = useDebounceFn(onSearch, 300) const valueSelectA = ref([]); const valueSelectB = ref([]); const options = ref['options']>([]); @@ -411,7 +412,7 @@ params: { id: 1, }, - + resultField: 'list', // use name as label labelField: 'name',