vue-wiring-diagram 1.1.21 → 1.1.22
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/dist/vue-wiring-diagram.es.js +1847 -1844
- package/dist/vue-wiring-diagram.umd.js +27 -27
- package/package.json +1 -1
- package/packages/components/preview/index.vue +10 -2
package/package.json
CHANGED
|
@@ -248,14 +248,22 @@ const setPipe = (cell, value) => {
|
|
|
248
248
|
if (!cell.data.isCondition) {
|
|
249
249
|
return false
|
|
250
250
|
}
|
|
251
|
+
console.log('进入设置管道阶段start:', cell)
|
|
252
|
+
console.log('管道条件判断设置:', cell.data.condition)
|
|
251
253
|
for (let i = 0; i < cell.data.condition.length; i++) {
|
|
254
|
+
console.log('┌──────单个设置管道阶段start:───────┐')
|
|
255
|
+
console.log('条件:', cell.data.condition[i])
|
|
256
|
+
console.log('判断条件是否通过:', Number(value) > cell.data.condition[i].min && Number(value) <= cell.data.condition[i].max)
|
|
252
257
|
if (Number(value) > cell.data.condition[i].min && Number(value) <= cell.data.condition[i].max) {
|
|
253
|
-
|
|
258
|
+
console.log('管道条件判断设置的动画:', setPipeDirection(cell.data.condition[i].direction))
|
|
259
|
+
cell.attr('pipe/style/animation', setPipeDirection(cell.data.condition[i].direction))
|
|
260
|
+
console.log('设置过后的属性:', cell)
|
|
261
|
+
console.log('└────────单个条件结束判断────────┘')
|
|
254
262
|
return false
|
|
255
263
|
}
|
|
264
|
+
console.log('└─────────单个条件结束判断───────┘')
|
|
256
265
|
}
|
|
257
266
|
}
|
|
258
|
-
|
|
259
267
|
/**
|
|
260
268
|
* 设置箭头
|
|
261
269
|
* @param cell
|