[improvement] Use scoped-slots in Vue 2.6+ (#2688)

This commit is contained in:
neverland
2019-02-05 22:16:55 +08:00
committed by GitHub
parent 1ea92c023c
commit f768e75bfe
45 changed files with 125 additions and 117 deletions

View File

@@ -40,13 +40,13 @@ export default sfc({
return (
<div class={bem()}>
{this.$slots.top}
{this.slots('top')}
<RadioGroup value={this.value} onInput={event => this.$emit('input', event)}>
{List}
</RadioGroup>
{this.disabledText && <div class={bem('disabled-text')}>{this.disabledText}</div>}
{DisabledList}
{this.$slots.default}
{this.slots()}
<Button
square
size="large"