1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| <template>
| <div class="title-box">
| <el-button
| icon="ele-ArrowLeft"
| link
| style="margin-right: 10px; margin-left: 10px; width: 40px"
| size="small"
| @click="handleExitClick"
| >
| </el-button>
| <div class="title-icon"></div>
| <div style="flex: 1">
| <div class="title">{{ workPage?.PageName }}</div>
| <ToolbarMenu v-for="(content, index) in menuList" :key="'bar-' + index" :content="content" />
| </div>
| </div>
| </template>
|
| <script setup lang="ts">
| import ToolbarMenu from '/@/components/flow/ToolbarMenu.vue';
|
| const props = defineProps({
| menuList: {
| type: Array,
| default: () => {},
| },
| workPage: {
| type: Object,
| default: {} as any,
| },
| });
|
| const emits = defineEmits(['exitFlow']);
| const handleExitClick = () => {
| emits('exitFlow');
| };
| </script>
| <style scoped lang="scss">
| .title-icon {
| width: 40px;
| height: 40px;
| background: #d8e8ff;
| position: relative;
| margin-right: 5px;
| }
| .title-icon:before {
| content: ' ';
| display: block;
| width: 18px;
| height: 19px;
| background: #3c8efd;
| position: absolute;
| bottom: 0;
| }
| .title-box {
| display: flex;
|
| align-items: center;
| background-color: white;
| .title {
| color: #191919;
| font-weight: 600;
| font-size: 18px;
| margin-left: 10px;
| display: inline-block;
| }
| }
| </style>
|
|