(property, result, upProperty = { left: 0, top: 0 })
| 167 | return max.id; |
| 168 | }, |
| 169 | commonGetProperty (property, result, upProperty = { left: 0, top: 0 }) { |
| 170 | // 提取公共函数 result 为调用者传 |
| 171 | const { width, height, left, top } = property |
| 172 | const nowWidth = width + left + upProperty.left |
| 173 | const nowheight = height + top + upProperty.top |
| 174 | const nowLeft = left + upProperty.left |
| 175 | const nowTop = top + upProperty.top |
| 176 | if (result.width < nowWidth) { |
| 177 | result.width = nowWidth |
| 178 | } |
| 179 | if (result.height < nowheight) { |
| 180 | result.height = nowheight |
| 181 | } |
| 182 | if (result.left > nowLeft) { |
| 183 | result.left = nowLeft |
| 184 | } |
| 185 | if (result.top > nowTop) { |
| 186 | result.top = nowTop |
| 187 | } |
| 188 | }, |
| 189 | getMulityMaxMinProperty (multiplyMoveList) { |
| 190 | // 获取多选列表组件的所有最大最小属性 |
| 191 | const result = { |
nothing calls this directly
no outgoing calls
no test coverage detected