Skip to content

Commit

Permalink
refactor: 💡 更换工作流判断图标
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaodeezhu committed Feb 15, 2022
1 parent 33305ad commit 4cd05e7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
Binary file added src/assets/panduanti.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions src/components/dag/PowerWorkflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,24 @@
<i class="el-icon-document-add"></i>
</el-tooltip>
</div>
<div @click="importJudgeNode">
<div @click="importJudgeNode" v-if="mode !== 'view'">
<el-tooltip
:content="$t('message.condition')"
placement="top"
effect="light"
>
<i class="el-icon-connection"></i>
<i class="iconfont icon-panduanti"></i>
<!-- <img src="../../assets/panduanti.png" alt="" width="16" height="16"> -->
</el-tooltip>
</div>
<div @click="importWorkflowNode">
<div @click="importWorkflowNode" v-if="mode !== 'view'">
<el-tooltip
:content="$t('message.workflowChild')"
placement="top"
effect="light"
>
<i class="el-icon-c-scale-to-original"></i>
<!-- <i class="el-icon-c-scale-to-original"></i> -->
<i class="iconfont icon-workflow_"></i>
</el-tooltip>
</div>
<slot name="tool"></slot>
Expand Down Expand Up @@ -432,6 +434,9 @@ export default {
*::after {
box-sizing: border-box;
}
.iconfont {
font-size: 18px !important;
}
.power-power-flow {
border: 1px solid #d0d0d0;
border-top: 0px;
Expand Down
21 changes: 21 additions & 0 deletions src/iconfont.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@font-face {
font-family: "iconfont"; /* Project id */
src: url('./iconfont.ttf?t=1644910247420') format('truetype');
}

.iconfont {
font-family: "iconfont" !important;
font-size: 14px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-workflow_:before {
content: "\e60e";
}

.icon-panduanti:before {
content: "\e624";
}

Binary file added src/iconfont.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Message } from 'element-ui';
import './styles.scss'
import './plugins/element.js'
import i18n from './i18n/i18n'
import './iconfont.css';


// axios 负责统一拦截处理 ResultDTO,fly 负责处理不需要拦截的请求
Expand Down

0 comments on commit 4cd05e7

Please sign in to comment.