🐛(component): 移除 transfer 组件 console.log
This commit is contained in:
parent
bf96faff6e
commit
007b94914a
@ -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 = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user