From 031a5a0499ab4f650d5751c4d4d52d2ecf3a4cce Mon Sep 17 00:00:00 2001 From: 2betop <2698393+2betop@users.noreply.github.com> Date: Thu, 16 May 2024 17:22:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20list-select=20=E6=94=AF=E6=8C=81=20labe?= =?UTF-8?q?l=20=E7=94=A8=E5=8F=98=E9=87=8F=20Close:=20#9807?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Form/ListSelect.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/amis/src/renderers/Form/ListSelect.tsx b/packages/amis/src/renderers/Form/ListSelect.tsx index de14b5c48..eae7a30fd 100644 --- a/packages/amis/src/renderers/Form/ListSelect.tsx +++ b/packages/amis/src/renderers/Form/ListSelect.tsx @@ -4,7 +4,8 @@ import { OptionsControlProps, Option, FormOptionsControl, - getVariable + getVariable, + filter } from 'amis-core'; import {ActionObject, Schema} from 'amis-core'; import {createObject, isEmpty} from 'amis-core'; @@ -236,7 +237,7 @@ export default class ListControl extends React.Component { ) : null, option[labelField || 'label'] ? (
- {String(option[labelField || 'label'])} + {filter(String(option[labelField || 'label']), data)}
) : null // {/* {option.tip ? (
{option.tip}
) : null} */}