style: 高级筛选-名称报错信息&添加条件按钮的禁用

--bug=1047063 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047063
--bug=1047060 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047060
This commit is contained in:
teukkk 2024-09-25 12:41:04 +08:00 committed by Craftsman
parent 623b69c6b9
commit da6c3d796f

View File

@ -161,7 +161,12 @@
</a-button> </a-button>
</div> </div>
</a-form> </a-form>
<MsButton type="text" class="mt-[5px] w-[fit-content]" @click="handleAddItem"> <MsButton
:disabled="formModel.list?.length === [...props.configList, ...(props.customList ?? [])].length"
type="text"
class="mt-[5px] w-[fit-content]"
@click="handleAddItem"
>
<MsIcon type="icon-icon_add_outlined" class="mr-[3px]" /> <MsIcon type="icon-icon_add_outlined" class="mr-[3px]" />
{{ t('advanceFilter.addCondition') }} {{ t('advanceFilter.addCondition') }}
</MsButton> </MsButton>
@ -528,6 +533,10 @@
async (val) => { async (val) => {
// //
if (!val) { if (!val) {
if (isShowNameInput.value) {
formModel.value.name = savedFormModel.value.name;
isShowNameInput.value = false;
}
handleCancelSaveAsView(); handleCancelSaveAsView();
if (formModel.value?.id !== props.currentView) { if (formModel.value?.id !== props.currentView) {
await getUserViewDetail(props.currentView); await getUserViewDetail(props.currentView);
@ -563,7 +572,7 @@
height: 60px; height: 60px;
.arco-form-item-content, .arco-form-item-content,
.arco-input-wrapper, .arco-input-wrapper,
.arco-form-item-wrapper-col { .arco-form-item-content-wrapper {
height: 26px; height: 26px;
min-height: 26px; min-height: 26px;
} }