feat: 替换全局的删除iconClass

This commit is contained in:
xinxin.wu 2024-07-12 17:44:20 +08:00 committed by Craftsman
parent 3f03f1c5ff
commit a934708da0
18 changed files with 18 additions and 18 deletions

View File

@ -168,7 +168,7 @@
<a-tooltip :content="t('ms.add.attachment.remove')">
<MsButton type="text" status="secondary" :disabled="props.disabled" @click="handleClose(file)">
<MsIcon
type="icon-icon_delete-trash_outlined"
type="icon-icon_delete-trash_outlined1"
:class="props.disabled ? '' : 'hover:text-[rgb(var(--primary-5))]'"
size="16"
/>

View File

@ -111,7 +111,7 @@
eventTag: 'delete',
permission: ['PROJECT_BUG:READ+COMMENT', 'FUNCTIONAL_CASE:READ+COMMENT'],
danger: true,
icon: 'icon-icon_delete-trash_outlined',
icon: 'icon-icon_delete-trash_outlined1',
},
];

View File

@ -179,7 +179,7 @@
</a-dropdown>
<a-tooltip v-else-if="props.canShowDeleteMenu" :content="t('common.delete')">
<MsButton type="icon" class="ms-minder-node-float-menu-icon-button" @click="handleMinderMenuSelect('delete')">
<MsIcon type="icon-icon_delete-trash_outlined" class="text-[var(--color-text-4)]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="text-[var(--color-text-4)]" />
</MsButton>
</a-tooltip>
</template>

View File

