一、效果

二、实现
<template>
<div :class="$style.jointIcon">
<div
:class="[
$style.jointIconLeft,
leftFill && $style.fillColor,
leftFill && $style.level,
]"
></div>
<div
:class="[
$style.jointIconRight,
rightFill && $style.fillColor,
{ [$style.level]: rightLevel },
]"
></div>
<div :class="$style.oval" v-if="type === JointType.Intersection"></div>
</div>
</template>
<script>
import { Component, Vue, Prop } from 'vue-property-decorator';
import { JointType } from '@/views/data-flow-design/data/utils/enum';
@Component()
export default class JointIcon extends Vue {
/**@name 连接类型 */
@Prop({ type: String, default: 'ALL' }) type;