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
| <template>
| <div
| v-drag="true"
| class="exportBox"
| >
| <div class="exportTitle">
| <label>出图列表</label>
| <el-icon
| @click="setSpatialClose"
| :size="20"
| >
| <Close />
| </el-icon>
| </div>
| </div>
| </template>
|
| <script lang="ts" setup>
| import {
| ref,
| onMounted,
| onBeforeUnmount,
| reactive,
| defineProps,
| defineEmits,
| } from "vue";
| import { User, Lock } from "@element-plus/icons-vue";
| import { useStore } from "vuex"; // 引入useStore 方法
|
| const store = useStore(); // 该方法用于返回store 实例
| const emits = defineEmits(["SETspatialClose"]);
| const setSpatialClose = () => {
| store.state.setExportList = false;
| };
| </script>
|
| <style lang="less" scoped>
| .exportBox {
| width: 800px;
| height: 400px;
| display: flex;
| position: absolute;
| bottom: 10px;
| right: 50px;
| background: rgba(7, 8, 14, 0.8);
| border: 1px solid #d6e4ff;
| z-index: 50;
| box-shadow: inset 0px 10px 40px 10px rgba(38, 47, 71, 1);
| .exportTitle {
| padding: 10px;
| width: calc(100% - 20px);
| color: #d6e4ff;
| display: flex;
| justify-content: space-between;
| align-items: center;
| height: 30px;
| label {
| font-size: 16px;
| }
| }
| }
| </style>
|
|