[improvement] Tabbar: jsx (#2663)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function useSlots({ $slots, $scopedSlots }) {
|
||||
return (name, props) => {
|
||||
if ($scopedSlots[name]) {
|
||||
return $scopedSlots[name](props);
|
||||
}
|
||||
return $slots[name];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user