feat: 添加FormBuilder组件

This commit is contained in:
xieyonghong 2023-01-10 16:11:02 +08:00
parent 458b4ae3d3
commit c5eb9fddc3
5 changed files with 24 additions and 6 deletions

View File

@ -5,9 +5,7 @@
</template>
<script setup type='ts' name='FormBuilder'>
export default {
name: 'FormBuilder'
}
const data = reactive({})
</script>
<style scoped>

View File

@ -0,0 +1,3 @@
import FormBuilder from './FormBuilder.vue'
export default FormBuilder

View File

@ -3,12 +3,14 @@ import AIcon from './AIcon'
import PermissionButton from './PermissionButton/index.vue'
import JTable from './Table/index'
import TitleComponent from "./TitleComponent/index.vue";
import Form from './Form'
export default {
install(app: App) {
app.component('AIcon', AIcon)
app.component('PermissionButton', PermissionButton)
app.component('JTable', JTable)
app.component('TitleComponent', TitleComponent)
.component('PermissionButton', PermissionButton)
.component('JTable', JTable)
.component('TitleComponent', TitleComponent)
.component('Form', Form)
}
}

View File

@ -40,6 +40,10 @@ export default [
path: '/table',
component: () => import('@/views/table/index.vue')
},
{
path: '/form',
component: () => import('@/views/demo/Form.vue')
},
// end: 测试用, 可删除
// link 运维管理

11
src/views/demo/Form.vue Normal file
View File

@ -0,0 +1,11 @@
<template>
<Form />
</template>
<script setup name='FormDemo'>
const data = reactive({})
</script>
<style scoped>
</style>