feat: ✨ 代码生成配置目录显示优化
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
<div v-if="dialog.type === 'preview'">
|
<div v-if="dialog.type === 'preview'">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-tree :data="[{ value: 'Controller', label: 'Controller' }]" />
|
<el-tree :data="treeData" />
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<div>
|
<div>
|
||||||
@@ -282,7 +282,7 @@ import DatabaseAPI, {
|
|||||||
TableColumnVO,
|
TableColumnVO,
|
||||||
TablePageQuery,
|
TablePageQuery,
|
||||||
GeneratorPreviewVO,
|
GeneratorPreviewVO,
|
||||||
} from "@/api/database";
|
} from "@/api/generator";
|
||||||
|
|
||||||
const queryFormRef = ref(ElForm);
|
const queryFormRef = ref(ElForm);
|
||||||
|
|
||||||
@@ -298,6 +298,27 @@ const pageData = ref<TablePageVO[]>([]);
|
|||||||
|
|
||||||
const tableColumns = ref<TableColumnVO[]>([]);
|
const tableColumns = ref<TableColumnVO[]>([]);
|
||||||
|
|
||||||
|
interface Tree {
|
||||||
|
label: string;
|
||||||
|
children?: Tree[];
|
||||||
|
}
|
||||||
|
|
||||||
|
const treeData = ref<Tree[]>([
|
||||||
|
{
|
||||||
|
label: "Level one 1",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "Level two 1-1",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "Level three 1-1-1",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
const dialog = reactive({
|
const dialog = reactive({
|
||||||
type: "",
|
type: "",
|
||||||
visible: false,
|
visible: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user