提交 692df33f 编写于 作者: W wujieli 提交者: 蒋琴

types(components): ApiTransfer props 类型错误,删除多余属性 (#2197)

上级 9316d950
<template>
<Transfer
:data-source="getdataSource"
show-search
:filter-option="filterOption"
:render="(item) => item.title"
:showSelectAll="showSelectAll"
......@@ -24,13 +23,13 @@
name: 'ApiTransfer',
components: { Transfer },
props: {
value: { type: Array<string> },
value: { type: Array as PropType<Array<string>> },
api: {
type: Function as PropType<(arg?: Recordable) => Promise<TransferItem[]>>,
default: null,
},
params: { type: Object },
dataSource: { type: Array<TransferItem> },
dataSource: { type: Array as PropType<Array<TransferItem>> },
immediate: propTypes.bool.def(true),
alwaysLoad: propTypes.bool.def(false),
afterFetch: { type: Function as PropType<Fn> },
......@@ -42,9 +41,9 @@
filterOption: {
type: Function as PropType<(inputValue: string, item: TransferItem) => boolean>,
},
selectedKeys: { type: Array<string> },
selectedKeys: { type: Array as PropType<Array<string>> },
showSelectAll: { type: Boolean, default: false },
targetKeys: { type: Array<string> },
targetKeys: { type: Array as PropType<Array<string>> },
},
emits: ['options-change', 'change'],
setup(props, { attrs, emit }) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册