feat:添加表单生成器

This commit is contained in:
simiyu
2024-10-14 15:54:47 +08:00
parent 801e30c1dc
commit 0f21688b3c
4 changed files with 45 additions and 4 deletions

View File

@@ -1,3 +1,25 @@
<template>
<div> 表单构建 <svg-icon icon-class="build" /> </div>
</template>
<div ref="box">
<v-form-designer ></v-form-designer>
</div>
</template>
<script setup lang="ts">
import {ref,onMounted} from "vue";
const box = ref<Element>()
onMounted(() =>
{
box.value?.firstChild?.classList.add("not-margin")
box.value?.firstChild?.children[0].remove()
})
</script>
<style lang="scss" scoped>
div {
margin: 0; /* 如果页面出现垂直滚动条则加入此行CSS以消除之 */
}
.not-margin{
margin: 0 !important;
}
</style>