[bugfix] functional component should not inherit scropedSlots (#2752)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { use } from '../utils';
|
||||
import { inherit } from '../utils/functional';
|
||||
|
||||
const [sfc, bem] = use('goods-action');
|
||||
|
||||
function GoodsAction(h, props, slots, ctx) {
|
||||
return (
|
||||
<div class={bem()} {...ctx.data}>
|
||||
<div class={bem()} {...inherit(ctx, true)}>
|
||||
{slots.default && slots.default()}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user