mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
[bugfix] functional component should not inherit scropedSlots (#2752)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { use, isDef } from '../utils';
|
||||
import { inherit } from '../utils/functional';
|
||||
|
||||
const [sfc, bem] = use('info');
|
||||
|
||||
function Info(h, props, slots, ctx) {
|
||||
return (
|
||||
isDef(props.info) && (
|
||||
<div class={bem()} {...ctx.data}>
|
||||
<div class={bem()} {...inherit(ctx, true)}>
|
||||
{props.info}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user