feat:【antd】优化 bpmn-process-designer 组件图标

This commit is contained in:
puhui999
2025-09-25 11:52:26 +08:00
parent 510825bb49
commit 1f1a26bc11
7 changed files with 23 additions and 36 deletions

View File

@@ -645,7 +645,7 @@ onBeforeUnmount(() => {
type="file"
id="files"
ref="refFile"
style="display: none"
class="hidden"
accept=".xml, .bpmn"
@change="importLocalFile"
/>

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { inject, nextTick, ref, watch } from 'vue';
import { IconifyIcon, PlusOutlined } from '@vben/icons';
import { IconifyIcon } from '@vben/icons';
import { cloneDeep } from '@vben/utils';
import {
@@ -290,7 +290,7 @@ watch(
<div class="element-drawer__button">
<Button type="primary" size="small" @click="openListenerForm(null, -1)">
<template #icon>
<PlusOutlined />
<IconifyIcon icon="ep:plus" />
</template>
添加监听器
</Button>

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { inject, nextTick, ref, watch } from 'vue';
import { IconifyIcon, PlusOutlined, SelectOutlined } from '@vben/icons';
import { IconifyIcon } from '@vben/icons';
import { cloneDeep } from '@vben/utils';
import {
@@ -300,11 +300,11 @@ watch(
</Table>
<div class="element-drawer__button">
<Button size="small" type="primary" @click="openListenerForm(null)">
<template #icon><PlusOutlined /></template>
<template #icon> <IconifyIcon icon="ep:plus" /></template>
添加监听器
</Button>
<Button size="small" @click="openProcessListenerDialog">
<template #icon><SelectOutlined /></template>
<template #icon> <IconifyIcon icon="ep:select" /></template>
选择监听器
</Button>
</div>

View File

@@ -421,7 +421,7 @@ watch(
</RadioGroup>
<div v-else>除了UserTask以外节点的多实例待实现</div>
<!-- 与Simple设计器配置合并保留以前的代码 -->
<Form style="display: none">
<Form class="hidden">
<FormItem label="快捷配置">
<Button size="small" @click="() => changeConfig('依次审批')">
依次审批
@@ -467,7 +467,7 @@ watch(
/>
</FormItem>
<!-- add by 芋艿:由于「元素变量」暂时用不到,所以这里 display 为 none -->
<FormItem label="元素变量" key="elementVariable" style="display: none">
<FormItem label="元素变量" key="elementVariable" class="hidden">
<Input
v-model:value="loopInstanceForm.elementVariable"
allow-clear
@@ -485,7 +485,7 @@ watch(
/>
</FormItem>
<!-- add by 芋艿:由于「异步状态」暂时用不到,所以这里 display 为 none -->
<FormItem label="异步状态" key="async" style="display: none">
<FormItem label="异步状态" key="async" class="hidden">
<Checkbox
v-model:checked="loopInstanceForm.asyncBefore"
@change="() => updateLoopAsync('asyncBefore')"

View File

@@ -65,7 +65,7 @@ watch(
<div class="panel-tab__content">
<Form>
<!-- add by 芋艿由于异步延续暂时用不到所以这里 display none -->
<FormItem label="异步延续" style="display: none">
<FormItem label="异步延续" class="hidden">
<Checkbox
v-model:checked="taskConfigForm.asyncBefore"
@change="changeTaskAsync"

View File

@@ -3,12 +3,7 @@ import type { Ref } from 'vue';
import { computed, nextTick, onMounted, ref, toRaw, watch } from 'vue';
import {
CheckCircleFilled,
ExclamationCircleFilled,
IconifyIcon,
QuestionCircleFilled,
} from '@vben/icons';
import { IconifyIcon } from '@vben/icons';
import { Button, DatePicker, Input, Modal, Tooltip } from 'ant-design-vue';
@@ -240,7 +235,11 @@ watch(
循环
</Button>
</Button.Group>
<CheckCircleFilled v-if="valid" style="color: green; margin-left: 8px" />
<IconifyIcon
icon="ant-design:check-circle-filled"
v-if="valid"
style="color: green; margin-left: 8px"
/>
</div>
<div style="display: flex; align-items: center; margin-top: 10px">
<span>条件</span>
@@ -254,11 +253,15 @@ watch(
>
<template #suffix>
<Tooltip v-if="!valid" title="格式错误" placement="top">
<ExclamationCircleFilled style="color: orange" />
<IconifyIcon
icon="ant-design:exclamation-circle-filled"
class="text-orange-400"
/>
</Tooltip>
<Tooltip :title="helpText" placement="top">
<QuestionCircleFilled
style="color: #409eff; cursor: pointer"
<IconifyIcon
icon="ant-design:question-circle-filled"
class="cursor-pointer text-[#409eff]"
@click="showHelp = true"
/>
</Tooltip>
@@ -351,7 +354,3 @@ watch(
</Modal>
</div>
</template>
<style scoped>
/* 相关样式 */
</style>

View File

@@ -61,15 +61,3 @@ export const MenuOutlined = createIconifyIcon('ant-design:menu-outlined');
export const PlusOutlined = createIconifyIcon('ant-design:plus-outlined');
export const SelectOutlined = createIconifyIcon('ant-design:select-outlined');
export const CheckCircleFilled = createIconifyIcon(
'ant-design:check-circle-filled',
);
export const ExclamationCircleFilled = createIconifyIcon(
'ant-design:exclamation-circle-filled',
);
export const QuestionCircleFilled = createIconifyIcon(
'ant-design:question-circle-filled',
);