mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[improvement] Use scoped-slots in Vue 2.6+ (#2688)
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user