zydx-plus 1.35.598 → 1.35.600

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.
@@ -16,188 +16,36 @@
16
16
  </div>
17
17
  </div>
18
18
  <div :id="id" class="mindMapContainer"></div>
19
- <div class="node-style" :ref="id+'e'" :class="{'node-s': trans, 'node-h': !trans}">
20
- <div class="style-li">
21
- <img @click="nodeStyle"
22
- src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADTFJREFUeF7t3VmspEUVB/A/r5oYH+TFBF/UFwcSjcsD4oOJaNQXjBERXMBdwRFhcEMdkUWRGVHGfQOVRVEU3AVBdBhGNlcWFRAFFBTcd0UxxVTP3NvTfbu66vxr/Xcy4WG+OlV16vzu+b6+Pc0e0EsZUAbmZmAP5UYZUAbmZ0BAVB3KwBoZEBCVhzIgIKoBZSAuA+ogcXnTqEEyICCDHLS2GZcBAYnLm0YNkgEBGeSgtc24DAhIXN40apAMCMggB61txmXAEshDAewL4B4AWwHcHrckjVIGgjMwqTk34HIANwePDLzQAshbATwTwN5Tc24HcBqATweuRZcpA6EZOBLAi2bU3LUAzgFwUmigRdelAHkMgAsAPHjBJA7I8QCuX7QY/b0ysCADjwBwIoADFlznoOxjkc0UIPcusYDrABwoJEtkTJdOZ8DhOBfAusDUXArgiYHXzr0sFsixAE5YcnIhWTJhunxnBpbFMRm4HsCWlDzGAHkQgLsiJxWSyMQNPCwWxyRlewK4OzZ/MUAeD+Cy2AkBCElC8gYbmorDpWs/ANti8xYD5IUAPhY7oR8nJIkJHGC4BQ6XJvdu18dj8xUD5GgAm2InXDFOSAyS2GkIKxwuPRsAbI7NUwyQ/QFcGDvh1DghMUpkR2Escbi0PBnARbH5iQGyF4BbYyecMU5IDJPZeChrHC4dDwFwW2xeYoC4udxvKw+KnVRIDDPXTygGDves/OKUFMUCeZR/J+t+KZPrdsswe22HYuBwdyZPAnBn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FAPkqQDct+ClvIQjJXvjjLVA8jQA7qtNo14xQB4G4Mao2XYMEo6E5A04NBXJwwHcFJu3GCBurqsBPDpiUuGISJqG3Pe7sY0RedgGYL+IcTuHxAI5GMBZS04sHEsmTJevykAMkn0BbE/JYywQN6f75runB04uHIGJ0mVrZmAZJEcBODU1nylA3NxPAbAZwLo5C3H/61/3jpf7r17KgEUGDvC3W4+cE+wKAIcDuMZislQgbg0PAHAQgCf4P+7z+BcDuATAORaLVAxlYCoDD/QfRpzUnPvrrf7PmQDMvhneAohOTxnoNgMC0u3RamMWGRAQiywqRrcZEJBuj1Ybs8iAgFhkUTG6zYCAdHu02phFBgTEIouK0W0GBKTbo9XGLDIgIBZZVIxuMyAg3R6tNmaRAQGxyKJidJsBAen2aLUxiwwIiEUWFaPbDAhIt0erjVlkQEAssqgY3WZAQLo9Wm3MIgP/B7mSJva6gFwqAAAAAElFTkSuQmCC"
23
- alt=""/>
24
- <div class="style-title">文字</div>
25
- <div class="style-list">
26
- <div class="node-left zIndex2">
27
- <span>字号</span>
28
- <Select :options="optionSize" v-model:value="sizeValue"></Select>
29
- </div>
30
- <div class="node-left padd zIndex2">
31
- <span>行高</span>
32
- <Select :options="optionRow" v-model:value="rowValue"></Select>
33
- </div>
34
- </div>
35
- <div class="node-but">
36
- <button @click="colorTap($event,'color')">颜色</button>
37
- <button :style="{'background-color': (boldAct)? '#549688': '#fff','color': (boldAct)? '#fff': '#333'}"
38
- @click="bolds">粗体
39
- </button>
40
- <button :style="{'background-color': (italicAct)? '#549688': '#fff','color': (italicAct)? '#fff': '#333'}"
41
- @click="italics">斜体
42
- </button>
43
- <button :style="{'background-color': (scribeAct)? '#549688': '#fff','color': (scribeAct)? '#fff': '#333'}"
44
- @click="scribes">划线
45
- </button>
46
- </div>
47
- </div>
48
- <div class="style-li">
49
- <div class="style-title">边框</div>
50
- <div class="style-list">
51
- <div class="node-left">
52
- <span>颜色</span>
53
- <div @click="colorTap($event,'borderColor')" class="backColor"></div>
54
- </div>
55
- <div class="node-left padd zIndex3">
56
- <span>样式</span>
57
- <Select :options="optionLine" v-model:value="styleValue"></Select>
58
- </div>
59
- </div>
60
- <div class="style-list">
61
- <div class="node-left zIndex3">
62
- <span>宽度</span>
63
- <Select :options="optionWidth" v-model:value="widthValue"></Select>
64
- </div>
65
- <div class="node-left padd zIndex4">
66
- <span>圆角</span>
67
- <Select :options="optionWidth" v-model:value="filletValue"></Select>
68
- </div>
69
- </div>
70
- </div>
71
- <div class="style-li">
72
- <div class="style-title">背景</div>
73
- <div class="style-list">
74
- <div class="node-left">
75
- <span>颜色</span>
76
- <div @click="colorTap($event,'fillColor')" class="backColor"></div>
77
- </div>
78
- </div>
79
- </div>
80
- <div class="style-li">
81
- <div class="style-title">线条</div>
82
- <div class="style-list">
83
- <div class="node-left zIndex">
84
- <span>宽度</span>
85
- <Select :options="optionWidth" v-model:value="lineValue"></Select>
86
- </div>
87
- <div class="node-left padd zIndex">
88
- <span>样式</span>
89
- <Select :options="optionLine" v-model:value="lineStyleValue"></Select>
90
- </div>
91
- </div>
92
- <div class="style-list">
93
- <div class="node-left">
94
- <span>颜色</span>
95
- <div @click="colorTap($event,'lineColor')" class="backColor"></div>
96
- </div>
97
- </div>
98
- </div>
99
- <div class="style-li">
100
- <div class="style-title">形状</div>
101
- <div class="style-list">
102
- <div class="node-left">
103
- <span>形状</span>
104
- <Select :options="optionShape" v-model:value="shapeValue"></Select>
105
- </div>
106
- </div>
107
- </div>
108
- <div class="back-col" :style="{top: top + 'px'}" v-if="colorShow">
109
- <Coloring @submit="submit" @empty="empty" @rgba="rgba" :color="color"></Coloring>
110
- </div>
111
- </div>
19
+ <Tool v-model:open="styleStatus" :node="nodeData" @select="toolSelect"></Tool>
112
20
  </div>
