feat: migrate IndexBar component

This commit is contained in:
chenjiahan
2020-08-17 10:49:27 +08:00
parent 6c85294d35
commit f956d1ab3b
4 changed files with 17 additions and 11 deletions

View File

@@ -58,6 +58,8 @@ export default createComponent({
},
},
emits: ['select'],
data() {
return {
activeAnchorIndex: null,
@@ -245,7 +247,7 @@ export default createComponent({
>
{Indexes}
</div>
{this.slots('default')}
{this.$slots.default?.()}
</div>
);
},