feat:【antd】【ele】统一 infra 和 system 的代码风格

This commit is contained in:
YunaiV
2025-09-23 00:04:41 +08:00
parent b6d7dda0b3
commit af74cf6ad9
34 changed files with 65 additions and 75 deletions

View File

@@ -42,8 +42,8 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
label: '表名称',
component: 'Input',
componentProps: {
placeholder: '请输入表名称',
clearable: true,
placeholder: '请输入表名称',
},
},
{
@@ -51,8 +51,8 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
label: '表描述',
component: 'Input',
componentProps: {
placeholder: '请输入表描述',
clearable: true,
placeholder: '请输入表描述',
},
},
];
@@ -366,8 +366,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '表名称',
component: 'Input',
componentProps: {
placeholder: '请输入表名称',
clearable: true,
placeholder: '请输入表名称',
},
},
{
@@ -375,8 +375,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '表描述',
component: 'Input',
componentProps: {
placeholder: '请输入表描述',
clearable: true,
placeholder: '请输入表描述',
},
},
{

View File

@@ -151,8 +151,13 @@ getDetail();
</div>
<div class="mt-4 flex justify-end space-x-2">
<ElButton v-show="currentStep > 0" @click="prevStep">上一步</ElButton>
<ElButton v-show="currentStep < steps.length - 1" @click="nextStep">
<ElButton :disabled="currentStep === 0" @click="prevStep">
上一步
</ElButton>
<ElButton
:disabled="currentStep === steps.length - 1"
@click="nextStep"
>
下一步
</ElButton>
<ElButton type="primary" :loading="loading" @click="submitForm">

View File

@@ -176,6 +176,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
});
/** 获取数据源配置列表 */
// TODO @芋艿:这种场景的最佳实践;
async function initDataSourceConfig() {
try {
dataSourceConfigList.value = await getDataSourceConfigList();