(template)
| 218 | return result; |
| 219 | }, |
| 220 | refreshGroup (template) { |
| 221 | // 刷新边框 |
| 222 | if (template.property.type !== 'group') { |
| 223 | if (template.property.groupId) { |
| 224 | // 不是group 去获取groupId 如果有groupId 则获取将当前group去调用 |
| 225 | const nowGroup = this.findGroupForId(template.property.groupId) |
| 226 | nowGroup && this.setGroupOutLayerProperty(nowGroup); |
| 227 | } |
| 228 | } else { |
| 229 | const maxProperty = this.getMaxMinProperty(template) // 获取所有组件的最大属性 |
| 230 | const outLayerProperty = this.getParentGroupProperty(template) // 获取父组的属性 |
| 231 | this.setOutLayerProperty(template, maxProperty.width - outLayerProperty.left, maxProperty.height - outLayerProperty.top) |
| 232 | } |
| 233 | }, |
| 234 | setGroupOutLayerProperty (template) { |
| 235 | // 设置成组之后组的外边框宽高 |
| 236 | if (template.property.type !== 'group') { |
nothing calls this directly
no outgoing calls
no test coverage detected