[improvement] Functional: button (#2676)

This commit is contained in:
neverland
2019-02-02 17:04:02 +08:00
committed by GitHub
parent 5926d02d38
commit e3f4cac05d
8 changed files with 91 additions and 75 deletions

View File

@@ -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>