refactor: 使用eslint.config.js替换.eslintrc.js并遵循esm语法 (#786)

This commit is contained in:
xiaoming
2023-11-10 23:18:01 +08:00
committed by GitHub
parent 18158f8e0d
commit 5b7dd8c3e2
102 changed files with 431 additions and 424 deletions

View File

@@ -50,6 +50,12 @@ const getSectionStyle = computed(() => {
});
const transitionMain = defineComponent({
props: {
route: {
type: undefined,
required: true
}
},
render() {
const transitionName =
transitions.value(this.route)?.name || "fade-transform";
@@ -72,12 +78,6 @@ const transitionMain = defineComponent({
default: () => [this.$slots.default()]
}
);
},
props: {
route: {
type: undefined,
required: true
}
}
});
</script>
@@ -118,8 +118,8 @@ const transitionMain = defineComponent({
/>
</keep-alive>
<component
v-else
:is="Component"
v-else
:key="route.fullPath"
class="main-content"
/>
@@ -140,8 +140,8 @@ const transitionMain = defineComponent({
/>
</keep-alive>
<component
v-else
:is="Component"
v-else
:key="route.fullPath"
class="main-content"
/>