[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
+2 -2
View File
@@ -15,7 +15,7 @@ export default sfc(
addText: String
},
render(h, context) {
render(h, context, inherit) {
const { props, listeners } = context;
const List = props.list.map((item, index) => (
@@ -43,7 +43,7 @@ export default sfc(
));
return (
<div class={bem()} {...context.data}>
<div class={bem()} {...inherit}>
<RadioGroup value={props.value} class={bem('group')}>
{List}
</RadioGroup>