* 获取节点信息
()
| 222 | * 获取节点信息 |
| 223 | */ |
| 224 | getSelectorQuery() { |
| 225 | dom.getComponentRect(this.$refs['selector-content-hock'], (data) => { |
| 226 | if (this.position.content) return |
| 227 | this.position.content = data.size |
| 228 | }) |
| 229 | for (let i = 0; i < this.options.length; i++) { |
| 230 | dom.getComponentRect(this.$refs['button-hock'][i], (data) => { |
| 231 | if (!this.button) { |
| 232 | this.button = [] |
| 233 | } |
| 234 | if (this.options.length === this.button.length) return |
| 235 | this.button.push(data.size) |
| 236 | this.right += data.size.width |
| 237 | if (this.autoClose) return |
| 238 | if (this.show) { |
| 239 | this.open() |
| 240 | } |
| 241 | }) |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | } |
nothing calls this directly
no outgoing calls
no test coverage detected