@ -191,7 +191,7 @@ const Image = TiptapImage.extend<ExtensionOptions & ImageOptions>({
icon: markRaw(
// eslint-disable-next-line vue/one-component-per-file
defineComponent({
template: "<MsIcon type='icon-icon_delete-trash_outlined' size='16' />",
template: "<MsIcon type='icon-icon_delete-trash_outlined1' size='16' />",
})
),
title: t('common.delete'),

View File

@ -41,7 +41,7 @@
class="error-6 text-[rgb(var(--danger-6))]"
@click="handleDelete"
>
<MsIcon type="icon-icon_delete-trash_outlined" class="text-[rgb(var(--danger-6))]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="text-[rgb(var(--danger-6))]" />
{{ t('common.delete') }}
</a-doption>
</template>

View File

@ -23,7 +23,7 @@
class="error-6 text-[rgb(var(--danger-6))]"
@click="handleDelete"
>
<MsIcon type="icon-icon_delete-trash_outlined" class="text-[rgb(var(--danger-6))]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="text-[rgb(var(--danger-6))]" />
{{ t('common.delete') }}
</a-doption>
</template>

View File

@ -46,7 +46,7 @@
value="delete"
class="error-6 text-[rgb(var(--danger-6))]"
>
<MsIcon type="icon-icon_delete-trash_outlined" class="text-[rgb(var(--danger-6))]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="text-[rgb(var(--danger-6))]" />
{{ t('common.delete') }}
</a-doption>
</template>

View File

@ -33,7 +33,7 @@
status="secondary"
@click="handleDelete"
>
<MsIcon type="icon-icon_delete-trash_outlined" />
<MsIcon type="icon-icon_delete-trash_outlined1" />
{{ t('common.delete') }}
</MsButton>
</div>

View File

@ -26,7 +26,7 @@
:class="getActiveClass('recycle')"
@click="setActiveFolder('recycle')"
>
<MsIcon type="icon-icon_delete-trash_outlined" class="folder-icon" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="folder-icon" />
<div class="folder-name mx-[4px]">{{ t('caseManagement.featureCase.recycle') }}</div>
<div class="folder-count">({{ recycleModulesCount || 0 }})</div>
</div>

View File

@ -86,7 +86,7 @@
@replace="handleReplace"
/>
<MsButton type="icon" status="secondary" class="mr-4" @click="emit('deleteStep')">
<MsIcon type="icon-icon_delete-trash_outlined" />
<MsIcon type="icon-icon_delete-trash_outlined1" />
{{ t('common.delete') }}
</MsButton>
</div>

View File

@ -52,7 +52,7 @@
@replace="handleReplace"
/>
<MsButton class="mr-4" type="icon" status="secondary" @click="handleDelete">
<MsIcon type="icon-icon_delete-trash_outlined" />
<MsIcon type="icon-icon_delete-trash_outlined1" />
{{ t('common.delete') }}
</MsButton>
</div>

View File

@ -17,7 +17,7 @@
<a-divider margin="0" />
<div class="case">
<div class="flex items-center px-[20px]" :class="getActiveClass('recycle')" @click="redirectRecycle()">
<MsIcon type="icon-icon_delete-trash_outlined" class="folder-icon" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="folder-icon" />
<div class="folder-name mx-[4px]">{{ t('apiScenario.tree.recycleBin') }}</div>
<div class="folder-count">({{ recycleModulesCount || 0 }})</div>
</div>

View File

@ -96,7 +96,7 @@
class="error-6 text-[rgb(var(--danger-6))]"
@click="deleteHandler"
>
<MsIcon type="icon-icon_delete-trash_outlined" class="font-[16px] text-[rgb(var(--danger-6))]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="font-[16px] text-[rgb(var(--danger-6))]" />
{{ t('common.delete') }}
</a-doption>
</template>

View File

@ -79,7 +79,7 @@
<MsIcon type="icon-icon_copy_filled" class="font-[16px]" />{{ t('common.copy') }}</a-doption
>
<a-doption class="error-6 text-[rgb(var(--danger-6))]" @click="deleteHandler">
<MsIcon type="icon-icon_delete-trash_outlined" class="font-[16px] text-[rgb(var(--danger-6))]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="font-[16px] text-[rgb(var(--danger-6))]" />
{{ t('common.delete') }}
</a-doption>
</template>

View File

@ -113,7 +113,7 @@
:class="getActiveClass('recycle')"
@click="setActiveFolder('recycle')"
>
<MsIcon type="icon-icon_delete-trash_outlined" class="folder-icon" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="folder-icon" />
<div class="folder-name mx-[4px]">{{ t('caseManagement.featureCase.recycle') }}</div>
<div class="folder-count">({{ recycleModulesCount.all || 0 }})</div>
</div>

View File

@ -112,7 +112,7 @@
<a-tooltip :content="t('common.delete')">
<MsIcon
v-if="formItem.fieldName != t('case.caseLevel')"
type="icon-icon_delete-trash_outlined"
type="icon-icon_delete-trash_outlined1"
size="16"
@click="deleteSelectedField(formItem as DefinedFieldItem)"
/>

View File

@ -157,7 +157,7 @@
</a-tooltip>
<a-divider v-if="allowEdit(item.value)" direction="vertical" class="!m-0 !mx-2" />
<a-tooltip :content="t('common.delete')">
<MsIcon type="icon-icon_delete-trash_filled" size="16" @click="deleteCard(item)" />
<MsIcon type="icon-icon_delete-trash_outlined1" size="16" @click="deleteCard(item)" />
</a-tooltip>
</div>
</div>

View File

@ -57,7 +57,7 @@
{{ t(detail.followFlag ? 'common.forked' : 'common.fork') }}
</MsButton>
<MsButton v-if="detail.status === 'ARCHIVED'" status="danger" type="button" @click="deleteHandler">
<MsIcon type="icon-icon_delete-trash_outlined" class="mr-[8px] text-[rgb(var(--danger-6))]" />
<MsIcon type="icon-icon_delete-trash_outlined1" class="mr-[8px] text-[rgb(var(--danger-6))]" />
<span class="text-[rgb(var(--danger-6))]"> {{ t('common.delete') }}</span>
</MsButton>
<MsTableMoreAction v-else :list="moreAction" @select="handleMoreSelect">