Compare commits

...

2 Commits

Author SHA1 Message Date
lhj
c2cb2ea1fe fix:修复导入的接口 2024-09-24 00:29:54 +08:00
lhj
3c5c4b1562 refactor:1.APP.vue页面调整;2.移除无用样式 2024-09-24 00:29:34 +08:00
5 changed files with 6 additions and 28 deletions

1
components.d.ts vendored
View File

@ -9,6 +9,7 @@ declare module 'vue' {
export interface GlobalComponents {
DynamicComponent: typeof import('./src/components/DynamicComponent.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']
NestedFunction: typeof import('./src/components/NestedFunction.vue')['default']
TestComponent: typeof import('./src/components/TestComponent.vue')['default']

View File

@ -1,29 +1,13 @@
<script setup lang="ts">
import VueDemo from './components/VueDemo.vue';
import MainView from './components/MainView.vue';
</script>
<template>
<div>
<VueDemo></VueDemo>
<MainView></MainView>
</div>
</template>
<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>

View File

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

View File

@ -11,15 +11,15 @@
<script setup lang="ts">
import { useDraggable} from 'vue-draggable-plus'
import { computed, ref } from 'vue'
import { IList } from '../type/IComponent'
import { IComponent } from '../type/IComponent'
interface Props {
modelValue: IList[]
modelValue: IComponent[]
}
const props = defineProps<Props>()
interface Emits {
(e: 'update:modelValue', value: IList[]): void
(e: 'update:modelValue', value: IComponent[]): void
}
const emits = defineEmits<Emits>()
const list = computed({

View File

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