父组件
<dh-picker-select
ref="selectRef"
title="选择"
:mask-click="false"
:show-cancel="false"
:data-list="entList"
/>
<script setup>
onMounted(() => {
setTimeout(() => {
entList.value = [{ code: 123, name: '123' }]
}, 1000)
})
</script>
子组件
watch(
() => props.dataList,
(curValue) => {
console.log('dataList');
console.log(curValue);
}
);
1***@163.com (作者)
好的,非常感谢
2023-12-12 10:01