mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[improvement] Functional: button (#2676)
This commit is contained in:
@@ -18,7 +18,7 @@ export default sfc(
|
||||
}
|
||||
},
|
||||
|
||||
render(h, context) {
|
||||
render(h, context, inherit) {
|
||||
const { props } = context;
|
||||
|
||||
return (
|
||||
@@ -26,8 +26,8 @@ export default sfc(
|
||||
center
|
||||
title={props.title}
|
||||
border={props.border}
|
||||
style={context.style}
|
||||
class={[bem(), context.class, context.staticClass]}
|
||||
class={bem()}
|
||||
{...inherit}
|
||||
>
|
||||
<Switch {...{ props, on: context.listeners }} />
|
||||
</Cell>
|
||||
|
Reference in New Issue
Block a user