refactor:1.APP.vue页面调整;2.移除无用样式

This commit is contained in:
lhj
2024-09-24 00:29:34 +08:00
parent 1bf75d3611
commit 3c5c4b1562
4 changed files with 3 additions and 25 deletions

1
components.d.ts vendored
View File

@ -9,6 +9,7 @@ declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
DynamicComponent: typeof import('./src/components/DynamicComponent.vue')['default'] DynamicComponent: typeof import('./src/components/DynamicComponent.vue')['default']
ElTable: typeof import('./src/components/ElTable.vue')['default'] ElTable: typeof import('./src/components/ElTable.vue')['default']
MainView: typeof import('./src/components/MainView.vue')['default']
NestedDirective: typeof import('./src/components/NestedDirective.vue')['default'] NestedDirective: typeof import('./src/components/NestedDirective.vue')['default']
NestedFunction: typeof import('./src/components/NestedFunction.vue')['default'] NestedFunction: typeof import('./src/components/NestedFunction.vue')['default']
TestComponent: typeof import('./src/components/TestComponent.vue')['default'] TestComponent: typeof import('./src/components/TestComponent.vue')['default']

View File

@ -1,29 +1,13 @@
<script setup lang="ts"> <script setup lang="ts">
import VueDemo from './components/VueDemo.vue'; import MainView from './components/MainView.vue';
</script> </script>
<template> <template>
<div> <div>
<VueDemo></VueDemo> <MainView></MainView>
</div> </div>
</template> </template>
<style scoped> <style scoped>
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
filter: drop-shadow(0 0 2em #42b883aa);
}
</style> </style>

View File

@ -1,9 +1,5 @@
<template> <template>
<div> <div>
<div style="display: flex;flex-direction: row;"> <div style="display: flex;flex-direction: row;">
<div ref="el2" <div ref="el2"

View File

@ -24,8 +24,6 @@ a:hover {
body { body {
margin: 0; margin: 0;
display: flex;
place-items: center;
min-width: 320px; min-width: 320px;
min-height: 100vh; min-height: 100vh;
} }
@ -59,7 +57,6 @@ button:focus-visible {
} }
#app { #app {
max-width: 1280px;
margin: 0 auto; margin: 0 auto;
padding: 2rem; padding: 2rem;
text-align: center; text-align: center;