添加页面组件、添加页面组件接口、添加pinia

This commit is contained in:
lhj
2024-10-02 17:05:46 +08:00
parent 079d58048a
commit 0299f6a55b
17 changed files with 199 additions and 1454 deletions

View File

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