113
21
  </template>
114
22
 
115
23
  <script>
116
- import Select from '../../select/src/select.vue'
117
- import Coloring from '../../coloring/src/coloring.vue'
24
+
118
25
  import MindMap from "simple-mind-map";
119
26
  import TouchEvent from 'simple-mind-map/src/plugins/TouchEvent.js'
120
27
  import AssociativeLine from 'simple-mind-map/src/plugins/AssociativeLine.js'
121
28
  import Export from 'simple-mind-map/src/plugins/Export.js'
29
+ import Tool from "./tool.vue";
122
30
 
123
31
  MindMap.usePlugin(AssociativeLine)
124
32
  MindMap.usePlugin(TouchEvent)
125
33
  MindMap.usePlugin(Export)
126
34
 
127
35
  export default {
128
- components: {Select, Coloring},
36
+ components: {Tool},
129
37
  name: "zydx-mind",
130
38
  data() {
131
39
  return {
132
40
  id: null,
133
41
  mindMap: null,
134
- mindShow: false,
42
+ mindShow: true,
135
43
  retShow: false,
136
44
  forwardShow: false,
137
- optionSize: [
138
- {label: "12", value: '12'},
139
- {label: "14", value: '14'},
140
- {label: "16", value: '16'},
141
- {label: "18", value: '18'},
142
- {label: "20", value: '20'},
143
- {label: "24", value: '24'},
144
- {label: "26", value: '26'},
145
- {label: "28", value: '28'},
146
- {label: "30", value: '30'}
147
- ],
148
- sizeValue: '18',
149
- optionRow: [
150
- {label: "1", value: '1'},
151
- {label: "1.5", value: '1.5'},
152
- {label: "2", value: '2'},
153
- {label: "2.5", value: '2.5'},
154
- {label: "3", value: '3'}
155
- ],
156
- rowValue: '1.5',
157
- optionWidth: [
158
- {label: "0", value: 0},
159
- {label: "1", value: 1},
160
- {label: "2", value: 2},
161
- {label: "3", value: 3},
162
- {label: "4", value: 4},
163
- {label: "5", value: 5},
164
- {label: "6", value: 6},
165
- {label: "7", value: 7},
166
- {label: "8", value: 8},
167
- {label: "9", value: 9},
168
- {label: "10", value: 10},
169
- ],
170
- widthValue: 1,
171
- filletValue: '5',
172
- lineValue: '1',
173
- optionLine: [
174
- {label: "实线", value: 'none'},
175
- {label: "虚线", value: '5,5'},
176
- {label: "点线", value: '1,5'}
177
- ],
178
- lineStyleValue: 'none',
179
- styleValue: 'none',
180
- optionShape: [
181
- {label: "矩形", value: 'rectangle'},
182
- {label: "菱形", value: 'diamond'},
183
- {label: "平行四边形", value: 'parallelogram'},
184
- {label: "圆角矩形", value: 'roundedRectangle'},
185
- {label: "八角形", value: 'octagonalRectangle'},
186
- {label: "外三角矩形", value: 'outerTriangularRectangle'},
187
- {label: "内三角矩形", value: 'innerTriangularRectangle'},
188
- {label: "椭圆", value: 'ellipse'},
189
- {label: "圆", value: 'circle'},
190
- ],
191
- shapeValue: 'rectangle',
192
- trans: false,
45
+ nodeData: null,
193
46
  colorShow: false,
194
47
  top: 0,
195
- colorData: {},
196
48
  activeNodes: null,
197
- color: 'rgba(84,150,136,1)',
198
- boldAct: false,
199
- italicAct: false,
200
- scribeAct: false,
201
49
  defaultData: {
202
50
  "data": {
203
51
  "text": "根节点"
@@ -207,6 +55,7 @@ export default {
207
55
  fullShow: true,
208
56
  layoutList: '',
209
57
  updateInit: false,
58
+ styleStatus: false
210
59
  }
211
60
  },
212
61
  props: {
@@ -257,46 +106,11 @@ export default {
257
106
  },
258
107
  immediate: true
259
108
  },
260
- sizeValue(e) { // 字号
261
- this.activeNodes.forEach(node => {
262
- node.setStyle('fontSize', e)
263
- })
264
- },
265
- rowValue(e) { // 行高
266
- this.activeNodes.forEach(node => {
267
- node.setStyle('lineHeight', e)
268
- })
269
- },
270
- styleValue(e) { // 粗斜体
271
- this.activeNodes.forEach(node => {
272
- node.setStyle('borderDasharray', e)
273
- })
274
- },
275
- widthValue(e) { // 线宽
276
- this.activeNodes.forEach(node => {
277
- node.setStyle('borderWidth', e)
278
- })
279
- },
280
- filletValue(e) { // 圆角
281
- this.activeNodes.forEach(node => {
282
- node.setStyle('borderRadius', e)
283
- })
284
- },
285
109
  shapeValue(e) { // 形状
286
110
  this.activeNodes.forEach(node => {
287
111
  node.setStyle('shape', e)
288
112
  })
289
113
  },
290
- lineValue(e) { // 线宽
291
- this.activeNodes.forEach(node => {
292
- node.setStyle('lineWidth', e)
293
- })
294
- },
295
- lineStyleValue(e) { // 线宽
296
- this.activeNodes.forEach(node => {
297
- node.setStyle('lineDasharray', e)
298
- })
299
- },
300
114
  },
301
115
  mounted() {
302
116
  this.id = this.randomId()
@@ -311,6 +125,11 @@ export default {
311
125
  }
312
126
  },
313
127
  methods: {
128
+ toolSelect(v) {
129
+ this.activeNodes.forEach(node => {
130
+ node.setStyle(v.type, v.value)
131
+ })
132
+ },
314
133
  randomId() {
315
134
  const id = Math.random().toString(36).substr(2)
316
135
  return id.replace(/[0-9]/g, '')
@@ -383,17 +202,16 @@ export default {
383
202
  data: that.msgFun(that.data)
384
203
  });
385
204
  this.mindMap.setMode(this.readOnly ? 'readonly' : 'edit')
386
- this.mindMap.on('node_active', (node) => {
205
+ this.mindMap.on('node_active', (node, activeNodeList) => {
206
+ this.nodeData = node
387
207
  this.mindShow = node === null;
208
+ if(node === null) this.styleStatus = false
209
+ this.activeNodes = activeNodeList
388
210
  })
389
211
  this.mindMap.on('back_forward', (index, len) => {
390
212
  this.retShow = index <= 0;
391
213
  this.forwardShow = index >= len - 1
392
214
  })
393
- this.mindMap.on('node_active', (node, activeNodeList) => {
394
- console.log('activeNodeList', activeNodeList)
395
- this.activeNodes = activeNodeList
396
- })
397
215
  this.mindMap.on('data_change', (data) => {
398
216
  this.$emit('dataChange', {
399
217
  data: data,
@@ -401,44 +219,6 @@ export default {
401
219
  })
402
220
  })
403
221
  },
404
- scribes() {
405
- this.scribeAct = !this.scribeAct
406
- this.activeNodes.forEach(node => {
407
- node.setStyle('textDecoration', (!this.scribeAct) ? 'none' : 'underline')
408
- })
409
- },
410
- italics() {
411
- this.italicAct = !this.italicAct
412
- this.activeNodes.forEach(node => {
413
- node.setStyle('fontStyle', (!this.italicAct) ? 'normal' : 'italic')
414
- })
415
- },
416
- bolds() {
417
- this.boldAct = !this.boldAct
418
- this.activeNodes.forEach(node => {
419
- node.setStyle('fontWeight', (!this.boldAct) ? 'normal' : 'bold')
420
- })
421
- },
422
- rgba(e) {
423
- this.colorData.data.target.style.backgroundColor = e.rgba
424
- },
425
- submit(e) {
426
- this.activeNodes.forEach(node => {
427
- node.setStyle(this.colorData.index, e.rgba)
428
- })
429
- this.colorData.data.target.style.backgroundColor = e.rgba
430
- this.colorShow = false
431
- },
432
- empty() {
433
- this.colorShow = false
434
- },
435
- colorTap(e, i) {
436
- this.colorData = {index: i, data: e}
437
- let parent = this.colorData.data.target.parentNode.offsetTop + 32
438
- if (parent > 330) parent = 300
439
- this.colorShow = !this.colorShow
440
- this.top = parent
441
- },
442
222
  structure() {
443
223
  this.layoutList = 'logicalStructure'
444
224
  const layout = this.mindMap.getLayout()
@@ -461,12 +241,6 @@ export default {
461
241
  },
462
242
  url: ''
463
243
  })
464
- // that.mindMap.doExport.png().then((data) => {
465
- // that.$emit('preservation', {
466
- // data: that.mindMap.getData(),
467
- // url: data
468
- // })
469
- // })
470
244
  },
471
245
  getContent() {
472
246
  let that = this
@@ -482,15 +256,7 @@ export default {
482
256
  this.mindMap.export('png', true, name, true, false, null, true)
483
257
  },
484
258
  nodeStyle() {
485
- this.$refs[`${this.id}e`].style.display = 'block'
486
- this.$refs[this.id].style.overflow = 'hidden'
487
- this.trans = !this.trans
488
- setTimeout(() => {
489
- this.$refs[this.id].style.overflow = 'visible'
490
- if (!this.trans) {
491
- this.$refs[`${this.id}e`].style.display = 'none'
492
- }
493
- }, 250)
259
+ this.styleStatus = true
494
260
  },
495
261
  // 关联线
496
262
  associativeLine() {
@@ -520,212 +286,4 @@ export default {
520
286
  }
521
287
  </script>
522
288
 
523
- <style scoped>
524
- :deep(.custom-select-options li) {
525
- padding: 0 10px !important;
526
- }
527
-
528
- .table-left {
529
- margin-right: 5px;
530
- display: flex;
531
- width: 100%;
532
- }
533
-
534
- .node-s {
535
- animation: nodeShow 0.3s;
536
- display: block;
537
- }
538
-
539
- .node-h {
540
- animation: nodeHide 0.3s;
541
- }
542
-
543
- @keyframes nodeHide {
544
- 0% {
545
- opacity: 1;
546
- transform: translateX(0);
547
- }
548
- 100% {
549
- opacity: 0;
550
- transform: translateX(110%);
551
- }
552
- }
553
-
554
- @keyframes nodeShow {
555
- 0% {
556
- opacity: 0;
557
- transform: translateX(110%);
558
- }
559
- 10% {
560
- opacity: 1;
561
- transform: translateX(100%);
562
- }
563
- 100% {
564
- opacity: 1;
565
- transform: translateX(0);
566
- }
567
- }
568
-
569
- .zIndex {
570
- position: relative;
571
- z-index: 30;
572
- }
573
-
574
- .zIndex2 {
575
- position: relative;
576
- z-index: 33;
577
- }
578
-
579
- .zIndex3 {
580
- position: relative;
581
- z-index: 32;
582
- }
583
-
584
- .zIndex4 {
585
- position: relative;
586
- z-index: 31;
587
- }
588
-
589
- .backColor {
590
- width: 93px;
591
- height: 30px;
592
- border: 1px solid #ccc;
593
- border-radius: 3px;
594
- margin-left: -40px;
595
- box-shadow: 0 1px 0 1px rgb(0 0 0 / 4%);
596
- cursor: pointer;
597
- background-color: #549688;
598
- }
599
-
600
- .back-col {
601
- position: absolute;
602
- top: 0;
603
- left: 60px;
604
- z-index: 40;
605
- }
606
-
607
- .node-but {
608
- display: flex;
609
- padding: 5px 0;
610
- }
611
-
612
- .node-but button {
613
- flex: 1;
614
- margin-right: 5px;
615
- background-color: #fff;
616
- border: 1px solid #ccc;
617
- border-radius: 3px;
618
- padding: 5px 10px;
619
- cursor: pointer;
620
- font-size: 12px;
621
- }
622
-
623
- .node-but button:last-child {
624
- margin: 0;
625
- }
626
-
627
- .style-title {
628
- font-size: 16px;
629
- font-weight: bold;
630
- padding: 5px 0 10px 0;
631
- }
632
-
633
- .mind {
634
- width: 100%;
635
- height: 100%;
636
- position: relative;
637
- }
638
-
639
- .mind-table {
640
- background-color: #fff;
641
- border-radius: 5px;
642
- box-shadow: rgba(0, 0, 0, 0.06) 0 2px 16px 0;
643
- z-index: 10;
644
- }
645
-
646
- .style-li {
647
- position: relative;
648
- }
649
-
650
- .style-li img {
651
- position: absolute;
652
- top: 0;
653
- right: 0;
654
- z-index: 1;
655
- width: 15px;
656
- height: 15px;
657
- cursor: pointer;
658
- }
659
-
660
- .style-list {
661
- display: flex;
662
- padding: 5px 0;
663
- }
664
-
665
- .node-left {
666
- display: flex;
667
- padding-right: 10px;
668
- }
669
-
670
- .node-left > span {
671
- display: inline-block;
672
- width: 80px;
673
- line-height: 32px;
674
- padding-right: 10px;
675
- box-sizing: border-box;
676
- }
677
-
678
- .padd {
679
- padding-right: 0;
680
- }
681
-
682
- .node-style {
683
- position: absolute;
684
- right: 0;
685
- top: 50%;
686
- background-color: #fff;
687
- border-bottom-left-radius: 5px;
688
- border-top-left-radius: 5px;
689
- padding: 20px;
690
- box-shadow: rgba(0, 0, 0, 0.06) 0 2px 16px 0;
691
- z-index: 11;
692
- width: 320px;
693
- height: 550px;
694
- margin-top: -270px;
695
- display: none;
696
- }
697
-
698
- .mind-table button {
699
- background-color: #fff;
700
- border: 1px solid #ccc;
701
- cursor: pointer;
702
- font-size: 14px;
703
- height: 30px;
704
- line-height: 30px;
705
- flex: 1;
706
- }
707
-
708
- .mind-table button:last-child {
709
- margin-right: 0;
710
- }
711
-
712
- .mindMapContainer {
713
- width: 100%;
714
- height: 100%;
715
- }
716
-
717
- :deep(.custom-select) {
718
- width: 94px;
719
- margin-left: -40px;
720
- }
721
-
722
- .full-screen {
723
- background: #fff;
724
- width: 100vw;
725
- height: 100vh;
726
- position: fixed;
727
- top: 0;
728
- left: 0;
729
- z-index: 100;
730
- }
731
- </style>
289
+ <style scoped src="./mind.css"></style>