💄 优化表单视觉显示.

This commit is contained in:
lijiahang
2024-04-18 14:56:01 +08:00
parent 83ceb0e1e5
commit 33cfb13342
30 changed files with 163 additions and 151 deletions

View File

@@ -20,8 +20,7 @@
size="small"
ref="formRef"
label-align="right"
:label-col-props="{ span: 6 }"
:wrapper-col-props="{ span: 18 }"
:auto-label-width="true"
@keyup.enter="() => fetchCardData()">
#foreach($field in ${table.fields})
<!-- $field.comment -->

View File

@@ -8,12 +8,11 @@
:cancel-button-props="{ disabled: loading }"
:on-before-ok="handlerOk"
@cancel="handleClose">
<a-spin class="full modal-form" :loading="loading">
<a-spin class="full modal-form-small" :loading="loading">
<a-form :model="formModel"
ref="formRef"
label-align="right"
:label-col-props="{ span: 5 }"
:wrapper-col-props="{ span: 18 }"
:auto-label-width="true"
:rules="formRules">
#foreach($field in ${table.fields})
#if("$field.propertyName" != "id")

View File

@@ -1,6 +1,6 @@
<template>
<a-modal v-model:visible="visible"
body-class="modal-form"
body-class="modal-form-large"
title-align="start"
:title="title"
:top="80"
@@ -16,8 +16,7 @@
<a-form :model="formModel"
ref="formRef"
label-align="right"
:label-col-props="{ span: 5 }"
:wrapper-col-props="{ span: 18 }"
:auto-label-width="true"
:rules="formRules">
#foreach($field in ${table.fields})
#if("$field.propertyName" != "id")