From c0852ed583c5581eb3bfc9e7fb330d0737ce2ea0 Mon Sep 17 00:00:00 2001 From: Moonights <8015352+Moonights_gitee@user.noreply.gitee.com> Date: Fri, 3 Feb 2023 08:45:15 +0000 Subject: [PATCH] =?UTF-8?q?feat(baInput):=E8=BF=9C=E7=A8=8B=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=A2=9E=E5=8A=A0=E4=BF=A1=E6=81=AF=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=A1=86=20!90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/baInput/components/remoteSelect.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/web/src/components/baInput/components/remoteSelect.vue b/web/src/components/baInput/components/remoteSelect.vue index 7af9a6b3..157caeeb 100644 --- a/web/src/components/baInput/components/remoteSelect.vue +++ b/web/src/components/baInput/components/remoteSelect.vue @@ -22,7 +22,14 @@ :label="item[field]" :value="item[state.primaryKey].toString()" :key="item[state.primaryKey]" - > + > + + + {{ key }}: {{ item[tooltipParam] }} + + {{ item[field] }} + + string + tooltipParams?: anyObj } const props = withDefaults(defineProps(), { pk: 'id', @@ -62,6 +70,9 @@ const props = withDefaults(defineProps(), { remoteUrl: '', modelValue: '', multiple: false, + tooltipParams: () => { + return {} + }, }) const state: {
{{ key }}: {{ item[tooltipParam] }}