mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[bugfix] functional component should not inherit scropedSlots (#2752)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { use } from '../utils';
|
||||
import { emit } from '../utils/functional';
|
||||
import { emit, inherit } from '../utils/functional';
|
||||
|
||||
const [sfc, bem] = use('password-input');
|
||||
|
||||
@@ -23,7 +23,7 @@ function PasswordInput(h, props, slots, ctx) {
|
||||
event.stopPropagation();
|
||||
emit(ctx, 'focus', event);
|
||||
}}
|
||||
{...ctx.data}
|
||||
{...inherit(ctx, true)}
|
||||
>
|
||||
{Points}
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user