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Y5hmhubm6biPyZiOxuHhtm1BJg5uoLqJ+O9WPcYetorUGWGeW1ZVleKSI7mdnkMcnDoOH3QwkcFpEHO53O16enpx8Yqo5Y0HqDHGP76KOPbj506NAuZq6+7FY9AzzoOegR71FbWqtMcRczf+Pw4cO51QNPx734DWOQlSD37t37MhE5dfPmzaeUZXkqM1fP45saN/CNMH/1FC4ReTJJkieOHj36JDM/sX379h9thLWtXMOGNchG3CysqXkCMEjzzDFjiwjAIC3aLLTaPAEYpHnmmLFFBGCQFm0WWm2eAAzSPHPM2CICMEiLNgutNk8ABmmeOWZsEYH/Byqq2IyNg5CgAAAAAElFTkSuQmCC'; |
| 2 | +import mxgraph from '../../graph/index'; |
| 3 | + |
| 4 | +const { mxConstants } = mxgraph; |
| 5 | +export const grouptoolItems = [ |
| 6 | + { |
| 7 | + title: '分组1', |
| 8 | + id: 'group-1', |
| 9 | + width: 400, |
| 10 | + height: 800, |
| 11 | + dropAble: true, |
| 12 | + style: { |
| 13 | + overflow: 'fill', |
| 14 | + shape: 'swimlane', |
| 15 | + html: '1', |
| 16 | + swimlaneFillColor: '#FFFF', |
| 17 | + fillColor: '#409eff', |
| 18 | + strokeColor: '#629EA0', |
| 19 | + fontColor: '#000000', |
| 20 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 21 | + align: mxConstants.ALIGN_CENTER, |
| 22 | + }, |
| 23 | + created (graph, cell, index) { |
| 24 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 25 | + if (deleteIconDom) { |
| 26 | + deleteIconDom.addEventListener('click', () => { |
| 27 | + graph.removeCells([cell]); |
| 28 | + }); |
| 29 | + } |
| 30 | + }, |
| 31 | + html: (index) => ` |
| 32 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 33 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组1</span> |
| 34 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 35 | + </div> |
| 36 | + `.replace(/[\r\n]/g, ''), |
| 37 | + }, |
| 38 | + { |
| 39 | + title: '分组2', |
| 40 | + id: 'group-2', |
| 41 | + width: 400, |
| 42 | + height: 800, |
| 43 | + dropAble: true, |
| 44 | + style: { |
| 45 | + overflow: 'fill', |
| 46 | + shape: 'swimlane', |
| 47 | + html: '1', |
| 48 | + swimlaneFillColor: '#FFFF', |
| 49 | + fillColor: '#409eff', |
| 50 | + strokeColor: '#629EA0', |
| 51 | + fontColor: '#000000', |
| 52 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 53 | + align: mxConstants.ALIGN_CENTER, |
| 54 | + }, |
| 55 | + created (graph, cell, index) { |
| 56 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 57 | + if (deleteIconDom) { |
| 58 | + deleteIconDom.addEventListener('click', () => { |
| 59 | + graph.removeCells([cell]); |
| 60 | + }); |
| 61 | + } |
| 62 | + }, |
| 63 | + html: (index) => ` |
| 64 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 65 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组2</span> |
| 66 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 67 | + </div> |
| 68 | + `.replace(/[\r\n]/g, ''), |
| 69 | + }, |
| 70 | + { |
| 71 | + title: '分组3', |
| 72 | + id: 'group-3', |
| 73 | + width: 400, |
| 74 | + height: 800, |
| 75 | + dropAble: true, |
| 76 | + style: { |
| 77 | + overflow: 'fill', |
| 78 | + shape: 'swimlane', |
| 79 | + html: '1', |
| 80 | + swimlaneFillColor: '#FFFF', |
| 81 | + fillColor: '#409eff', |
| 82 | + strokeColor: '#629EA0', |
| 83 | + fontColor: '#000000', |
| 84 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 85 | + align: mxConstants.ALIGN_CENTER, |
| 86 | + }, |
| 87 | + created (graph, cell, index) { |
| 88 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 89 | + if (deleteIconDom) { |
| 90 | + deleteIconDom.addEventListener('click', () => { |
| 91 | + graph.removeCells([cell]); |
| 92 | + }); |
| 93 | + } |
| 94 | + }, |
| 95 | + html: (index) => ` |
| 96 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 97 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组3</span> |
| 98 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 99 | + </div> |
| 100 | + `.replace(/[\r\n]/g, ''), |
| 101 | + }, |
| 102 | + { |
| 103 | + title: '分组4', |
| 104 | + id: 'group-4', |
| 105 | + width: 400, |
| 106 | + height: 800, |
| 107 | + dropAble: true, |
| 108 | + style: { |
| 109 | + overflow: 'fill', |
| 110 | + shape: 'swimlane', |
| 111 | + html: '1', |
| 112 | + swimlaneFillColor: '#FFFF', |
| 113 | + fillColor: '#409eff', |
| 114 | + strokeColor: '#629EA0', |
| 115 | + fontColor: '#000000', |
| 116 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 117 | + align: mxConstants.ALIGN_CENTER, |
| 118 | + }, |
| 119 | + created (graph, cell, index) { |
| 120 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 121 | + if (deleteIconDom) { |
| 122 | + deleteIconDom.addEventListener('click', () => { |
| 123 | + graph.removeCells([cell]); |
| 124 | + }); |
| 125 | + } |
| 126 | + }, |
| 127 | + html: (index) => ` |
| 128 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 129 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组4</span> |
| 130 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 131 | + </div> |
| 132 | + `.replace(/[\r\n]/g, ''), |
| 133 | + }, |
| 134 | + { |
| 135 | + title: '分组5', |
| 136 | + id: 'group-5', |
| 137 | + width: 400, |
| 138 | + height: 800, |
| 139 | + dropAble: true, |
| 140 | + style: { |
| 141 | + overflow: 'fill', |
| 142 | + shape: 'swimlane', |
| 143 | + html: '1', |
| 144 | + swimlaneFillColor: '#FFFF', |
| 145 | + fillColor: '#409eff', |
| 146 | + strokeColor: '#629EA0', |
| 147 | + fontColor: '#000000', |
| 148 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 149 | + align: mxConstants.ALIGN_CENTER, |
| 150 | + }, |
| 151 | + created (graph, cell, index) { |
| 152 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 153 | + if (deleteIconDom) { |
| 154 | + deleteIconDom.addEventListener('click', () => { |
| 155 | + graph.removeCells([cell]); |
| 156 | + }); |
| 157 | + } |
| 158 | + }, |
| 159 | + html: (index) => ` |
| 160 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 161 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组5</span> |
| 162 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 163 | + </div> |
| 164 | + `.replace(/[\r\n]/g, ''), |
| 165 | + }, |
| 166 | + { |
| 167 | + title: '分组6', |
| 168 | + id: 'group-6', |
| 169 | + width: 400, |
| 170 | + height: 800, |
| 171 | + dropAble: true, |
| 172 | + style: { |
| 173 | + overflow: 'fill', |
| 174 | + shape: 'swimlane', |
| 175 | + html: '1', |
| 176 | + swimlaneFillColor: '#FFFF', |
| 177 | + fillColor: '#409eff', |
| 178 | + strokeColor: '#629EA0', |
| 179 | + fontColor: '#000000', |
| 180 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 181 | + align: mxConstants.ALIGN_CENTER, |
| 182 | + }, |
| 183 | + created (graph, cell, index) { |
| 184 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 185 | + if (deleteIconDom) { |
| 186 | + deleteIconDom.addEventListener('click', () => { |
| 187 | + graph.removeCells([cell]); |
| 188 | + }); |
| 189 | + } |
| 190 | + }, |
| 191 | + html: (index) => ` |
| 192 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 193 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组6</span> |
| 194 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 195 | + </div> |
| 196 | + `.replace(/[\r\n]/g, ''), |
| 197 | + }, |
| 198 | + { |
| 199 | + title: '分组7', |
| 200 | + id: 'group-7', |
| 201 | + width: 400, |
| 202 | + height: 800, |
| 203 | + dropAble: true, |
| 204 | + style: { |
| 205 | + overflow: 'fill', |
| 206 | + shape: 'swimlane', |
| 207 | + html: '1', |
| 208 | + swimlaneFillColor: '#FFFF', |
| 209 | + fillColor: '#409eff', |
| 210 | + strokeColor: '#629EA0', |
| 211 | + fontColor: '#000000', |
| 212 | + verticalAlign: mxConstants.ALIGN_TOP, |
| 213 | + align: mxConstants.ALIGN_CENTER, |
| 214 | + }, |
| 215 | + created (graph, cell, index) { |
| 216 | + const deleteIconDom = document.querySelector(`.deleteIcon_${index}`); |
| 217 | + if (deleteIconDom) { |
| 218 | + deleteIconDom.addEventListener('click', () => { |
| 219 | + graph.removeCells([cell]); |
| 220 | + }); |
| 221 | + } |
| 222 | + }, |
| 223 | + html: (index) => ` |
| 224 | + <div style="margin: 0; height: 100%; width: 100%;display: flex; align-items: center; position: relative;"> |
| 225 | + <span style="color: cornsilk; font-size: 20px; font-weight: 600; display: inline-block;position: absolute;left: 50%;transform: translateX(-50%)">分组7</span> |
| 226 | + <i style="height: 20px; width: 20px;font-size: 20px;color: #ffffff; cursor: pointer;position: absolute;right: 10px" class="deleteIcon_${index} el-icon-delete-solid"></i> |
| 227 | + </div> |
| 228 | + `.replace(/[\r\n]/g, ''), |
| 229 | + }, |
| 230 | + { |
| 231 | + title: '子元素-1', // 显示名称 |
| 232 | + id: 'member-1', |
| 233 | + width: 130, // 默认宽度 |
| 234 | + height: 50, // 默认高度 |
| 235 | + dropAble: false, // 是否可以作为drop的对象 |
| 236 | + style: { // 样式 |
| 237 | + html: '1', |
| 238 | + fillColor: '#409eff', |
| 239 | + strokeColor: '#53859F', |
| 240 | + fontColor: '#000000', |
| 241 | + }, |
| 242 | + html: () => ` |
| 243 | + <div style="margin: 0; padding: 0 5px; height: 100%; display: flex; justify-content: space-between; align-items: center;"> |
| 244 | + <span style="font-size: 1.2rem; color: cornsilk; font-weight: 600;">子元素</span> |
| 245 | + </div> |
| 246 | + `.replace(/[\r\n]/g, ''), |
| 247 | + }, |
| 248 | +]; |
0 commit comments