inject注入函数
摘要:在父组件中const handleFunction= (e) => { 相关代码};provide("handleFunction",handleFunction); const fn = inject('handleFunction',Function,true); 然后调用方法fn fn(参数)
阅读全文
posted @ 2021-08-22 21:05
posted @ 2021-08-22 21:05
posted @ 2021-08-11 19:49
posted @ 2021-08-09 19:43