chore: codegen

This commit is contained in:
dap
2024-09-26 11:56:43 +08:00
parent 62e7cc6e7b
commit c3618e121e
4 changed files with 29 additions and 4 deletions

View File

@@ -100,8 +100,13 @@ async function initMenuSelect() {
onMounted(async () => {
const info = genInfoData.value;
for (const key in info) {
formApi.setFieldValue(key, info[key as keyof typeof info]);
await formApi.setValues(info);
// 弹出框类型需要手动赋值
if (info.options) {
const popupComponent = JSON.parse(info.options)?.popupComponent;
if (popupComponent) {
await formApi.setFieldValue('popupComponent', popupComponent);
}
}
await Promise.all([initTreeSelect(info.columns), initMenuSelect()]);
});