refactor: internalSelect recordPicker

This commit is contained in:
katherinehhh 2023-05-06 14:14:02 +08:00
parent fc198621a6
commit 15cb251c4b
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ export const InternalSelect = observer((props: any) => {
onChange: props?.onChange, onChange: props?.onChange,
selectedRows, selectedRows,
setSelectedRows, setSelectedRows,
collectionField
}; };
useEffect(() => { useEffect(() => {
if (value && Object.keys(value).length > 0) { if (value && Object.keys(value).length > 0) {

View File

@ -17,7 +17,7 @@ export default extend({
uiSchema: { uiSchema: {
type: 'array', type: 'array',
title: '{{t("Roles")}}', title: '{{t("Roles")}}',
'x-component': 'RecordPicker', 'x-component': 'AssociationField',
'x-component-props': { 'x-component-props': {
multiple: true, multiple: true,
fieldNames: { fieldNames: {