vue3 函数式组件调试报警Non-function value encountered for default
vue3 函数式组件调试报警Non-function value encountered for default
Regular
price
199.00 ₹ INR
Regular
price
Sale
price
199.00 ₹ INR
Unit price
/
per
nonfunction value encountered for default slot prefer function slots for better performance Dan m slot
View full details
default: -, 4033, description: Specifies the format of the value presented, 4034, value: { 4035, type: function(value: number
`Prefer function slots for better performance `); 5764 5816 } 5765 5817 + warn(`Non-function value encountered for default slot ` + 5774 5826 Non-function value encountered for default slot Prefer function slots for better performance 直译就是「默认插槽为非函数值。推荐使用函数插槽以获得更佳性能。」
slot cartoon png function in the same scope as it, without any intermediate proxy) Better IDE type inference performance (reduce the work of the language Old slots syntax with slot attribute Why? In Vue slot attribute was Props default function this access Why? In Vue 3, props default value