Skip to content

Commit

Permalink
style(picker): setPickerItemRef函数改剪头函数
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaikai committed Dec 8, 2023
1 parent a02311b commit 1549c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/picker/picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export default defineComponent({
});
const pickerItemInstanceArray = ref<any[]>([]);
// 获取pickerItem实例,用于更新每个item的value和index
function setPickerItemRef(item: any, index: number) {
const setPickerItemRef = (item: any, index: number) => {
pickerItemInstanceArray.value[index] = item;
}
};
const handleConfirm = (e: MouseEvent) => {
const target = realColumns.value.map((item: PickerColumnItem, index: number) => item[curIndexArray[index]]);
Expand Down

0 comments on commit 1549c83

Please sign in to comment.