feat: user apitransfer

pull/12/head
xingyu 2023-05-10 18:22:22 +08:00
parent 664e25ce66
commit a261242279
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ import { propTypes } from '@/utils/propTypes'
import { TransferDirection, TransferItem } from 'ant-design-vue/lib/transfer'
const props = defineProps({
value: { type: Array as PropType<Array<string>> },
value: { type: Array as PropType<Array<any>> },
api: {
type: Function as PropType<(arg?: Recordable) => Promise<TransferItem[]>>,
default: null

View File

@ -115,12 +115,12 @@ export const formSchema: FormSchema[] = [
label: '成员',
field: 'memberUserIds',
required: true,
component: 'ApiSelect',
component: 'ApiTransfer',
componentProps: {
api: () => getListSimpleUsers(),
showSearch: true,
labelField: 'nickname',
valueField: 'id',
mode: 'multiple'
valueField: 'id'
}
},
{