feat:【antd】优化 bpmn-process-designer 组件图标
This commit is contained in:
@@ -645,7 +645,7 @@ onBeforeUnmount(() => {
|
|||||||
type="file"
|
type="file"
|
||||||
id="files"
|
id="files"
|
||||||
ref="refFile"
|
ref="refFile"
|
||||||
style="display: none"
|
class="hidden"
|
||||||
accept=".xml, .bpmn"
|
accept=".xml, .bpmn"
|
||||||
@change="importLocalFile"
|
@change="importLocalFile"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { inject, nextTick, ref, watch } from 'vue';
|
import { inject, nextTick, ref, watch } from 'vue';
|
||||||
|
|
||||||
import { IconifyIcon, PlusOutlined } from '@vben/icons';
|
import { IconifyIcon } from '@vben/icons';
|
||||||
import { cloneDeep } from '@vben/utils';
|
import { cloneDeep } from '@vben/utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -290,7 +290,7 @@ watch(
|
|||||||
<div class="element-drawer__button">
|
<div class="element-drawer__button">
|
||||||
<Button type="primary" size="small" @click="openListenerForm(null, -1)">
|
<Button type="primary" size="small" @click="openListenerForm(null, -1)">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<PlusOutlined />
|
<IconifyIcon icon="ep:plus" />
|
||||||
</template>
|
</template>
|
||||||
添加监听器
|
添加监听器
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { inject, nextTick, ref, watch } from 'vue';
|
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 { cloneDeep } from '@vben/utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -300,11 +300,11 @@ watch(
|
|||||||
</Table>
|
</Table>
|
||||||
<div class="element-drawer__button">
|
<div class="element-drawer__button">
|
||||||
<Button size="small" type="primary" @click="openListenerForm(null)">
|
<Button size="small" type="primary" @click="openListenerForm(null)">
|
||||||
<template #icon><PlusOutlined /></template>
|
<template #icon> <IconifyIcon icon="ep:plus" /></template>
|
||||||
添加监听器
|
添加监听器
|
||||||
</Button>
|
</Button>
|
||||||
<Button size="small" @click="openProcessListenerDialog">
|
<Button size="small" @click="openProcessListenerDialog">
|
||||||
<template #icon><SelectOutlined /></template>
|
<template #icon> <IconifyIcon icon="ep:select" /></template>
|
||||||
选择监听器
|
选择监听器
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ watch(
|
|||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
<div v-else>除了UserTask以外节点的多实例待实现</div>
|
<div v-else>除了UserTask以外节点的多实例待实现</div>
|
||||||
<!-- 与Simple设计器配置合并,保留以前的代码 -->
|
<!-- 与Simple设计器配置合并,保留以前的代码 -->
|
||||||
<Form style="display: none">
|
<Form class="hidden">
|
||||||
<FormItem label="快捷配置">
|
<FormItem label="快捷配置">
|
||||||
<Button size="small" @click="() => changeConfig('依次审批')">
|
<Button size="small" @click="() => changeConfig('依次审批')">
|
||||||
依次审批
|
依次审批
|
||||||
@@ -467,7 +467,7 @@ watch(
|
|||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<!-- add by 芋艿:由于「元素变量」暂时用不到,所以这里 display 为 none -->
|
<!-- add by 芋艿:由于「元素变量」暂时用不到,所以这里 display 为 none -->
|
||||||
<FormItem label="元素变量" key="elementVariable" style="display: none">
|
<FormItem label="元素变量" key="elementVariable" class="hidden">
|
||||||
<Input
|
<Input
|
||||||
v-model:value="loopInstanceForm.elementVariable"
|
v-model:value="loopInstanceForm.elementVariable"
|
||||||
allow-clear
|
allow-clear
|
||||||
@@ -485,7 +485,7 @@ watch(
|
|||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<!-- add by 芋艿:由于「异步状态」暂时用不到,所以这里 display 为 none -->
|
<!-- add by 芋艿:由于「异步状态」暂时用不到,所以这里 display 为 none -->
|
||||||
<FormItem label="异步状态" key="async" style="display: none">
|
<FormItem label="异步状态" key="async" class="hidden">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
v-model:checked="loopInstanceForm.asyncBefore"
|
v-model:checked="loopInstanceForm.asyncBefore"
|
||||||
@change="() => updateLoopAsync('asyncBefore')"
|
@change="() => updateLoopAsync('asyncBefore')"
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ watch(
|
|||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<Form>
|
<Form>
|
||||||
<!-- add by 芋艿:由于「异步延续」暂时用不到,所以这里 display 为 none -->
|
<!-- add by 芋艿:由于「异步延续」暂时用不到,所以这里 display 为 none -->
|
||||||
<FormItem label="异步延续" style="display: none">
|
<FormItem label="异步延续" class="hidden">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
v-model:checked="taskConfigForm.asyncBefore"
|
v-model:checked="taskConfigForm.asyncBefore"
|
||||||
@change="changeTaskAsync"
|
@change="changeTaskAsync"
|
||||||
|
|||||||
@@ -3,12 +3,7 @@ import type { Ref } from 'vue';
|
|||||||
|
|
||||||
import { computed, nextTick, onMounted, ref, toRaw, watch } from 'vue';
|
import { computed, nextTick, onMounted, ref, toRaw, watch } from 'vue';
|
||||||
|
|
||||||
import {
|
import { IconifyIcon } from '@vben/icons';
|
||||||
CheckCircleFilled,
|
|
||||||
ExclamationCircleFilled,
|
|
||||||
IconifyIcon,
|
|
||||||
QuestionCircleFilled,
|
|
||||||
} from '@vben/icons';
|
|
||||||
|
|
||||||
import { Button, DatePicker, Input, Modal, Tooltip } from 'ant-design-vue';
|
import { Button, DatePicker, Input, Modal, Tooltip } from 'ant-design-vue';
|
||||||
|
|
||||||
@@ -240,7 +235,11 @@ watch(
|
|||||||
循环
|
循环
|
||||||
</Button>
|
</Button>
|
||||||
</Button.Group>
|
</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>
|
||||||
<div style="display: flex; align-items: center; margin-top: 10px">
|
<div style="display: flex; align-items: center; margin-top: 10px">
|
||||||
<span>条件:</span>
|
<span>条件:</span>
|
||||||
@@ -254,11 +253,15 @@ watch(
|
|||||||
>
|
>
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
<Tooltip v-if="!valid" title="格式错误" placement="top">
|
<Tooltip v-if="!valid" title="格式错误" placement="top">
|
||||||
<ExclamationCircleFilled style="color: orange" />
|
<IconifyIcon
|
||||||
|
icon="ant-design:exclamation-circle-filled"
|
||||||
|
class="text-orange-400"
|
||||||
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip :title="helpText" placement="top">
|
<Tooltip :title="helpText" placement="top">
|
||||||
<QuestionCircleFilled
|
<IconifyIcon
|
||||||
style="color: #409eff; cursor: pointer"
|
icon="ant-design:question-circle-filled"
|
||||||
|
class="cursor-pointer text-[#409eff]"
|
||||||
@click="showHelp = true"
|
@click="showHelp = true"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -351,7 +354,3 @@ watch(
|
|||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* 相关样式 */
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -61,15 +61,3 @@ export const MenuOutlined = createIconifyIcon('ant-design:menu-outlined');
|
|||||||
export const PlusOutlined = createIconifyIcon('ant-design:plus-outlined');
|
export const PlusOutlined = createIconifyIcon('ant-design:plus-outlined');
|
||||||
|
|
||||||
export const SelectOutlined = createIconifyIcon('ant-design:select-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',
|
|
||||||
);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user