🐛(component): 移除 transfer 组件 console.log

This commit is contained in:
就眠儀式 2022-09-15 00:17:54 +08:00
parent bf96faff6e
commit 007b94914a

View File

@ -20,7 +20,7 @@ export interface LayTransferProps {
height?: string; height?: string;
showSearch?: BooleanOrString; showSearch?: BooleanOrString;
dataSource: Recordable[]; dataSource: Recordable[];
selectedKeys?: Recordable[]; modelValue?: Recordable[];
} }
const slots = useSlots(); const slots = useSlots();
@ -30,7 +30,7 @@ const props = withDefaults(defineProps<LayTransferProps>(), {
title: () => ["主列表", "副列表"], title: () => ["主列表", "副列表"],
dataSource: () => [], dataSource: () => [],
showSearch: false, showSearch: false,
selectedKeys: () => [], modelValue: () => [],
width: "200px", width: "200px",
height: "360px", height: "360px",
}); });
@ -54,7 +54,6 @@ const allLeftChange = (isChecked: boolean) => {
const ids = datasources.map((item) => { const ids = datasources.map((item) => {
return item[props.id]; return item[props.id];
}); });
console.log(JSON.stringify(ids));
leftSelectedKeys.value = [...ids]; leftSelectedKeys.value = [...ids];
} else { } else {
leftSelectedKeys.value = []; leftSelectedKeys.value = [];
@ -89,7 +88,6 @@ const allRightChange = (checked: any) => {
const ids = datasources.map((item) => { const ids = datasources.map((item) => {
return item[props.id]; return item[props.id];
}); });
console.log(JSON.stringify(ids));
rightSelectedKeys.value = [...ids]; rightSelectedKeys.value = [...ids];
} else { } else {
rightSelectedKeys.value = []; rightSelectedKeys.value = [];