mirror of
https://github.com/youzan/vant.git
synced 2026-05-07 01:01:01 +08:00
[improvement] declare functional sfc (#2695)
This commit is contained in:
@@ -2,15 +2,14 @@ import { use } from '../utils';
|
||||
|
||||
const [sfc, bem] = use('goods-action');
|
||||
|
||||
export default sfc(
|
||||
{
|
||||
render(h, context) {
|
||||
return (
|
||||
<div class={bem()} {...context.data}>
|
||||
{context.children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
},
|
||||
true
|
||||
);
|
||||
export default sfc({
|
||||
functional: true,
|
||||
|
||||
render(h, context) {
|
||||
return (
|
||||
<div class={bem()} {...context.data}>
|
||||
{context.children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user