[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

@@ -21,7 +21,7 @@ export default sfc(
}
},
render(h, context) {
render(h, context, inherit) {
const { props, listeners } = context;
const slots = context.slots();
@@ -29,7 +29,7 @@ export default sfc(
<div
class={[bem({ fixed: props.fixed }), { 'van-hairline--bottom': props.border }]}
style={{ zIndex: props.zIndex }}
{...context.data}
{...inherit}
>
<div
class={bem('left')}