风险矩阵配置删除二次确认添加
This commit is contained in:
@@ -1177,9 +1177,20 @@ onMounted(() => {
|
||||
<label v-for="(item, i) in dimForm.l" :key="'l' + i" class="text-center text-xs text-slate-400">
|
||||
<div class="flex items-center justify-center gap-2 mb-1">
|
||||
{{ item.key }}
|
||||
<NButton v-if="dimForm.l.length > 5" text type="error" @click="deleteL(i)">
|
||||
<Icon icon="akar-icons:circle-minus" class="size-16px" />
|
||||
</NButton>
|
||||
<NPopconfirm
|
||||
v-if="dimForm.l.length > 5"
|
||||
positive-text="确定"
|
||||
:positiveButtonProps="{ size: 'tiny' }"
|
||||
:negativeButtonProps="{ size: 'tiny' }"
|
||||
@positive-click="deleteL(i)"
|
||||
>
|
||||
<template #trigger>
|
||||
<NButton text type="error">
|
||||
<Icon icon="akar-icons:circle-minus" class="size-16px" />
|
||||
</NButton>
|
||||
</template>
|
||||
确定删除吗?
|
||||
</NPopconfirm>
|
||||
</div>
|
||||
<NInput v-model:value="item.label" size="small" class="mt-0.5 text-center text-xs" />
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user