style: 资源池批量添加修改间距样式

This commit is contained in:
xinxin.wu 2024-05-29 18:03:26 +08:00 committed by 刘瑞斌
parent 4005c58c5f
commit f3b3768548
1 changed files with 14 additions and 6 deletions

View File

@ -157,11 +157,7 @@
</a-radio-group>
</a-form-item>
<template v-if="isShowNodeResources">
<a-form-item
field="addType"
class="form-item"
:content-class="licenseStore.hasLicense() ? `min-h-[16px] mb-0` : ''"
>
<a-form-item field="addType" :class="`${licenseStore.hasLicense() ? '' : 'has-license-class'} form-item`">
<template #label>
<div class="flex items-center">
{{ t('system.resourcePool.addResource') }}
@ -198,7 +194,7 @@
</a-radio-group>
</div>
</a-popconfirm>
<a-radio-group v-model:model-value="form.addType" v-xpack type="button" @change="handleTypeChange">
<a-radio-group v-else v-model:model-value="form.addType" v-xpack type="button" @change="handleTypeChange">
<a-radio value="single">{{ t('system.resourcePool.singleAdd') }}</a-radio>
<a-radio v-xpack value="multiple">
<a-tooltip :content="t('system.resourcePool.changeAddTypeTip')" position="tl" mini
@ -885,4 +881,16 @@
@apply mb-0;
}
}
.has-license-class {
@apply mb-2;
:deep(.arco-form-item-content-wrapper) {
min-height: 0;
}
:deep(.arco-form-item-wrapper-col) {
min-height: 0;
}
:deep(.arco-form-item-content) {
min-height: 0;
}
}
</style>