[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

@@ -1,4 +1,4 @@
import { use, useSlots } from '../utils';
import { use } from '../utils';
import Icon from '../icon';
import Info from '../info';
import RouterLink from '../mixins/router-link';
@@ -37,8 +37,7 @@ export default sfc({
},
render(h) {
const { icon, active } = this;
const slots = useSlots(this);
const { icon, slots, active } = this;
const style = active ? { color: this.$parent.activeColor } : null;
return (