vue-wiring-diagram 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-wiring-diagram",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "A Vue 3.x component for wiring diagram",
5
5
  "type": "module",
6
6
  "main": "dist/vue-wiring-diagram.umd.js",
@@ -82,7 +82,7 @@ import {portsOptions} from "../portsOptions.js";
82
82
  import {Document, View, ArrowDown} from "@element-plus/icons-vue";
83
83
  import WiringDiagramPreview from "../preview/index.vue";
84
84
  import ImageManagement from "../image-control/image-management.vue";
85
- import {get} from "packages/http.js";
85
+ import {get, instance} from "packages/http.js";
86
86
  import {
87
87
  clipboard,
88
88
  keyboard,
@@ -291,7 +291,7 @@ const initStencil = () => {
291
291
  const image = group?.pictureList.map(item => {
292
292
  const nodeOption = {
293
293
  shape: 'image',
294
- imageUrl: item?.imageUrl,
294
+ imageUrl: instance.defaults.baseURL + item?.imageUrl,
295
295
  ports: portsOptions,
296
296
  width: 64,
297
297
  height: 64,
@@ -539,4 +539,6 @@ onMounted(() => {
539
539
  @use "../../styles/editor";
540
540
  </style>
541
541
 
542
- <style></style>
542
+ <style lang="scss">
543
+ @use "../../styles/animation.scss";
544
+ </style>
@@ -14,7 +14,7 @@
14
14
  <el-table-column label="名称" prop="imageName" align="center"></el-table-column>
15
15
  <el-table-column label="图片" prop="imageUrl" align="center">
16
16
  <template #default="scope">
17
- <img :src="scope.row.imageUrl" alt="" style="width: 64px; height: 64px;">
17
+ <img :src="instance.defaults.baseURL + scope.row.imageUrl" alt="" style="width: 64px; height: 64px;">
18
18
  </template>
19
19
  </el-table-column>
20
20
  <el-table-column label="排序" prop="sort" align="center"></el-table-column>
@@ -62,7 +62,7 @@
62
62
  import {onMounted, reactive} from "vue";
63
63
  import groupForm from "./group-form.vue";
64
64
  import imageForm from "./image-form.vue";
65
- import {get, del} from "../../http.js";
65
+ import {get, del, instance} from "../../http.js";
66
66
  import {ElMessage, ElMessageBox} from "element-plus";
67
67
 
68
68
  // 数据集
@@ -248,6 +248,6 @@ onUnmounted(() => {
248
248
  })
249
249
  </script>
250
250
 
251
- <style scoped lang="scss">
252
-
251
+ <style lang="scss">
252
+ @use "../../styles/animation.scss";
253
253
  </style>
@@ -0,0 +1,11 @@
1
+ @keyframes forward-pipe {
2
+ to {
3
+ stroke-dashoffset: -1000
4
+ }
5
+ }
6
+
7
+ @keyframes reverse-pipe {
8
+ to {
9
+ stroke-dashoffset: 1000
10
+ }
11
+ }