💄 修改表单宽度.

This commit is contained in:
lijiahang
2024-03-08 13:42:54 +08:00
parent 4cef9b358e
commit b392ddf0e7
28 changed files with 80 additions and 87 deletions

View File

@@ -40,7 +40,6 @@
size="small"
ref="formRef"
label-align="right"
:style="{ width: '320px' }"
:label-col-props="{ span: 6 }"
:wrapper-col-props="{ span: 18 }"
@keyup.enter="() => fetchCardData()">

View File

@@ -16,8 +16,7 @@
<a-form :model="formModel"
ref="formRef"
label-align="right"
:style="{ width: '460px' }"
:label-col-props="{ span: 6 }"
:label-col-props="{ span: 5 }"
:wrapper-col-props="{ span: 18 }"
:rules="formRules">
<!-- 名称 -->
@@ -31,7 +30,6 @@
<!-- 用户密码 -->
<a-form-item field="password"
label="用户密码"
style="justify-content: space-between;"
:rules="passwordRules">
<a-input-password v-model="formModel.password"
:disabled="!isAddHandle && !formModel.useNewPassword"
@@ -182,8 +180,10 @@
</script>
<style lang="less" scoped>
@switch-width: 94px;
.password-input {
width: 240px;
width: calc(100% - @switch-width);
}
.password-input-full {
@@ -191,6 +191,7 @@
}
.password-switch {
width: @switch-width;
margin-left: 16px;
}
</style>